Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the protected object public to use its functions elsewhere. #5187

Merged
merged 2 commits into from
Jul 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion include/aspect/initial_composition/slab_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ namespace aspect
void
parse_parameters (ParameterHandler &prm) override;

protected:
/**
* A function that returns the slab_boundary object to allow access
* in other places.
*/
const Utilities::AsciiDataBoundary<dim> &get_slab_boundary() const;

private:
/**
* An object of ascii data boundary to input subducted slab depths
* and thicknesses.
Expand Down
8 changes: 8 additions & 0 deletions source/initial_composition/slab_model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ namespace aspect
}


template <int dim>
const Utilities::AsciiDataBoundary<dim> &
SlabModel<dim>::get_slab_boundary () const
{
return slab_boundary;
}


template <int dim>
void
SlabModel<dim>::declare_parameters (ParameterHandler &prm)
Expand Down