changed: move setting of default vanguard to basicproperties.hh

use forwarding to avoid including dgfvanguard.hh unless it is actually
used
This commit is contained in:
Arne Morten Kvarving 2024-07-01 09:33:44 +02:00
parent 23e9bc5ebc
commit 59a246e178
33 changed files with 51 additions and 11 deletions

View File

@ -32,6 +32,7 @@
#include <opm/material/common/quad.hpp> #include <opm/material/common/quad.hpp>
#endif #endif
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/flash/flashmodel.hh> #include <opm/models/flash/flashmodel.hh>
#include <opm/models/discretization/ecfv/ecfvdiscretization.hh> #include <opm/models/discretization/ecfv/ecfvdiscretization.hh>

View File

@ -28,7 +28,10 @@
*/ */
#include "config.h" #include "config.h"
// this must be included before the vanguard
#include <opm/material/common/quad.hpp> #include <opm/material/common/quad.hpp>
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/flash/flashmodel.hh> #include <opm/models/flash/flashmodel.hh>
#include <opm/models/discretization/ecfv/ecfvdiscretization.hh> #include <opm/models/discretization/ecfv/ecfvdiscretization.hh>

View File

@ -28,7 +28,10 @@
*/ */
#include "config.h" #include "config.h"
// this must be included before the vanguard
#include <opm/material/common/quad.hpp> #include <opm/material/common/quad.hpp>
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/flash/flashmodel.hh> #include <opm/models/flash/flashmodel.hh>
#include <opm/models/discretization/vcfv/vcfvdiscretization.hh> #include <opm/models/discretization/vcfv/vcfvdiscretization.hh>

View File

@ -32,6 +32,7 @@
#include <opm/material/common/quad.hpp> #include <opm/material/common/quad.hpp>
#endif #endif
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/flash/flashmodel.hh> #include <opm/models/flash/flashmodel.hh>
#include <opm/models/discretization/vcfv/vcfvdiscretization.hh> #include <opm/models/discretization/vcfv/vcfvdiscretization.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/immiscible/immisciblemodel.hh> #include <opm/models/immiscible/immisciblemodel.hh>
#include <opm/models/discretization/ecfv/ecfvdiscretization.hh> #include <opm/models/discretization/ecfv/ecfvdiscretization.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/immiscible/immisciblemodel.hh> #include <opm/models/immiscible/immisciblemodel.hh>
#include <opm/models/discretization/ecfv/ecfvdiscretization.hh> #include <opm/models/discretization/ecfv/ecfvdiscretization.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/immiscible/immisciblemodel.hh> #include <opm/models/immiscible/immisciblemodel.hh>
#include <opm/models/discretization/vcfv/vcfvdiscretization.hh> #include <opm/models/discretization/vcfv/vcfvdiscretization.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/immiscible/immisciblemodel.hh> #include <opm/models/immiscible/immisciblemodel.hh>
#include <opm/models/discretization/vcfv/vcfvdiscretization.hh> #include <opm/models/discretization/vcfv/vcfvdiscretization.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/ncp/ncpmodel.hh> #include <opm/models/ncp/ncpmodel.hh>
#include <opm/models/discretization/ecfv/ecfvdiscretization.hh> #include <opm/models/discretization/ecfv/ecfvdiscretization.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/ncp/ncpmodel.hh> #include <opm/models/ncp/ncpmodel.hh>
#include <opm/models/discretization/ecfv/ecfvdiscretization.hh> #include <opm/models/discretization/ecfv/ecfvdiscretization.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/ncp/ncpmodel.hh> #include <opm/models/ncp/ncpmodel.hh>
#include <opm/models/discretization/vcfv/vcfvdiscretization.hh> #include <opm/models/discretization/vcfv/vcfvdiscretization.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/ncp/ncpmodel.hh> #include <opm/models/ncp/ncpmodel.hh>
#include <opm/models/discretization/vcfv/vcfvdiscretization.hh> #include <opm/models/discretization/vcfv/vcfvdiscretization.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/pvs/pvsmodel.hh> #include <opm/models/pvs/pvsmodel.hh>
#include <opm/models/discretization/ecfv/ecfvdiscretization.hh> #include <opm/models/discretization/ecfv/ecfvdiscretization.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/pvs/pvsmodel.hh> #include <opm/models/pvs/pvsmodel.hh>
#include <opm/models/discretization/ecfv/ecfvdiscretization.hh> #include <opm/models/discretization/ecfv/ecfvdiscretization.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/pvs/pvsmodel.hh> #include <opm/models/pvs/pvsmodel.hh>
#include <opm/models/discretization/vcfv/vcfvdiscretization.hh> #include <opm/models/discretization/vcfv/vcfvdiscretization.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/pvs/pvsmodel.hh> #include <opm/models/pvs/pvsmodel.hh>
#include <opm/models/discretization/vcfv/vcfvdiscretization.hh> #include <opm/models/discretization/vcfv/vcfvdiscretization.hh>

