mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
Refactor away flow_tag.hpp.
Refactors away flow_tag.hpp by having flow_blackoil_dunecpr.cpp, flow_onephase.cpp, and flow_onephase_energy.cpp use the updated Main.hpp from a previous pull request. This will eliminate the previous code duplication in Main.hpp and flow_tag.hpp discussed in PR #2521.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "config.h"
|
||||
#include "flow/flow_tag.hpp"
|
||||
#include <opm/simulators/flow/Main.hpp>
|
||||
#include <opm/models/blackoil/blackoilonephaseindices.hh>
|
||||
|
||||
|
||||
@@ -86,9 +86,9 @@ public:
|
||||
// };
|
||||
END_PROPERTIES
|
||||
|
||||
int
|
||||
main(int argc, char** argv)
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
typedef TTAG(EclFlowProblemSimple) TypeTag;
|
||||
return mainFlow<TypeTag>(argc, argv);
|
||||
using TypeTag = TTAG(EclFlowProblemSimple);
|
||||
auto mainObject = Opm::Main<TypeTag>(argc, argv);
|
||||
return mainObject.run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user