Skip to content

Commit 1d97744

Browse files
committed
Refactor project structure
1 parent 6beea10 commit 1d97744

File tree

20 files changed

+56
-16
lines changed

20 files changed

+56
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This course is part of the [CExA project](https://cexa-project.github.io/).
3232

3333
### Projects
3434

35-
- [Project 1: Wave Propagation](projects/wave/README.md)
35+
- [Project 1: Wave Propagation](projects/01_wave/README.md)
3636

3737
## Get the repository
3838

File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
cmake_minimum_required (VERSION 3.21)
2+
3+
project(01WaveExercise LANGUAGES CXX)
4+
5+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake/modules")
6+
7+
find_package(Kokkos REQUIRED)
8+
9+
add_executable(proj01 main.cpp)
10+
target_link_libraries(proj01 Kokkos::kokkos)
11+

projects/01_wave/exercise/main.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// ______________________________________________________________________
2+
//
3+
// Wave equation solver using finite differences
4+
//
5+
// ______________________________________________________________________
6+
7+
int main(int argc, char* argv[]) {
8+
/* ... */
9+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
cmake_minimum_required (VERSION 3.21)
2+
3+
project(01WaveOpenMP LANGUAGES CXX)
4+
5+
find_package(OpenMP REQUIRED)
6+
7+
add_executable(proj01openmp main.cpp)
8+
target_link_libraries(proj01openmp OpenMP::OpenMP_CXX)
9+
add_test(
10+
NAME proj01openmp
11+
COMMAND proj01openmp --size 128 128 --time 5 --output-period 100 --print-period 100 --domain-length 10 10 --boundary 1
12+
)

0 commit comments

Comments
 (0)