test_2dtables: no reason to initialize MPI here

and then we no longer depend on dune-common
This commit is contained in:
Arne Morten Kvarving 2022-12-22 11:18:44 +01:00
parent ea1e8552e7
commit bffe2b01e8
2 changed files with 2 additions and 7 deletions

View File

@ -376,6 +376,7 @@ if(ENABLE_ECL_OUTPUT)
endif()
list (APPEND TEST_SOURCE_FILES
tests/test_2dtables.cpp
tests/test_calculateCellVol.cpp
tests/test_cmp.cpp
tests/test_ConditionalStorage.cpp
@ -394,7 +395,6 @@ list (APPEND TEST_SOURCE_FILES
# tests that need to be linked to dune-common
list(APPEND DUNE_TEST_SOURCE_FILES
tests/test_2dtables.cpp
tests/test_blackoilfluidstate.cpp
tests/test_co2brine_ptflash.cpp
tests/test_components.cpp

View File

@ -33,8 +33,6 @@
#include <opm/material/common/UniformTabulated2DFunction.hpp>
#include <opm/material/common/IntervalTabulated2DFunction.hpp>
#include <dune/common/parallel/mpihelper.hh>
#include <memory>
#include <cmath>
#include <iostream>
@ -471,11 +469,8 @@ inline int testAll(const typename TestType::Scalar tolerance = 1e-6)
return 0;
}
int main(int argc, char **argv)
int main()
{
Dune::MPIHelper::instance(argc, argv);
if (testAll<Test<double> >(1e-12))
return 1;
if (testAll<Test<float> >(1e-6))