-
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.
Modified specfem config.yaml format | Breaking change
- Modified SPECFEM config file format to account for adjoint simulations
- Loading branch information
1 parent
acc45ce
commit 6c690aa
Showing
11 changed files
with
142 additions
and
74 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 was deleted.
Oops, something went wrong.
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,38 @@ | ||
#ifndef _SPECFEM_RUNTIME_CONFIGURATION_WAVEFIELD_HPP | ||
#define _SPECFEM_RUNTIME_CONFIGURATION_WAVEFIELD_HPP | ||
|
||
#include "compute/compute_assembly.hpp" | ||
#include "reader/reader.hpp" | ||
#include "writer/writer.hpp" | ||
#include "yaml-cpp/yaml.h" | ||
|
||
namespace specfem { | ||
namespace runtime_configuration { | ||
class wavefield { | ||
|
||
public: | ||
wavefield(const std::string output_type, const std::string output_format, | ||
const std::string output_folder, | ||
const specfem::enums::simulation::type type) | ||
: output_type(output_type), output_format(output_format), | ||
output_folder(output_folder), simulation_type(type) {} | ||
|
||
wavefield(const YAML::Node &Node, | ||
const specfem::enums::simulation::type type); | ||
|
||
std::shared_ptr<specfem::writer::writer> instantiate_wavefield_writer( | ||
const specfem::compute::assembly &assembly) const; | ||
|
||
std::shared_ptr<specfem::reader::reader> instantiate_wavefield_reader( | ||
const specfem::compute::assembly &assembly) const; | ||
|
||
private: | ||
std::string output_format; ///< format of output file | ||
std::string output_folder; ///< Path to output folder | ||
std::string output_type; ///< Type of output | ||
specfem::enums::simulation::type simulation_type; ///< Type of simulation | ||
}; | ||
} // namespace runtime_configuration | ||
} // namespace specfem | ||
|
||
#endif /* _SPECFEM_RUNTIME_CONFIGURATION_WAVEFIELD_HPP */ |
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.
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