Skip to content
Snippets Groups Projects
Commit e7280379 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

TNL solver crashes with message when runnig (semi-)implicit solver with MPI.

parent 8a2e590e
No related branches found
No related tags found
No related merge requests found
......@@ -154,9 +154,23 @@ class UserDefinedTimeDiscretisationSetter< Problem, ConfigTag, void >
if( timeDiscretisation == "explicit" )
return SolverStarterTimeDiscretisationSetter< Problem, ExplicitTimeDiscretisationTag, ConfigTag >::run( problem, parameters );
if( timeDiscretisation == "semi-implicit" )
{
if( Problem::CommunicatorType::isDistributed() )
{
std::cerr << "TNL currently does not support semi-implicit solvers with MPI." << std::endl;
return false;
}
return SolverStarterTimeDiscretisationSetter< Problem, SemiImplicitTimeDiscretisationTag, ConfigTag >::run( problem, parameters );
}
if( timeDiscretisation == "implicit" )
{
if( Problem::CommunicatorType::isDistributed() )
{
std::cerr << "TNL currently does not support implicit solvers with MPI." << std::endl;
return false;
}
return SolverStarterTimeDiscretisationSetter< Problem, ImplicitTimeDiscretisationTag, ConfigTag >::run( problem, parameters );
}
std::cerr << "Uknown time discretisation: " << timeDiscretisation << "." << std::endl;
return false;
}
......
......@@ -36,9 +36,10 @@ target_link_libraries (tnl-curve2gnuplot tnl )
IF( BUILD_CUDA )
CUDA_ADD_EXECUTABLE( tnl-cuda-arch tnl-cuda-arch.cu )
INSTALL( TARGETS tnl-cuda-arch
RUNTIME DESTINATION bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE )
# TODO: Fix this -- https://cmake.org/pipermail/cmake/2013-September/055755.html
# INSTALL( TARGETS tnl-cuda-arch
# RUNTIME DESTINATION bin
# PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE )
ENDIF()
INSTALL( TARGETS tnl-init
......@@ -50,7 +51,7 @@ INSTALL( TARGETS tnl-init
tnl-dicom-reader
tnl-image-converter
tnl-curve2gnuplot
DESTINATION bin )
RUNTIME DESTINATION bin )
INSTALL( FILES ${PROJECT_TOOLS_PATH}/tnl-bindir
${PROJECT_TOOLS_PATH}/tnl-compile
......
ADD_EXECUTABLE( tnlMeshFuncttionEvaluateTest ${headers} MeshFunctionEvauateTest.cpp )
TARGET_LINK_LIBRARIES( tnlMeshFuncttionEvaluateTest ${CPPUNIT_LIBRARIES}
ADD_EXECUTABLE( MeshFunctionEvaluateTest ${headers} MeshFunctionEvauateTest.cpp )
TARGET_LINK_LIBRARIES( MeshFunctionEvaluateTest ${CPPUNIT_LIBRARIES}
tnl )
TARGET_COMPILE_DEFINITIONS( tnlMeshFuncttionEvaluateTest PUBLIC "-DDIMENSION=2" )
TARGET_COMPILE_DEFINITIONS( tnlMeshFuncttionEvaluateTest PUBLIC "-DXDISTR -DYDISTR" )
TARGET_COMPILE_DEFINITIONS( MeshFunctionEvaluateTest PUBLIC "-DDIMENSION=2" )
TARGET_COMPILE_DEFINITIONS( MeshFunctionEvaluateTest PUBLIC "-DXDISTR -DYDISTR" )
ADD_EXECUTABLE( tnlMeshFuncttionEvaluateTestX ${headers} MeshFunctionEvauateTest.cpp )
TARGET_LINK_LIBRARIES( tnlMeshFuncttionEvaluateTestX ${CPPUNIT_LIBRARIES}
ADD_EXECUTABLE( MeshFunctionEvaluateTestX ${headers} MeshFunctionEvauateTest.cpp )
TARGET_LINK_LIBRARIES( MeshFunctionEvaluateTestX ${CPPUNIT_LIBRARIES}
tnl )
TARGET_COMPILE_DEFINITIONS( tnlMeshFuncttionEvaluateTestX PUBLIC "-DDIMENSION=2" )
TARGET_COMPILE_DEFINITIONS( tnlMeshFuncttionEvaluateTestX PUBLIC "-DXDISTR" )
TARGET_COMPILE_DEFINITIONS( MeshFunctionEvaluateTestX PUBLIC "-DDIMENSION=2" )
TARGET_COMPILE_DEFINITIONS( MeshFunctionEvaluateTestX PUBLIC "-DXDISTR" )
ADD_EXECUTABLE( tnlMeshFuncttionEvaluateTestY ${headers} MeshFunctionEvauateTest.cpp )
TARGET_LINK_LIBRARIES( tnlMeshFuncttionEvaluateTestY ${CPPUNIT_LIBRARIES}
ADD_EXECUTABLE( MeshFunctionEvaluateTestY ${headers} MeshFunctionEvauateTest.cpp )
TARGET_LINK_LIBRARIES( MeshFunctionEvaluateTestY ${CPPUNIT_LIBRARIES}
tnl )
TARGET_COMPILE_DEFINITIONS( tnlMeshFuncttionEvaluateTestY PUBLIC "-DDIMENSION=2" )
TARGET_COMPILE_DEFINITIONS( tnlMeshFuncttionEvaluateTestY PUBLIC "-DYDISTR" )
TARGET_COMPILE_DEFINITIONS( MeshFunctionEvaluateTestY PUBLIC "-DDIMENSION=2" )
TARGET_COMPILE_DEFINITIONS( MeshFunctionEvaluateTestY PUBLIC "-DYDISTR" )
ADD_EXECUTABLE( mpiio-save-test ${headers} mpiio-save-test.cpp )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment