mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: move the SeparateSparseSourceTerms parameter to Opm::Parameters
This commit is contained in:
parent
c8f8b53733
commit
6beb557b2a
@ -28,8 +28,9 @@
|
|||||||
#ifndef TPFA_LINEARIZER_HH
|
#ifndef TPFA_LINEARIZER_HH
|
||||||
#define TPFA_LINEARIZER_HH
|
#define TPFA_LINEARIZER_HH
|
||||||
|
|
||||||
#include "fvbaseproperties.hh"
|
#include <dune/common/version.hh>
|
||||||
#include "linearizationtype.hh"
|
#include <dune/common/fvector.hh>
|
||||||
|
#include <dune/common/fmatrix.hh>
|
||||||
|
|
||||||
#include <opm/common/Exceptions.hpp>
|
#include <opm/common/Exceptions.hpp>
|
||||||
#include <opm/common/TimingMacros.hpp>
|
#include <opm/common/TimingMacros.hpp>
|
||||||
@ -40,27 +41,24 @@
|
|||||||
#include <opm/input/eclipse/Schedule/BCProp.hpp>
|
#include <opm/input/eclipse/Schedule/BCProp.hpp>
|
||||||
|
|
||||||
#include <opm/models/discretization/common/baseauxiliarymodule.hh>
|
#include <opm/models/discretization/common/baseauxiliarymodule.hh>
|
||||||
|
#include <opm/models/discretization/common/fvbaseproperties.hh>
|
||||||
|
#include <opm/models/discretization/common/linearizationtype.hh>
|
||||||
|
|
||||||
#include <dune/common/version.hh>
|
|
||||||
#include <dune/common/fvector.hh>
|
|
||||||
#include <dune/common/fmatrix.hh>
|
|
||||||
|
|
||||||
#include <type_traits>
|
|
||||||
#include <iostream>
|
|
||||||
#include <vector>
|
|
||||||
#include <thread>
|
|
||||||
#include <set>
|
|
||||||
#include <exception> // current_exception, rethrow_exception
|
#include <exception> // current_exception, rethrow_exception
|
||||||
#include <mutex>
|
#include <iostream>
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
|
#include <set>
|
||||||
|
#include <type_traits>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace Opm::Properties {
|
namespace Opm::Parameters {
|
||||||
template<class TypeTag, class MyTypeTag>
|
|
||||||
struct SeparateSparseSourceTerms {
|
template<class TypeTag, class MyTypeTag>
|
||||||
using type = bool;
|
struct SeparateSparseSourceTerms {
|
||||||
static constexpr type value = false;
|
static constexpr bool value = false;
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
} // namespace Opm::Parameters
|
||||||
|
|
||||||
namespace Opm {
|
namespace Opm {
|
||||||
|
|
||||||
@ -122,7 +120,7 @@ public:
|
|||||||
: jacobian_()
|
: jacobian_()
|
||||||
{
|
{
|
||||||
simulatorPtr_ = 0;
|
simulatorPtr_ = 0;
|
||||||
separateSparseSourceTerms_ = Parameters::get<TypeTag, Properties::SeparateSparseSourceTerms>();
|
separateSparseSourceTerms_ = Parameters::get<TypeTag, Parameters::SeparateSparseSourceTerms>();
|
||||||
}
|
}
|
||||||
|
|
||||||
~TpfaLinearizer()
|
~TpfaLinearizer()
|
||||||
@ -134,7 +132,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
static void registerParameters()
|
static void registerParameters()
|
||||||
{
|
{
|
||||||
Parameters::registerParam<TypeTag, Properties::SeparateSparseSourceTerms>
|
Parameters::registerParam<TypeTag, Parameters::SeparateSparseSourceTerms>
|
||||||
("Treat well source terms all in one go, instead of on a cell by cell basis.");
|
("Treat well source terms all in one go, instead of on a cell by cell basis.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user