View File

@ -27,6 +27,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/pvs/pvsmodel.hh> #include <opm/models/pvs/pvsmodel.hh>
#include <opm/simulators/linalg/parallelbicgstabbackend.hh> #include <opm/simulators/linalg/parallelbicgstabbackend.hh>

View File

@ -27,6 +27,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/immiscible/immisciblemodel.hh> #include <opm/models/immiscible/immisciblemodel.hh>
#include "problems/groundwaterproblem.hh" #include "problems/groundwaterproblem.hh"

View File

@ -27,6 +27,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/pvs/pvsmodel.hh> #include <opm/models/pvs/pvsmodel.hh>
#include <opm/simulators/linalg/parallelbicgstabbackend.hh> #include <opm/simulators/linalg/parallelbicgstabbackend.hh>

View File

@ -27,6 +27,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/discretization/ecfv/ecfvdiscretization.hh> #include <opm/models/discretization/ecfv/ecfvdiscretization.hh>
#include <opm/simulators/linalg/parallelbicgstabbackend.hh> #include <opm/simulators/linalg/parallelbicgstabbackend.hh>

View File

@ -27,6 +27,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/discretization/vcfv/vcfvdiscretization.hh> #include <opm/models/discretization/vcfv/vcfvdiscretization.hh>
#include <opm/simulators/linalg/parallelbicgstabbackend.hh> #include <opm/simulators/linalg/parallelbicgstabbackend.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/simulators/linalg/parallelbicgstabbackend.hh> #include <opm/simulators/linalg/parallelbicgstabbackend.hh>
#include <opm/models/immiscible/immisciblemodel.hh> #include <opm/models/immiscible/immisciblemodel.hh>

View File

@ -27,6 +27,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/ncp/ncpmodel.hh> #include <opm/models/ncp/ncpmodel.hh>
#include <opm/simulators/linalg/parallelbicgstabbackend.hh> #include <opm/simulators/linalg/parallelbicgstabbackend.hh>

View File

@ -29,6 +29,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/pvs/pvsmodel.hh> #include <opm/models/pvs/pvsmodel.hh>
#include <opm/simulators/linalg/parallelbicgstabbackend.hh> #include <opm/simulators/linalg/parallelbicgstabbackend.hh>

View File

@ -27,6 +27,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/pvs/pvsmodel.hh> #include <opm/models/pvs/pvsmodel.hh>
#include <opm/simulators/linalg/parallelbicgstabbackend.hh> #include <opm/simulators/linalg/parallelbicgstabbackend.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/blackoil/blackoilmodel.hh> #include <opm/models/blackoil/blackoilmodel.hh>
#include <opm/models/discretization/ecfv/ecfvdiscretization.hh> #include <opm/models/discretization/ecfv/ecfvdiscretization.hh>

View File

@ -27,6 +27,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/blackoil/blackoilmodel.hh> #include <opm/models/blackoil/blackoilmodel.hh>
#include <opm/models/discretization/vcfv/vcfvdiscretization.hh> #include <opm/models/discretization/vcfv/vcfvdiscretization.hh>

View File

@ -27,6 +27,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/ncp/ncpmodel.hh> #include <opm/models/ncp/ncpmodel.hh>
#include <opm/models/discretization/ecfv/ecfvdiscretization.hh> #include <opm/models/discretization/ecfv/ecfvdiscretization.hh>

