Minor bug fixes

This commit is contained in:
Shikhar Kumar 2021-02-09 12:41:41 -05:00
parent f83ab39b99
commit 34275f4c72
2 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ xt::xtensor<int, 2> indexmap;
int use_all_threads;
RegularMesh* mesh;
StructuredMesh* mesh;
std::vector<double> egrid;
@ -222,7 +222,7 @@ void openmc_initialize_mesh_egrid(const int meshtally_id, const int* cmfd_indice
openmc_mesh_filter_get_mesh(meshfilter_index, &mesh_index);
// Get mesh from mesh index
cmfd::mesh = get_regular_mesh(mesh_index);
cmfd::mesh = dynamic_cast<StructuredMesh*>(model::meshes[mesh_index].get());
// Get energy bins from energy index, otherwise use default
if (energy_index != -1) {