Skip to content

Commit e85129c

Browse files
committed
API change
1 parent 3af0fb0 commit e85129c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/mesh.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3239,11 +3239,12 @@ LibMesh::LibMesh(libMesh::MeshBase& input_mesh, double length_multiplier)
32393239
}
32403240

32413241

3242-
void LibMesh::set_mesh_tally_amalgamation(std::string cluster_element_integer_name){
3242+
void
3243+
LibMesh::set_mesh_tally_amalgamation(std::string cluster_element_integer_name){
32433244

3244-
cluster_element_integer_index_ = input_mesh.has_elem_integer(cluster_element_integer_name)
3245-
? input_mesh.get_elem_integer_index(cluster_element_integer_name)
3246-
: -1;
3245+
cluster_element_integer_index_ = m_->has_elem_integer(cluster_element_integer_name)
3246+
? m_->get_elem_integer_index(cluster_element_integer_name)
3247+
: -1;
32473248
amalgamation_ = (cluster_element_integer_index_ != -1);
32483249

32493250
//should we add a warning if amalgamation is false?
@@ -3256,7 +3257,8 @@ void LibMesh::set_mesh_tally_amalgamation(std::string cluster_element_integer_na
32563257
//adding clustering map
32573258
for (auto it = m_->active_elements_begin(); it != m_->active_elements_end(); it++) {
32583259

3259-
auto cluster_elem = *it;
3260+
auto elem = *it;
3261+
auto cluster_elem = elem;
32603262
unsigned int cluster_id = elem->get_extra_integer(cluster_element_integer_index_);
32613263

32623264
if (cluster_id != -1) {
@@ -3302,7 +3304,6 @@ void LibMesh::build_eqn_sys()
33023304

33033305
// intialize from mesh file
33043306
void LibMesh::initialize()
3305-
void LibMesh::initialize()
33063307
{
33073308
if (!settings::libmesh_comm) {
33083309
fatal_error("Attempting to use an unstructured mesh without a libMesh "

0 commit comments

Comments
 (0)