Loading src/TNL/Solvers/SolverStarter_impl.h +14 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading src/Tools/CMakeLists.txt +5 −4 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading tests/mpi/CMakeLists.txt +12 −12 Original line number Diff line number Diff line 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 ) Loading Loading
src/TNL/Solvers/SolverStarter_impl.h +14 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading
src/Tools/CMakeLists.txt +5 −4 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading
tests/mpi/CMakeLists.txt +12 −12 Original line number Diff line number Diff line 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 ) Loading