mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-03 20:56:43 -06:00
- add some breathing space in headers - remove Opm:: for symbols in Opm namespace - use type-aligned &/* - add "IDE helper structure" - add some const - add a type alias to reduce long statements - reformat some clang-format atrocities - return directly in a switch clause
53 lines
1.8 KiB
C++
53 lines
1.8 KiB
C++
/*
|
|
Copyright 2020 Equinor ASA.
|
|
|
|
This file is part of the Open Porous Media project (OPM).
|
|
|
|
OPM is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
OPM is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef OPM_PY_GAS_WATER_SIMULATOR_HEADER_INCLUDED
|
|
#define OPM_PY_GAS_WATER_SIMULATOR_HEADER_INCLUDED
|
|
|
|
#include <opm/simulators/flow/python/PyBaseSimulator.hpp>
|
|
#include <opm/simulators/flow/TTagFlowProblemGasWater.hpp>
|
|
#include <memory>
|
|
|
|
namespace Opm::Pybind {
|
|
|
|
class PyGasWaterSimulator : public PyBaseSimulator<Properties::TTag::FlowGasWaterProblem>
|
|
{
|
|
private:
|
|
using BaseType = PyBaseSimulator<Properties::TTag::FlowGasWaterProblem>;
|
|
using TypeTag = Properties::TTag::FlowGasWaterProblem;
|
|
|
|
public:
|
|
PyGasWaterSimulator(const std::string& deck_filename,
|
|
const std::vector<std::string>& args)
|
|
: BaseType(deck_filename, args)
|
|
{}
|
|
|
|
PyGasWaterSimulator(std::shared_ptr<Deck> deck,
|
|
std::shared_ptr<EclipseState> state,
|
|
std::shared_ptr<Schedule> schedule,
|
|
std::shared_ptr<SummaryConfig> summary_config,
|
|
const std::vector<std::string>& args)
|
|
: BaseType(deck, state, schedule, summary_config, args)
|
|
{}
|
|
};
|
|
|
|
} // namespace Opm::Pybind
|
|
|
|
#endif // OPM_PY_GASWATER_SIMULATOR_HEADER_INCLUDED
|