Skip to content

Commit

Permalink
Update data.
Browse files Browse the repository at this point in the history
  • Loading branch information
icui committed Feb 3, 2025
1 parent 2aa729b commit da14a72
Show file tree
Hide file tree
Showing 22 changed files with 52 additions and 673 deletions.
8 changes: 2 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -642,20 +642,16 @@ add_executable(
benchmarks/main.cpp
)

add_subdirectory(benchmarks/data)
add_subdirectory(benchmarks/data_iso)
add_subdirectory(benchmarks/data_aniso)

target_link_libraries(
specfem2d-benchmark
execute
)

target_compile_definitions(
specfem2d-benchmark
PRIVATE __benchmark_acoustic__="${CMAKE_CURRENT_SOURCE_DIR}/benchmarks/data/specfem_config.yaml"
PRIVATE __benchmark_iso__="${CMAKE_CURRENT_SOURCE_DIR}/benchmarks/data_iso/specfem_config.yaml"
PRIVATE __benchmark_aniso__="${CMAKE_CURRENT_SOURCE_DIR}/benchmarks/data_aniso/specfem_config.yaml"
PRIVATE __benchmark_eiso__="${CMAKE_CURRENT_SOURCE_DIR}/benchmarks/data_eiso/specfem_config.yaml"
PRIVATE __benchmark_eani__="${CMAKE_CURRENT_SOURCE_DIR}/benchmarks/data_eani/specfem_config.yaml"
)

# Include tests
Expand Down
3 changes: 3 additions & 0 deletions benchmarks/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data_iso
data_eiso
data_eani
2 changes: 0 additions & 2 deletions benchmarks/data/.gitignore

This file was deleted.

154 changes: 0 additions & 154 deletions benchmarks/data/CMakeFiles/Par_File.in

This file was deleted.

5 changes: 0 additions & 5 deletions benchmarks/data/CMakeLists.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ parameters:

header:
## Header information is used for logging. It is good practice to give your simulations explicit names
title: Isotropic Elastic simulation # name for your simulation
title: ${title} # name for your simulation
# A detailed description for your simulation
description: |
Material systems : Elastic domain (1)
Material systems : ${title}
Interfaces : None
Sources : Force source (1)
Boundary conditions : Neumann BCs on all edges
Expand All @@ -28,10 +28,10 @@ parameters:
writer:
seismogram:
format: "ascii"
directory: "@CMAKE_SOURCE_DIR@/benchmarks/data/OUTPUT_FILES/results"
directory: "${cwd}/OUTPUT_FILES"

receivers:
stations: "@CMAKE_SOURCE_DIR@/benchmarks/data/OUTPUT_FILES/STATIONS"
stations: "${cwd}/OUTPUT_FILES/STATIONS"
angle: 0.0
seismogram-type:
- velocity
Expand All @@ -44,7 +44,7 @@ parameters:

## databases
databases:
mesh-database: "@CMAKE_SOURCE_DIR@/benchmarks/data/OUTPUT_FILES/database.bin"
mesh-database: "${cwd}/OUTPUT_FILES/database.bin"

## sources
sources: "@CMAKE_SOURCE_DIR@/benchmarks/data/source.yaml"
sources: "${cwd}/source.yaml"
2 changes: 1 addition & 1 deletion benchmarks/data/topography.dat
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
#
# layer number 1 (bottom layer)
#
600
${nz}
2 changes: 0 additions & 2 deletions benchmarks/data_aniso/.gitignore

This file was deleted.

135 changes: 0 additions & 135 deletions benchmarks/data_aniso/CMakeFiles/Par_File.in

This file was deleted.

Loading

0 comments on commit da14a72

Please sign in to comment.