mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Minor bug fixes
This commit is contained in:
parent
f83ab39b99
commit
34275f4c72
2 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue