Commit 89323375 authored by Alexander Danilov's avatar Alexander Danilov

Fix solver_test000 with USE_MPI=OFF

parent d781fc0c
......@@ -71,7 +71,11 @@ int main(int argc,char ** argv)
{
if( rank == 0 )
std::cout << S.GetReason() << std::endl;
#if defined(USE_MPI)
MPI_Abort(MPI_COMM_WORLD,-1);
#else
return -1;
#endif
}
......@@ -92,7 +96,14 @@ int main(int argc,char ** argv)
std::cout << "done, error " << err << "\t\t\t" << std::endl;
}
if( err > 1.0e-5 || err!=err) MPI_Abort(MPI_COMM_WORLD,-1);
if( err > 1.0e-5 || err!=err)
{
#if defined(USE_MPI)
MPI_Abort(MPI_COMM_WORLD,-1);
#else
return -1;
#endif
}
x.Save("output.rhs");
b.Save("b.rhs");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment