mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Addresses the comments in PR #2521 regarding code duplication in Main.hpp and flow_tag.hpp. This PR merges the code in flow_tag.hpp into Main.hpp such that flow_tag.hpp can be eliminated (will be done in the next PR).
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
/*
|
|
Copyright 2013, 2014, 2015 SINTEF ICT, Applied Mathematics.
|
|
Copyright 2014 Dr. Blatt - HPC-Simulation-Software & Services
|
|
Copyright 2015, 2017 IRIS AS
|
|
|
|
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/>.
|
|
*/
|
|
#include "config.h"
|
|
#include <opm/models/utils/propertysystem.hh>
|
|
#include <opm/models/utils/parametersystem.hh>
|
|
|
|
BEGIN_PROPERTIES
|
|
|
|
NEW_TYPE_TAG(EclFlowProblemMain);
|
|
|
|
END_PROPERTIES
|
|
|
|
#define OPM_FLOW_MAIN
|
|
#include <opm/simulators/flow/Main.hpp>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
using TypeTag = TTAG(EclFlowProblemMain);
|
|
auto mainObject = Opm::Main<TypeTag>(argc, argv);
|
|
return mainObject.run();
|
|
}
|
|
|