Skip to content

Commit

Permalink
Fixed runtime config solver docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit-Kakodkar committed Oct 10, 2024
1 parent cf02d4b commit d4939e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/setup_parameters/solver/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Solver API

Methods to read solver information from the configuration file and instantiate a solver.

.. doxygenclass:: specfem::runtime_configuration::solver:solver
.. doxygenclass:: specfem::runtime_configuration::solver::solver
:members:
5 changes: 5 additions & 0 deletions include/parameter_parser/solver/solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ class solver {
std::shared_ptr<specfem::time_scheme::time_scheme> time_scheme,
const qp_type &quadrature) const;

/**
* @brief Get the type of the simulation (forward or combined)
*
* @return specfem::simulation::type Type of the simulation
*/
inline specfem::simulation::type get_simulation_type() const {
if (this->simulation_type == "forward") {
return specfem::simulation::type::forward;
Expand Down

0 comments on commit d4939e6

Please sign in to comment.