1set(testLabel "phsolver_incompressible") 2add_test(NAME ${testLabel}_sync 3 COMMAND ${CMAKE_COMMAND} 4 -DNAME=${casename} 5 -DWORKDIR=${CDIR} 6 -DCASEDIR=${CDIR}/4-procs_case-SyncIO-2 7 -DTGTCASEDIR=${CDIR}/4-procs_case 8 -DNUMSTART=${CDIR}/numstart.dat 9 -DMPIRUN=${MPIRUN} 10 -DMPIRUN_PROCFLAG=${MPIRUN_PROCFLAG} 11 -DEXE=${PHASTA_BINARY_DIR}/bin/phastaIC.exe 12 -DNUMPROCS=4 13 -P ${CMAKE_CURRENT_SOURCE_DIR}/runphasta.cmake 14 ) 15if(HAS_VALGRIND) 16 ic_serial_test(resetNumStartValgrind-sync 17 cp ${CDIR}/numstart.dat ${CDIR}/4-procs_case/numstart.dat) 18 ic_parallel_test(valgrind-sync 4 ${CDIR} 19 valgrind --leak-check=yes --log-file=icSyncValgrind.%p 20 ${PHASTA_BINARY_DIR}/bin/phastaIC.exe) 21endif(HAS_VALGRIND) 22 23add_test(NAME ${testLabel}_restart-sync 24 COMMAND ${CMAKE_COMMAND} 25 -DNAME=${casename} 26 -DWORKDIR=${CDIR} 27 -DCASEDIR=${CDIR}/4-procs_case-SyncIO-2 28 -DTGTCASEDIR=${CDIR}/4-procs_case 29 -DMPIRUN=${MPIRUN} 30 -DMPIRUN_PROCFLAG=${MPIRUN_PROCFLAG} 31 -DEXE=${PHASTA_BINARY_DIR}/bin/phastaIC.exe 32 -DNUMPROCS=4 33 -P ${CMAKE_CURRENT_SOURCE_DIR}/runphasta.cmake 34 ) 35 36add_test(NAME ${testLabel}_posix 37 COMMAND ${CMAKE_COMMAND} 38 -DNAME=${casename} 39 -DWORKDIR=${CDIR} 40 -DCASEDIR=${CDIR}/4-procs_case-Posix 41 -DTGTCASEDIR=${CDIR}/4-procs_case 42 -DNUMSTART=${CDIR}/numstart.dat 43 -DMPIRUN=${MPIRUN} 44 -DMPIRUN_PROCFLAG=${MPIRUN_PROCFLAG} 45 -DEXE=${PHASTA_BINARY_DIR}/bin/phastaIC.exe 46 -DNUMPROCS=4 47 -P ${CMAKE_CURRENT_SOURCE_DIR}/runphasta.cmake 48 ) 49 50if(HAS_VALGRIND) 51 ic_serial_test(resetNumStartValgrind-posix 52 cp ${CDIR}/numstart.dat ${CDIR}/4-procs_case/numstart.dat) 53 ic_parallel_test(valgrind-posix 4 ${CDIR} 54 valgrind --leak-check=yes --log-file=icPosixValgrind.%p 55 ${PHASTA_BINARY_DIR}/bin/phastaIC.exe) 56endif(HAS_VALGRIND) 57 58add_test(NAME ${testLabel}_restart-posix 59 COMMAND ${CMAKE_COMMAND} 60 -DNAME=${casename} 61 -DWORKDIR=${CDIR} 62 -DCASEDIR=${CDIR}/4-procs_case-Posix 63 -DTGTCASEDIR=${CDIR}/4-procs_case 64 -DMPIRUN=${MPIRUN} 65 -DMPIRUN_PROCFLAG=${MPIRUN_PROCFLAG} 66 -DEXE=${PHASTA_BINARY_DIR}/bin/phastaIC.exe 67 -DNUMPROCS=4 68 -P ${CMAKE_CURRENT_SOURCE_DIR}/runphasta.cmake 69 ) 70