-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #350 from PrincetonUniversity/issue-309-meshfem3d
Issue 309 meshfem3d
- Loading branch information
Showing
199 changed files
with
84,521 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*build* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Minimum CMake version required | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
# Project name and language | ||
project(MESHFEM3D LANGUAGES Fortran C) | ||
|
||
# Set the Fortran standard to 95 | ||
set(CMAKE_Fortran_STANDARD 95) | ||
set(CMAKE_Fortran_STANDARD_REQUIRED ON) | ||
|
||
set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran/meshfem3d/modules) | ||
include_directories("${CMAKE_BINARY_DIR}/fortran/meshfem3d/modules") | ||
|
||
set(ADIOS "OFF" CACHE BOOL "Use ADIOS for I/O") | ||
|
||
if (ADIOS) | ||
message(STATUS "ADIOS enabled for Meshfem3D Compilation") | ||
else(ADIOS) | ||
message(STATUS "ADIOS disabled for Meshfem3D Compilation") | ||
endif(ADIOS) | ||
|
||
add_subdirectory(setup) | ||
add_subdirectory(shared) | ||
add_subdirectory(meshfem3D) | ||
add_subdirectory(generate_databases) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
# Minimum CMake version required | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
# Project name and language | ||
project(MESHFEM3D_MESHFEM3D LANGUAGES Fortran C) | ||
|
||
# Set the Fortran standard to 95 | ||
set(CMAKE_Fortran_STANDARD 95) | ||
set(CMAKE_Fortran_STANDARD_REQUIRED ON) | ||
|
||
set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran/meshfem3d/modules) | ||
include_directories("${CMAKE_BINARY_DIR}/fortran/meshfem3d/modules") | ||
|
||
set(MESHFEM3D_GENERATE_DATABASES_MODULE | ||
calc_jacobian.f90 | ||
create_mass_matrices.f90 | ||
create_regions_mesh.f90 | ||
fault_generate_databases.f90 | ||
finalize_databases.f90 | ||
generate_databases_par.F90 | ||
generate_databases.f90 | ||
get_absorbing_boundary.F90 | ||
get_coupling_surfaces.f90 | ||
get_model.F90 | ||
get_MPI.f90 | ||
get_perm_color.f90 | ||
lts_generate_databases.F90 | ||
memory_eval.f90 | ||
model_1d_cascadia.f90 | ||
model_1d_prem.f90 | ||
model_1d_socal.f90 | ||
model_aniso.f90 | ||
model_coupled.f90 | ||
model_default.f90 | ||
model_external_values.F90 | ||
model_ipati.f90 | ||
model_gll.f90 | ||
model_salton_trough.f90 | ||
model_tomography.f90 | ||
parse_sep.c | ||
pml_set_local_dampingcoeff.f90 | ||
read_parameters.f90 | ||
read_partition_files.f90 | ||
save_arrays_solver.F90 | ||
setup_color_perm.f90 | ||
setup_mesh_adjacency.f90 | ||
setup_mesh.f90 | ||
wavefield_discontinuity_generate_databases.f90 | ||
) | ||
|
||
set(MESHFEM3D_GEN_DB_HDF5_MODULE | ||
read_partition_files_hdf5.F90 | ||
save_arrays_solver_hdf5.F90 | ||
) | ||
|
||
if (ADIOS) | ||
message(STATUS "ADIOS enabled") | ||
list(APPEND MESHFEM3D_GENERATE_DATABASES_MODULE | ||
model_gll_adios.F90 | ||
model_ipati_adios.F90 | ||
read_partition_files_adios.F90 | ||
save_arrays_solver_adios.F90 | ||
save_moho_adios.F90 | ||
) | ||
endif(ADIOS) | ||
|
||
# Add MPI dependency | ||
if (MPI_PARALLEL) | ||
list(APPEND MESHFEM3D_GENERATE_DATABASES_MODULE model_sep) | ||
else(MPI_PARALLEL) | ||
list(APPEND MESHFEM3D_GENERATE_DATABASES_MODULE model_sep_nompi) | ||
endif(MPI_PARALLEL) | ||
|
||
# Create parameter library module | ||
add_library(meshfem3D_generate_databases_module generate_databases_par.F90) | ||
add_library(meshfem3D::generate_databases_module ALIAS meshfem3D_generate_databases_module) | ||
target_link_libraries(meshfem3D_generate_databases_module PRIVATE meshfem3D::constants meshfem3D::shared_module meshfem3D::shared) | ||
|
||
# Create HDF5 module | ||
message(STATUS "Creating HDF5 module using: ${MESHFEM3D_GEN_DB_HDF5_MODULE}") | ||
add_library(meshfem3D_generate_databases_hdf5_module | ||
${MESHFEM3D_GEN_DB_HDF5_MODULE} | ||
) | ||
add_library(meshfem3D::generate_databases_hdf5_module ALIAS meshfem3D_generate_databases_hdf5_module) | ||
target_link_libraries(meshfem3D_generate_databases_hdf5_module PRIVATE | ||
meshfem3D::shared_hdf5_module | ||
meshfem3D::shared_module | ||
meshfem3D::generate_databases_module | ||
) | ||
|
||
# Compile library | ||
add_library(meshfem3D_generate_databases | ||
${MESHFEM3D_GENERATE_DATABASES_MODULE} | ||
) | ||
|
||
add_library(meshfem3D::generate_databases ALIAS meshfem3D_generate_databases) | ||
target_link_libraries(meshfem3D_generate_databases PRIVATE | ||
meshfem3D::generate_databases_module | ||
meshfem3D::generate_databases_hdf5_module | ||
meshfem3D::shared_module | ||
meshfem3D::constants | ||
meshfem3D::version | ||
meshfem3D::shared_hdf5_module | ||
meshfem3D::config | ||
) | ||
|
||
# Create executable | ||
add_executable(xgenerate_databases generate_databases.f90) | ||
target_link_libraries(xgenerate_databases PRIVATE | ||
meshfem3D::generate_databases_module | ||
meshfem3D::generate_databases_hdf5_module | ||
meshfem3D::shared | ||
meshfem3D::shared_module | ||
meshfem3D::mesh_hdf5_module | ||
meshfem3D::shared_hdf5_module | ||
meshfem3D::shared_adios_module | ||
meshfem3D::adios_methods_stubs | ||
meshfem3D::param_reader | ||
meshfem3D::version | ||
meshfem3D::generate_databases | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#===================================================================== | ||
# | ||
# S p e c f e m 3 D | ||
# ----------------- | ||
# | ||
# Main historical authors: Dimitri Komatitsch and Jeroen Tromp | ||
# CNRS, France | ||
# and Princeton University, USA | ||
# (there are currently many more authors!) | ||
# (c) October 2017 | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License along | ||
# with this program; if not, write to the Free Software Foundation, Inc., | ||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
# | ||
#===================================================================== | ||
|
||
DIR = generate_databases | ||
|
||
# The rest of this file is generic | ||
####################################### | ||
|
||
#### | ||
#### targets | ||
#### | ||
|
||
default: | ||
$(MAKE) -C ../.. $(DIR) | ||
|
||
all: | ||
$(MAKE) -C ../.. all | ||
|
||
clean: | ||
$(MAKE) -C ../.. CLEAN=$(DIR) clean | ||
|
||
cleanall: | ||
$(MAKE) -C ../.. clean | ||
|
||
backup: | ||
mkdir -p bak | ||
cp *f90 *h Makefile bak | ||
|
||
bak: backup | ||
|
||
.PHONY: default all clean cleanall backup bak |
Oops, something went wrong.