move ebos/vtkecltracermodule.hh to opm/simulators/flow

This commit is contained in:
Arne Morten Kvarving 2024-02-05 19:22:15 +01:00
parent 9d256bc233
commit e6eac2039b
5 changed files with 18 additions and 18 deletions

View File

@ -426,7 +426,6 @@ list (APPEND PUBLIC_HEADER_FILES
ebos/eclthresholdpressure.hh
ebos/ecltransmissibility.hh
ebos/ecltransmissibility_impl.hh
ebos/vtkecltracermodule.hh
opm/simulators/flow/ActionHandler.hpp
opm/simulators/flow/AluGridCartesianIndexMapper.hpp
opm/simulators/flow/AluGridVanguard.hpp
@ -471,6 +470,7 @@ list (APPEND PUBLIC_HEADER_FILES
opm/simulators/flow/SubDomain.hpp
opm/simulators/flow/TracerModel.hpp
opm/simulators/flow/ValidationFunctions.hpp
opm/simulators/flow/VtkTracerModule.hpp
opm/core/props/BlackoilPhases.hpp
opm/core/props/phaseUsageFromDeck.hpp
opm/core/props/satfunc/RelpermDiagnostics.hpp

View File

@ -45,7 +45,6 @@
#if HAVE_DAMARIS
#include <ebos/damariswriter.hh>
#endif
#include <ebos/vtkecltracermodule.hh>
#include <opm/common/utility/TimeService.hpp>
@ -83,6 +82,7 @@
#include <opm/simulators/flow/FIBlackoilModel.hpp>
#include <opm/simulators/flow/OutputBlackoilModule.hpp>
#include <opm/simulators/flow/TracerModel.hpp>
#include <opm/simulators/flow/VtkTracerModule.hpp>
#include <opm/simulators/timestepping/AdaptiveTimeStepping.hpp>
#include <opm/simulators/timestepping/SimulatorReport.hpp>
#include <opm/simulators/utils/DeferredLoggingErrorHelpers.hpp>
@ -217,7 +217,7 @@ public:
DamarisWriterType::registerParameters();
#endif
VtkEclTracerModule<TypeTag>::registerParameters();
VtkTracerModule<TypeTag>::registerParameters();
EWOMS_REGISTER_PARAM(TypeTag, bool, EnableWriteAllSolutions,
"Write all solutions to disk instead of only the ones for the "
@ -294,7 +294,7 @@ public:
wellModel_,
simulator.vanguard().grid().comm())
{
this->model().addOutputModule(new VtkEclTracerModule<TypeTag>(simulator));
this->model().addOutputModule(new VtkTracerModule<TypeTag>(simulator));
// Tell the black-oil extensions to initialize their internal data structures
const auto& vanguard = simulator.vanguard();
SolventModule::initFromState(vanguard.eclState(), vanguard.schedule());

View File

@ -35,7 +35,6 @@
#if HAVE_DAMARIS
#include <ebos/damariswriter.hh>
#endif
#include <ebos/vtkecltracermodule.hh>
#include <opm/input/eclipse/Parser/ParserKeywords/E.hpp>
@ -50,6 +49,7 @@
#include <opm/simulators/flow/EclWriter.hpp>
#include <opm/simulators/flow/FIBlackoilModel.hpp>
#include <opm/simulators/flow/OutputBlackoilModule.hpp>
#include <opm/simulators/flow/VtkTracerModule.hpp>
#include <tuple>
@ -63,7 +63,7 @@ namespace Opm::Properties {
namespace TTag {
struct EclBaseProblem {
using InheritsFrom = std::tuple<VtkEclTracer, OutputBlackOil, EclCpGridVanguard>;
using InheritsFrom = std::tuple<VtkTracer, OutputBlackOil, EclCpGridVanguard>;
};
}

View File

@ -187,7 +187,7 @@ namespace Opm {
EWOMS_HIDE_PARAM(TypeTag, VtkWriteGasFormationVolumeFactor);
EWOMS_HIDE_PARAM(TypeTag, VtkWriteGasSaturationPressure);
EWOMS_HIDE_PARAM(TypeTag, VtkWriteIntrinsicPermeabilities);
EWOMS_HIDE_PARAM(TypeTag, VtkWriteEclTracerConcentration);
EWOMS_HIDE_PARAM(TypeTag, VtkWriteTracerConcentration);
EWOMS_HIDE_PARAM(TypeTag, VtkWriteExtrusionFactor);
EWOMS_HIDE_PARAM(TypeTag, VtkWriteFilterVelocities);
EWOMS_HIDE_PARAM(TypeTag, VtkWriteDensities);

View File

@ -22,10 +22,10 @@
*/
/*!
* \file
* \copydoc Opm::VtkEclTracerModule
* \copydoc Opm::VtkTracerModule
*/
#ifndef EWOMS_VTK_ECL_TRACER_MODULE_HH
#define EWOMS_VTK_ECL_TRACER_MODULE_HH
#ifndef OPM_VTK_TRACER_MODULE_HPP
#define OPM_VTK_TRACER_MODULE_HPP
#include <dune/common/fvector.hh>
@ -42,18 +42,18 @@ namespace Opm::Properties {
// create new type tag for the VTK tracer output
namespace TTag {
struct VtkEclTracer {};
struct VtkTracer {};
}
// create the property tags needed for the tracer model
template<class TypeTag, class MyTypeTag>
struct VtkWriteEclTracerConcentration {
struct VtkWriteTracerConcentration {
using type = UndefinedProperty;
};
// set default values for what quantities to output
template<class TypeTag>
struct VtkWriteEclTracerConcentration<TypeTag, TTag::VtkEclTracer> {
struct VtkWriteTracerConcentration<TypeTag, TTag::VtkTracer> {
static constexpr bool value = false;
};
@ -66,7 +66,7 @@ namespace Opm {
* \brief VTK output module for the tracer model's parameters.
*/
template <class TypeTag>
class VtkEclTracerModule : public BaseOutputModule<TypeTag>
class VtkTracerModule : public BaseOutputModule<TypeTag>
{
using ParentType = BaseOutputModule<TypeTag>;
@ -85,7 +85,7 @@ namespace Opm {
using ScalarBuffer = typename ParentType::ScalarBuffer;
public:
VtkEclTracerModule(const Simulator& simulator)
VtkTracerModule(const Simulator& simulator)
: ParentType(simulator)
{ }
@ -95,7 +95,7 @@ namespace Opm {
*/
static void registerParameters()
{
EWOMS_REGISTER_PARAM(TypeTag, bool, VtkWriteEclTracerConcentration,
EWOMS_REGISTER_PARAM(TypeTag, bool, VtkWriteTracerConcentration,
"Include the tracer concentration "
"in the VTK output files");
}
@ -163,7 +163,7 @@ namespace Opm {
private:
static bool eclTracerConcentrationOutput_()
{
static bool val = EWOMS_GET_PARAM(TypeTag, bool, VtkWriteEclTracerConcentration);
static bool val = EWOMS_GET_PARAM(TypeTag, bool, VtkWriteTracerConcentration);
return val;
}
@ -172,4 +172,4 @@ namespace Opm {
};
} // namespace Opm
#endif
#endif // OPM_VTK_TRACER_MODULE_HPP