Skip to content

Commit

Permalink
Added CMake templates for SPECFEM++ run
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit-Kakodkar committed Nov 24, 2024
1 parent c2523c6 commit 3054ad8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
3 changes: 3 additions & 0 deletions examples/fluid-solid-bathymetry/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
line_sources.yaml
specfem_config.yaml
Par_File
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title = fluid-solid-bathymetry
NPROC = 1 # number of processes

# Output folder to store mesh related files
OUTPUT_FILES = OUTPUT_FILES
OUTPUT_FILES = @CMAKE_SOURCE_DIR@/examples/fluid-solid-bathymetry/OUTPUT_FILES

#-----------------------------------------------------------
#
Expand All @@ -26,7 +26,7 @@ PARTITIONING_TYPE = 3 # SCOTCH = 3, ascending order (
NGNOD = 9

# location to store the mesh
database_filename = OUTPUT_FILES/database.bin
database_filename = @CMAKE_SOURCE_DIR@/examples/fluid-solid-bathymetry/OUTPUT_FILES/database.bin

#-----------------------------------------------------------
#
Expand Down Expand Up @@ -62,7 +62,7 @@ zfin = 5.472d+03 # last receiver z in meters (ig
record_at_surface_same_vertical = .false. # receivers inside the medium or at the surface

# filename to store stations file
stations_filename = OUTPUT_FILES/STATIONS
stations_filename = @CMAKE_SOURCE_DIR@/examples/fluid-solid-bathymetry/OUTPUT_FILES/STATIONS

#-----------------------------------------------------------
#
Expand Down Expand Up @@ -112,7 +112,7 @@ tangential_detection_curve_file = ./DATA/courbe_eros_nodes # file containing th
#-----------------------------------------------------------

# file containing interfaces for internal mesh
interfacesfile = topography_file.dat
interfacesfile = @CMAKE_SOURCE_DIR@/examples/fluid-solid-bathymetry/topography.dat

# geometry of the model (origin lower-left corner = 0,0) and mesh description
xmin = 0.d0 # abscissa of left side of the model
Expand Down Expand Up @@ -140,4 +140,4 @@ nbregions = 2 # then set below the different

# meshing output
output_grid_Gnuplot = .false. # generate a GNUPLOT file containing the grid, and a script to plot it
output_grid_ASCII = .false. # dump the grid in an ASCII text file consisting of a set of X,Y,Z points or not
output_grid_ASCII = .false. # dump the grid in an ASCII text file consisting of a set of X,Y,Z points or not
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ parameters:
writer:
seismogram:
format: ascii
directory: OUTPUT_FILES/seismograms
directory: @CMAKE_SOURCE_DIR@/examples/fluid-solid-bathymetry/OUTPUT_FILES/seismograms

receivers:
stations-file: OUTPUT_FILES/STATIONS
stations-file: @CMAKE_SOURCE_DIR@/examples/fluid-solid-bathymetry/OUTPUT_FILES/STATIONS
angle: 0.0
seismogram-type:
- displacement
Expand All @@ -48,5 +48,5 @@ parameters:

## databases
databases:
mesh-database: OUTPUT_FILES/database.bin
source-file: line_sources.yaml
mesh-database: @CMAKE_SOURCE_DIR@/examples/fluid-solid-bathymetry/OUTPUT_FILES/database.bin
source-file: @CMAKE_SOURCE_DIR@/examples/fluid-solid-bathymetry/line_sources.yaml
5 changes: 5 additions & 0 deletions examples/fluid-solid-bathymetry/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

CMAKE_MINIMUM_REQUIRED(VERSION 3.17.5)

configure_file(CMakeFiles/specfem_config.yaml.in ${CMAKE_SOURCE_DIR}/examples/fluid-solid-bathymetry/specfem_config.yaml)
configure_file(CMakeFiles/Par_File.in ${CMAKE_SOURCE_DIR}/examples/fluid-solid-bathymetry/Par_File)

0 comments on commit 3054ad8

Please sign in to comment.