Skip to content

Commit bcdd0bb

Browse files
committed
wip
1 parent d6ed5ab commit bcdd0bb

File tree

8 files changed

+1486
-806
lines changed

8 files changed

+1486
-806
lines changed

examples/deal.II/CMakeLists.txt

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,21 @@ IF(NOT ${deal.II_FOUND})
1111
)
1212
ENDIF()
1313

14-
DEAL_II_INITIALIZE_CACHED_VARIABLES()
15-
PROJECT("bps")
14+
FILE(GLOB SOURCE_FILES "*.cc")
1615

17-
DEAL_II_INITIALIZE_CACHED_VARIABLES()
16+
FOREACH ( source_file ${SOURCE_FILES} )
17+
GET_FILENAME_COMPONENT(file_name ${source_file} NAME)
18+
STRING( REPLACE ".cc" "" exec ${file_name} )
1819

19-
ADD_EXECUTABLE(bps bps.cc)
20-
DEAL_II_SETUP_TARGET(bps)
20+
DEAL_II_INITIALIZE_CACHED_VARIABLES()
21+
PROJECT(${exec})
2122

22-
TARGET_INCLUDE_DIRECTORIES(bps PUBLIC ${CEED_DIR}/include)
23-
TARGET_LINK_LIBRARIES(bps ${CEED_DIR}/lib/libceed.so)
23+
DEAL_II_INITIALIZE_CACHED_VARIABLES()
24+
25+
ADD_EXECUTABLE(${exec} ${source_file})
26+
DEAL_II_SETUP_TARGET(${exec})
27+
28+
TARGET_INCLUDE_DIRECTORIES(${exec} PUBLIC ${CEED_DIR}/include)
29+
TARGET_LINK_LIBRARIES(${exec} ${CEED_DIR}/lib/libceed.so)
30+
31+
ENDFOREACH ( source_file ${SOURCE_FILES} )

examples/deal.II/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ cmake ../ -DDEAL_II_DIR=~/path/to/dealii -DCEED_DIR=~/path/to/libceed
1212
make
1313
```
1414

15-
To run the executable, write:
15+
To run the executables, write:
1616

1717
```
18-
./bps
18+
./bps_cpu
19+
```
20+
21+
```
22+
./bps_kokkos
1923
```
2024

2125
Optional command-line arguments are shown by adding the command-line argument "--help".

0 commit comments

Comments
 (0)