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

Generate required files for examples/Tromp2005 from CMake #393

Open
wants to merge 2 commits into
base: issue-228-anisotropy
Choose a base branch
from
Open
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
3 changes: 0 additions & 3 deletions examples/Tromp_2005/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ OUTPUT_FILES/*
*.semd
*.adj
Par_File
Snakefile
*.pyc
forward_source.yaml
forward_config.yaml
adjoint_source.yaml
adjoint_config.yaml
247 changes: 0 additions & 247 deletions examples/Tromp_2005/CMakeFiles/Snakefile.in

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
parameters:

databases:
mesh-database: "@CMAKE_SOURCE_DIR@/examples/Tromp_2005/OUTPUT_FILES/database.bin"
source-file: "@CMAKE_SOURCE_DIR@/examples/Tromp_2005/adjoint_source.yaml"

header:
title: "Tromp-Tape-Liu (GJI 2005)"
description: |
Material systems : Elastic domain (1)
Interfaces : None
Expand All @@ -12,29 +15,39 @@ parameters:
Output : Wavefield at the last time step (1)
Output : Seismograms in ASCII format (1)

title: Tromp-Tape-Liu (GJI 2005)

receivers:
angle: 0.0
nstep_between_samples: 1
seismogram-type:
- displacement
stations-file: placeholder/for/path/to/STATIONS

run-setup:
number-of-processors: 1
number-of-runs: 1

simulation-setup:
quadrature:
quadrature-type: GLL4

simulation-mode:
combined:
reader:
wavefield:
directory: "@CMAKE_SOURCE_DIR@/examples/Tromp_2005/OUTPUT_FILES"
format: HDF5

writer:
kernels:
directory: "@CMAKE_SOURCE_DIR@/examples/Tromp_2005/OUTPUT_FILES"
format: ASCII

solver:
time-marching:
time-scheme:
type: Newmark
dt: 0.02
nstep: 2004
t0: 8.0

receivers:
stations-file: placeholder/for/path/to/STATIONS
angle: 0.0
seismogram-type:
- displacement
nstep_between_samples: 1

run-setup:
number-of-processors: 1
number-of-runs: 1

databases:
mesh-database: placeholder/for/path/to/database.bin
source-file: placeholder/for/path/to/source.yaml
type: Newmark
51 changes: 51 additions & 0 deletions examples/Tromp_2005/CMakeFiles/forward_config.yaml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
parameters:

databases:
mesh-database: "@CMAKE_SOURCE_DIR@/examples/Tromp_2005/OUTPUT_FILES/database.bin"
source-file: "@CMAKE_SOURCE_DIR@/examples/Tromp_2005/forward_source.yaml"

header:
description: |
Material systems : Elastic domain (1)
Interfaces : None
Sources : Force source (1)
Boundary conditions : Free surface (1)
Mesh : 2D Cartesian grid (1)
Receiver : Displacement seismogram (1)
Output : Wavefield at the last time step (1)
Output : Seismograms in ASCII format (1)

title: Tromp-Tape-Liu (GJI 2005)

receivers:
angle: 0.0
nstep_between_samples: 1
seismogram-type:
- displacement
stations-file: "@CMAKE_SOURCE_DIR@/examples/Tromp_2005/OUTPUT_FILES/STATIONS"

run-setup:
number-of-processors: 1
number-of-runs: 1

simulation-setup:
quadrature:
quadrature-type: GLL4

simulation-mode:
forward:
writer:
seismogram:
directory: "@CMAKE_SOURCE_DIR@/examples/Tromp_2005/OUTPUT_FILES/results"
format: ASCII
wavefield:
directory: "@CMAKE_SOURCE_DIR@/examples/Tromp_2005/OUTPUT_FILES"
format: HDF5

solver:
time-marching:
time-scheme:
dt: 0.02
nstep: 2004
t0: 8.0
type: Newmark
3 changes: 2 additions & 1 deletion examples/Tromp_2005/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
CMAKE_MINIMUM_REQUIRED(VERSION 3.17.5)

configure_file(CMakeFiles/Par_File.in ${CMAKE_SOURCE_DIR}/examples/Tromp_2005/Par_File)
configure_file(CMakeFiles/Snakefile.in ${CMAKE_SOURCE_DIR}/examples/Tromp_2005/Snakefile)
configure_file(CMakeFiles/forward_config.yaml.in ${CMAKE_SOURCE_DIR}/examples/Tromp_2005/forward_config.yaml)
configure_file(CMakeFiles/adjoint_config.yaml.in ${CMAKE_SOURCE_DIR}/examples/Tromp_2005/adjoint_config.yaml)
Binary file added examples/Tromp_2005/Kernels.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading