Skip to content

Commit fe27f04

Browse files
Apply suggestions from @nuclearkevin
Co-authored-by: Kevin Sawatzky <66632997+nuclearkevin@users.noreply.github.com>
1 parent 1584b93 commit fe27f04

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/initialize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ int openmc_init(int argc, char* argv[], const void* intracomm)
9595
// libMesh was initialized externally. If libMesh was initialized internally,
9696
// the XDG config will use the internal initialization and communicator.
9797
xdg::config::external_libmesh_init = settings::libmesh_init.get();
98-
xdg::config::external_libmesh_comm = &(settings::libmesh_init->comm());
98+
xdg::config::external_libmesh_comm = settings::libmesh_comm;
9999
#endif
100100
#endif
101101

src/xdg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Position XDGMesh::centroid(int bin) const
182182

183183
centroid /= double(element_vertices.size());
184184

185-
return {centroid[0], centroid[1], centroid[1]};
185+
return {centroid[0], centroid[1], centroid[2]};
186186
}
187187

188188
int XDGMesh::n_vertices() const

0 commit comments

Comments
 (0)