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:
Håkon Hægland
2020-04-15 15:05:56 +02:00
parent 7e1f8ecb8a
commit ba625b0cb6
4 changed files with 14 additions and 446 deletions
+5 -5
View File
@@ -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();
}