Skip to content

Commit

Permalink
Merge pull request #5468 from bangerth/remove
Browse files Browse the repository at this point in the history
Remove a function that is never used.
  • Loading branch information
gassmoeller authored Nov 1, 2023
2 parents e022fb4 + a521949 commit a6c0edd
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 41 deletions.
6 changes: 0 additions & 6 deletions include/aspect/geometry_model/chunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,6 @@ namespace aspect
*/
void initialize () override;

/**
* This function calls the initialize function of the manifold
* with the given pointer to the initial topography model.
*/
void set_topography_model (const InitialTopographyModel::Interface<dim> *topo_pointer);

/**
* Generate a coarse mesh for the geometry described by this class.
*/
Expand Down
6 changes: 0 additions & 6 deletions include/aspect/geometry_model/two_merged_chunks.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,6 @@ namespace aspect
*/
void initialize () override;

/**
* This function calls the initialize function of the manifold
* with the given pointer to the initial topography model.
*/
void set_topography_model (const InitialTopographyModel::Interface<dim> *topo_pointer);

/**
* Generate a coarse mesh for the geometry described by this class.
*/
Expand Down
13 changes: 0 additions & 13 deletions source/geometry_model/chunk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -490,19 +490,6 @@ namespace aspect
}


template <int dim>
void
Chunk<dim>::set_topography_model (const InitialTopographyModel::Interface<dim> *topo_pointer)
{
AssertThrow(dynamic_cast<const InitialTopographyModel::ZeroTopography<dim>*>(topo_pointer) != nullptr ||
dynamic_cast<const InitialTopographyModel::AsciiData<dim>*>(topo_pointer) != nullptr,
ExcMessage("At the moment, only the Zero or AsciiData initial topography model can be used with the Chunk geometry model."));

manifold.initialize(topo_pointer);
}



template <int dim>
void
Chunk<dim>::
Expand Down
12 changes: 0 additions & 12 deletions source/geometry_model/two_merged_chunks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,6 @@ namespace aspect
}


template <int dim>
void
TwoMergedChunks<dim>::set_topography_model (const InitialTopographyModel::Interface<dim> *topo_pointer)
{
AssertThrow(dynamic_cast<const InitialTopographyModel::ZeroTopography<dim>*>(topo_pointer) != nullptr ||
dynamic_cast<const InitialTopographyModel::AsciiData<dim>*>(topo_pointer) != nullptr,
ExcMessage("At the moment, only the Zero or AsciiData initial topography model can be used with the TwoMergedChunks geometry model."));

manifold.initialize(topo_pointer);
}



template <int dim>
void
Expand Down
4 changes: 0 additions & 4 deletions tests/natural_coordinates_conversion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ int f()
// Chunk 2d
{
GeometryModel::Chunk<2> chunk;
InitialTopographyModel::ZeroTopography<2> zero_topo;
ParameterHandler prm_chunk;
chunk.declare_parameters(prm_chunk);
prm_chunk.enter_subsection("Geometry model");
Expand All @@ -101,7 +100,6 @@ int f()
prm_chunk.leave_subsection();
prm_chunk.leave_subsection();
chunk.parse_parameters(prm_chunk);
chunk.set_topography_model(&zero_topo);

inter_point_2d = chunk.cartesian_to_natural_coordinates(point_2d);
new_point_2d = chunk.natural_to_cartesian_coordinates(inter_point_2d);
Expand Down Expand Up @@ -167,7 +165,6 @@ int f()
// Chunk 3d
{
GeometryModel::Chunk<3> chunk;
InitialTopographyModel::ZeroTopography<3> zero_topo;
ParameterHandler prm_chunk;
chunk.declare_parameters(prm_chunk);
prm_chunk.enter_subsection("Geometry model");
Expand All @@ -177,7 +174,6 @@ int f()
prm_chunk.leave_subsection();
prm_chunk.leave_subsection();
chunk.parse_parameters(prm_chunk);
chunk.set_topography_model(&zero_topo);

inter_point_3d = chunk.cartesian_to_natural_coordinates(point_3d);
new_point_3d = chunk.natural_to_cartesian_coordinates(inter_point_3d);
Expand Down

0 comments on commit a6c0edd

Please sign in to comment.