-
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 #196 from PrincetonUniversity/issue-192
moved read_mesh/sources/receivers to the IO/interface.hpp
- Loading branch information
Showing
28 changed files
with
92 additions
and
120 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#pragma once | ||
|
||
#include "enumerations/simulation.hpp" | ||
#include "mesh/mesh.hpp" | ||
#include "receiver/interface.hpp" | ||
#include "source/interface.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); | ||
|
||
/** | ||
* @brief Read receiver station file | ||
* | ||
* Parse receiver stations file and create a vector of | ||
* specfem::source::source * object | ||
* | ||
* @param stations_file Stations file describing receiver locations | ||
* @param angle Angle of the receivers | ||
* @return std::vector<specfem::receivers::receiver *> vector of instantiated | ||
* receiver objects | ||
*/ | ||
std::vector<std::shared_ptr<specfem::receivers::receiver> > | ||
read_receivers(const std::string stations_file, const type_real angle); | ||
|
||
/** | ||
* @brief Read sources file written in .yml format | ||
* | ||
* Parse source specification file written in yaml format and create a vector of | ||
* specfem::source::source * object | ||
* | ||
* @param sources_file Name of the yml file | ||
* @param mpi Pointer to specfem MPI object | ||
* @return std::vector<specfem::sources::source *> vector of instantiated source | ||
* objects | ||
*/ | ||
std::tuple<std::vector<std::shared_ptr<specfem::sources::source> >, type_real> | ||
read_sources(const std::string sources_file, const int nsteps, | ||
const type_real user_t0, const type_real dt, | ||
const specfem::simulation::type simulation_type); | ||
|
||
} // namespace IO | ||
} // namespace specfem |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
2 changes: 1 addition & 1 deletion
2
tests/unit-tests/compute/coupled_interfaces/coupled_interfaces_tests.cpp
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
2 changes: 1 addition & 1 deletion
2
tests/unit-tests/compute/partial_derivatives/compute_partial_derivatives_tests.cpp
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
2 changes: 1 addition & 1 deletion
2
tests/unit-tests/displacement_tests/Newmark/acoustic/newmark_tests.cpp
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
2 changes: 1 addition & 1 deletion
2
tests/unit-tests/displacement_tests/Newmark/elastic/newmark_tests.cpp
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
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