Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parallelization tutorial executable PiMonteCarlo #6189

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Executables/Examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ add_subdirectory(HelloWorldNoCharm)
# [add_subdirectory]
add_subdirectory(ParallelTutorial)
# [add_subdirectory]
add_subdirectory(PiMonteCarlo)
add_subdirectory(RandomAmr)
43 changes: 43 additions & 0 deletions src/Executables/Examples/PiMonteCarlo/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Distributed under the MIT License.
# See LICENSE.txt for details.

set(EXECUTABLE PiMonteCarlo)
set(TUTORIAL_EXECUTABLE PiMonteCarloTutorial)

add_spectre_executable(
${EXECUTABLE}
EXCLUDE_FROM_ALL
PiMonteCarlo.cpp
)

add_spectre_executable(
${TUTORIAL_EXECUTABLE}
EXCLUDE_FROM_ALL
PiMonteCarloTutorial.cpp
)

target_link_libraries(
${EXECUTABLE}
PRIVATE
Charmxx::main
DataStructures
ErrorHandling
Informer
Options
Parallel
Printf
Utilities
)

target_link_libraries(
${TUTORIAL_EXECUTABLE}
PRIVATE
Charmxx::main
DataStructures
ErrorHandling
Informer
Options
Parallel
Printf
Utilities
)
Loading
Loading