Test Petsc.
This commit is contained in:
parent
46fca4d9fc
commit
8820781158
@ -184,3 +184,14 @@ BOOST_AUTO_TEST_CASE(KAMGTest)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(PETScTest)
|
||||||
|
{
|
||||||
|
Opm::parameter::ParameterGroup param;
|
||||||
|
param.insertParameter(std::string("linsolver"), std::string("petsc"));
|
||||||
|
param.insertParameter(std::string("ksp_type"), std::string("cg"));
|
||||||
|
param.insertParameter(std::string("pc_type"), std::string("jacobi"));
|
||||||
|
param.insertParameter(std::string("ksp_rtol"), std::string("1e-10"));
|
||||||
|
param.insertParameter(std::string("ksp_view"), std::string("0"));
|
||||||
|
run_test(param);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user