-
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 #149 from PrincetonUniversity/issue-146
Implements mesh reading as specfem::IO::read_mesh(...)
- Loading branch information
Showing
32 changed files
with
232 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.. _mesh_reader: | ||
|
||
Mesh Reader | ||
=========== | ||
|
||
.. doxygenfunction:: specfem::IO::read_mesh | ||
|
||
|
||
The above function reads the fortran binary mesh database and the following | ||
functions are called in the order of appearance in the code: | ||
|
||
|
||
.. doxygenfunction:: specfem::IO::mesh::fortran::read_mesh_database_header | ||
|
||
.. doxygenfunction:: specfem::IO::mesh::fortran::read_coorg_elements | ||
|
||
.. doxygenfunction:: specfem::IO::mesh::fortran::read_properties | ||
|
||
.. doxygenfunction:: specfem::IO::mesh::fortran::read_mesh_database_attenuation | ||
|
||
.. doxygenfunction:: specfem::IO::mesh::fortran::read_material_properties | ||
|
||
.. doxygenfunction:: specfem::IO::mesh::fortran::read_boundaries | ||
|
||
.. doxygenfunction:: specfem::IO::mesh::fortran::read_coupled_interfaces | ||
|
||
.. doxygenfunction:: specfem::IO::mesh::fortran::read_tangential_elements | ||
|
||
.. doxygenfunction:: specfem::IO::mesh::fortran::read_axial_elements | ||
|
||
Finally, we add tags to the :cpp:struct:`specfem::mesh::mesh` using the | ||
:cpp:struct:`specfem::mesh::tags` struct. The description of which can be found | ||
here: :ref:`mesh_tags`. |
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 |
---|---|---|
|
@@ -6,6 +6,6 @@ Input/Output modules | |
:maxdepth: 2 | ||
|
||
fortran_io | ||
Library/index | ||
Libraries/index | ||
writer/index | ||
reader/index |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#pragma once | ||
|
||
#include "mesh/mesh.hpp" | ||
#include "specfem_mpi/interface.hpp" | ||
#include "specfem_setup.hpp" | ||
|
||
namespace specfem { | ||
|
||
namespace IO { | ||
|
||
/* @brief Construct a mesh object from a Fortran binary database file | ||
* | ||
* @param filename Fortran binary database filename | ||
* @param mpi pointer to MPI object to manage communication | ||
* @return specfem::mesh::mesh Specfem mesh object | ||
*/ | ||
specfem::mesh::mesh read_mesh(const std::string filename, | ||
const specfem::MPI::MPI *mpi); | ||
|
||
} // namespace IO | ||
} // namespace specfem |
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
Oops, something went wrong.