Skip to content

Commit

Permalink
Renaming prepare_for_tallies method to prepare_for_point_location
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Oct 2, 2024
1 parent 3d09cb3 commit d4e0e53
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions include/openmc/mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ class Mesh {
virtual ~Mesh() = default;

// Methods
//! Perform any preparation needed to support use in mesh filters
virtual void prepare_for_tallies() {};
//! Perform any preparation needed to support point location within the mesh
virtual void prepare_for_point_location() {};

//! Update a position to the local coordinates of the mesh
virtual void local_coords(Position& r) const {};
Expand Down Expand Up @@ -737,7 +737,7 @@ class MOABMesh : public UnstructuredMesh {
// Overridden Methods

//! Perform any preparation needed to support use in mesh filters
void prepare_for_tallies() override;
void prepare_for_point_location() override;

Position sample_element(int32_t bin, uint64_t* seed) const override;

Expand Down
2 changes: 1 addition & 1 deletion src/mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,7 @@ void MOABMesh::initialize()
this->determine_bounds();
}

void MOABMesh::prepare_for_tallies()
void MOABMesh::prepare_for_point_location()
{
// if the KDTree has already been constructed, do nothing
if (kdtree_)
Expand Down
2 changes: 1 addition & 1 deletion src/tallies/filter_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void MeshFilter::set_mesh(int32_t mesh)
// perform any additional perparation for mesh tallies here
mesh_ = mesh;
n_bins_ = model::meshes[mesh_]->n_bins();
model::meshes[mesh_]->prepare_for_tallies();
model::meshes[mesh_]->prepare_for_point_location();
}

void MeshFilter::set_translation(const Position& translation)
Expand Down
2 changes: 1 addition & 1 deletion src/weight_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ void WeightWindows::set_mesh(int32_t mesh_idx)
fatal_error(fmt::format("Could not find a mesh for index {}", mesh_idx));

mesh_idx_ = mesh_idx;
model::meshes[mesh_idx_]->prepare_for_tallies();
model::meshes[mesh_idx_]->prepare_for_point_location();
allocate_ww_bounds();
}

Expand Down

0 comments on commit d4e0e53

Please sign in to comment.