test_densead: no reason to initialize MPI here

thus we no longer depend on dune-common
This commit is contained in:
Arne Morten Kvarving 2022-12-22 11:22:28 +01:00
parent 7215312bb1
commit 9c5f863ec1
2 changed files with 2 additions and 6 deletions

View File

@ -384,6 +384,7 @@ list (APPEND TEST_SOURCE_FILES
tests/test_ConditionalStorage.cpp tests/test_ConditionalStorage.cpp
tests/test_cubic.cpp tests/test_cubic.cpp
tests/test_EvaluationFormat.cpp tests/test_EvaluationFormat.cpp
tests/test_densead.cpp
tests/test_fluidmatrixinteractions.cpp tests/test_fluidmatrixinteractions.cpp
tests/test_fluidsystems.cpp tests/test_fluidsystems.cpp
tests/test_messagelimiter.cpp tests/test_messagelimiter.cpp
@ -400,7 +401,6 @@ list (APPEND TEST_SOURCE_FILES
# tests that need to be linked to dune-common # tests that need to be linked to dune-common
list(APPEND DUNE_TEST_SOURCE_FILES list(APPEND DUNE_TEST_SOURCE_FILES
tests/test_co2brine_ptflash.cpp tests/test_co2brine_ptflash.cpp
tests/test_densead.cpp
tests/test_immiscibleflash.cpp tests/test_immiscibleflash.cpp
tests/test_ncpflash.cpp tests/test_ncpflash.cpp
tests/test_pengrobinson.cpp tests/test_pengrobinson.cpp

View File

@ -37,8 +37,6 @@
#include <opm/material/densead/Evaluation.hpp> #include <opm/material/densead/Evaluation.hpp>
#include <opm/material/densead/Math.hpp> #include <opm/material/densead/Math.hpp>
#include <dune/common/parallel/mpihelper.hh>
#include <iostream> #include <iostream>
#include <array> #include <array>
#include <cmath> #include <cmath>
@ -682,10 +680,8 @@ private:
int numDerivs_; int numDerivs_;
}; };
int main(int argc, char **argv) int main()
{ {
Dune::MPIHelper::instance(argc, argv);
std::cout << "Testing statically sized evaluations\n"; std::cout << "Testing statically sized evaluations\n";
std::cout << " -> Scalar == double, n = 15\n"; std::cout << " -> Scalar == double, n = 15\n";
StaticTestEnv<double, 15>().testAll(); StaticTestEnv<double, 15>().testAll();