View File

@ -28,6 +28,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/ncp/ncpmodel.hh> #include <opm/models/ncp/ncpmodel.hh>
#include <opm/models/discretization/vcfv/vcfvdiscretization.hh> #include <opm/models/discretization/vcfv/vcfvdiscretization.hh>

View File

@ -27,6 +27,7 @@
*/ */
#include "config.h" #include "config.h"
#include <opm/models/io/dgfvanguard.hh>
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
#include <opm/models/pvs/pvsmodel.hh> #include <opm/models/pvs/pvsmodel.hh>
#include "problems/waterairproblem.hh" #include "problems/waterairproblem.hh"

View File

@ -28,20 +28,22 @@
#ifndef EWOMS_MULTI_PHASE_BASE_PROBLEM_HH #ifndef EWOMS_MULTI_PHASE_BASE_PROBLEM_HH
#define EWOMS_MULTI_PHASE_BASE_PROBLEM_HH #define EWOMS_MULTI_PHASE_BASE_PROBLEM_HH
#include "multiphasebaseproperties.hh" #include <dune/common/fvector.hh>
#include <dune/common/fmatrix.hh>
#include <opm/models/common/directionalmobility.hh> #include <dune/grid/common/partitionset.hh>
#include <opm/models/discretization/common/fvbaseproblem.hh>
#include <opm/models/discretization/common/fvbaseproperties.hh>
#include <opm/material/fluidmatrixinteractions/NullMaterial.hpp> #include <opm/material/fluidmatrixinteractions/NullMaterial.hpp>
#include <opm/material/common/Means.hpp> #include <opm/material/common/Means.hpp>
#include <opm/material/densead/Evaluation.hpp> #include <opm/material/densead/Evaluation.hpp>
#include <opm/utility/CopyablePtr.hpp> #include <opm/models/common/directionalmobility.hh>
#include <opm/models/common/multiphasebaseproperties.hh>
#include <dune/common/fvector.hh> #include <opm/models/discretization/common/fvbaseproblem.hh>
#include <dune/common/fmatrix.hh> #include <opm/models/discretization/common/fvbaseproperties.hh>
#include <opm/utility/CopyablePtr.hpp>
namespace Opm { namespace Opm {
/*! /*!

View File

@ -31,7 +31,6 @@
#define EWOMS_FV_BASE_PROPERTIES_HH #define EWOMS_FV_BASE_PROPERTIES_HH
#include <opm/models/utils/basicproperties.hh> #include <opm/models/utils/basicproperties.hh>
#include <opm/models/io/dgfvanguard.hh>
namespace Opm::Properties { namespace Opm::Properties {
@ -257,9 +256,6 @@ struct UseVolumetricResidual { using type = UndefinedProperty; };
template<class TypeTag, class MyTypeTag> template<class TypeTag, class MyTypeTag>
struct EnableExperiments { using type = UndefinedProperty; }; struct EnableExperiments { using type = UndefinedProperty; };
template<class TypeTag>
struct Vanguard<TypeTag, TTag::NumericModel> { using type = Opm::DgfVanguard<TypeTag>; };
} // namespace Opm::Properties } // namespace Opm::Properties
#endif #endif

View File

@ -38,6 +38,12 @@
#include <dune/fem/gridpart/adaptiveleafgridpart.hh> #include <dune/fem/gridpart/adaptiveleafgridpart.hh>
#endif #endif
namespace Opm {
template<class TypeTag> class DgfVanguard;
}
namespace Opm::Properties { namespace Opm::Properties {
/////////////////////////////////// ///////////////////////////////////
@ -254,6 +260,8 @@ struct RestartTime<TypeTag, TTag::NumericModel>
template<class TypeTag> template<class TypeTag>
struct PredeterminedTimeStepsFile<TypeTag, TTag::NumericModel> { static constexpr auto value = ""; }; struct PredeterminedTimeStepsFile<TypeTag, TTag::NumericModel> { static constexpr auto value = ""; };
template<class TypeTag>
struct Vanguard<TypeTag, TTag::NumericModel> { using type = Opm::DgfVanguard<TypeTag>; };
} // namespace Opm::Properties } // namespace Opm::Properties