Skip to content

Commit

Permalink
Merge pull request #5511 from bangerth/depth_wrt_topo
Browse files Browse the repository at this point in the history
Remove an unused function from two geometry models.
  • Loading branch information
gassmoeller authored Dec 10, 2023
2 parents cb8812c + fc9eb1a commit 2a249a7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 58 deletions.
6 changes: 6 additions & 0 deletions doc/modules/changes/20231207_bangerth
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Removed: The GeometryModel::Chunk and GeometryModel::TwoMergedChunks
classes had member functions `depth_wrt_topo()`, but these were not
used anywhere and did not work with the mesh deformation
framework. They have consequently been removed.
<br>
(Wolfgang Bangerth, 2023/12/07)
15 changes: 0 additions & 15 deletions include/aspect/geometry_model/chunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,21 +277,6 @@ namespace aspect
*/
Point<dim> representative_point(const double depth) const override;

/**
* Whereas the depth function returns the depth with respect
* to the unperturbed surface, this function
* returns the depth with respect to the surface
* including the initial topography. For models without
* initial topography, the result will be the same.
*
* Note that the perturbed surface only considers the
* initially prescribed topography, not any perturbations
* due to a displacement of the free surface. Therefore,
* be careful with using this function if the surface changes
* over time.
*/
double depth_wrt_topo(const Point<dim> &position) const;

/**
* Return the longitude at the western edge of the chunk measured in
* radians.
Expand Down
15 changes: 0 additions & 15 deletions include/aspect/geometry_model/two_merged_chunks.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,21 +142,6 @@ namespace aspect
*/
Point<dim> representative_point(const double depth) const override;

/**
* Whereas the depth function returns the depth with respect
* to the unperturbed surface, this function
* returns the depth with respect to the surface
* including the initial topography. For models without
* initial topography, the result will be the same.
*
* Note that the perturbed surface only considers the
* initially prescribed topography, not any perturbations
* due to a displacement of the free surface. Therefore,
* be careful with using this function if the surface changes
* over time.
*/
double depth_wrt_topo(const Point<dim> &position) const;

/**
* Return the longitude at the western edge of the chunk measured in
* radians.
Expand Down
14 changes: 0 additions & 14 deletions source/geometry_model/chunk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -553,20 +553,6 @@ namespace aspect



template <int dim>
double
Chunk<dim>::depth_wrt_topo(const Point<dim> &position) const
{
// depth is defined wrt the reference surface point2[0] + the topography
// depth is therefore always positive
const double outer_radius = manifold->get_radius(position);
const Point<dim> rtopo_phi_theta = manifold->pull_back_sphere(position);
Assert (rtopo_phi_theta[0] <= outer_radius, ExcMessage("The radius is bigger than the maximum radius."));
return std::max(0.0, outer_radius - rtopo_phi_theta[0]);
}



template <int dim>
double
Chunk<dim>::height_above_reference_surface(const Point<dim> &position) const
Expand Down
14 changes: 0 additions & 14 deletions source/geometry_model/two_merged_chunks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -255,20 +255,6 @@ namespace aspect



template <int dim>
double
TwoMergedChunks<dim>::depth_wrt_topo(const Point<dim> &position) const
{
// depth is defined wrt the reference surface point2[0] + the topography
// depth is therefore always positive
const double outer_radius = manifold->get_radius(position);
const Point<dim> rtopo_phi_theta = manifold->pull_back_sphere(position);
Assert (rtopo_phi_theta[0] <= outer_radius, ExcMessage("The radius is bigger than the maximum radius."));
return std::max(0.0, outer_radius - rtopo_phi_theta[0]);
}



template <int dim>
double
TwoMergedChunks<dim>::height_above_reference_surface(const Point<dim> &position) const
Expand Down

0 comments on commit 2a249a7

Please sign in to comment.