Skip to content

Commit

Permalink
changing main-release to main
Browse files Browse the repository at this point in the history
  • Loading branch information
landinjm committed Nov 19, 2024
1 parent 4498477 commit 0d99805
Show file tree
Hide file tree
Showing 42 changed files with 80 additions and 81 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ compile_commands.json
*.out
*.app
*.pbs
main-release
main-debug
main

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ cd applications/cahnHilliard
cmake .
make -j <nprocs>
```
This will generate two executable files: `main-release` and `main-debug`. Debug and release are compiler configurations. Debug mode is slower, but contains less optimiziations and more meaningful error messages. This makes it ideal for application/model code development. Release mode has less "safety features" and meaningful error messages, with more optimizations (faster runtime).
This will generate two executable files: `main` and `main-debug`. Debug and release are compiler configurations. Debug mode is slower, but contains less optimiziations and more meaningful error messages. This makes it ideal for application/model code development. Release mode has less "safety features" and meaningful error messages, with more optimizations (faster runtime).

Debug execution (serial runs):
```bash
$ ./main-debug
```
Release execution (parallel runs):
```bash
$ mpirun -np <nprocs> ./main-release
$ mpirun -np <nprocs> ./main
```

### Visualization:
Expand Down
4 changes: 2 additions & 2 deletions applications/CHAC_anisotropy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../libprisms-pf-release.a)
endif()
4 changes: 2 additions & 2 deletions applications/CHAC_anisotropyRegularized/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../libprisms-pf-release.a)
endif()
4 changes: 2 additions & 2 deletions applications/CHAC_performance_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../libprisms-pf-release.a)
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../../libprisms-pf-release.a)
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../../libprisms-pf-release.a)
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../../libprisms-pf-release.a)
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../../libprisms-pf-release.a)
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../../libprisms-pf-release.a)
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../../libprisms-pf-release.a)
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../../libprisms-pf-release.a)
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../../libprisms-pf-release.a)
endif()
4 changes: 2 additions & 2 deletions applications/MgNd_precipitate_single_Bppp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../libprisms-pf-release.a)
endif()
4 changes: 2 additions & 2 deletions applications/allenCahn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../libprisms-pf-release.a)
endif()
4 changes: 2 additions & 2 deletions applications/allenCahn_conserved/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../libprisms-pf-release.a)
endif()
4 changes: 2 additions & 2 deletions applications/alloySolidification/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../libprisms-pf-release.a)
endif()
4 changes: 2 additions & 2 deletions applications/alloySolidification_uniform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../libprisms-pf-release.a)
endif()
4 changes: 2 additions & 2 deletions applications/anisotropyFacet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../libprisms-pf-release.a)
endif()
4 changes: 2 additions & 2 deletions applications/cahnHilliard/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../libprisms-pf-release.a)
endif()
4 changes: 2 additions & 2 deletions applications/corrosion/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR
"${CMAKE_BUILD_TYPE}" STREQUAL "DebugRelease")
set(PRISMS_PF_BUILD_DEBUG "ON")
else()
set(PRISMS_PF_BUILD_DEBUG "OFF")
set(PRISMS_PF_BUILD_DEBUG "OFF")
endif()

if("${CMAKE_BUILD_TYPE}" STREQUAL "Release" OR
Expand Down Expand Up @@ -159,7 +159,7 @@ endif()

if(${PRISMS_PF_BUILD_RELEASE} STREQUAL "ON")
add_executable(main_release ${TARGET_SRC})
set_property(TARGET main_release PROPERTY OUTPUT_NAME main-release)
set_property(TARGET main_release PROPERTY OUTPUT_NAME main)
deal_ii_setup_target(main_release RELEASE)
target_link_libraries(main_release ${CMAKE_SOURCE_DIR}/../../libprisms-pf-release.a)
endif()
Loading

0 comments on commit 0d99805

Please sign in to comment.