Skip to content

Commit

Permalink
Style changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearkevin committed Oct 11, 2024
1 parent 2b86141 commit 5c58365
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions include/tallies/MeshTally.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace libMesh
{
class SerialMesh;
class SerialMesh;
}

class MeshTally : public TallyBase
Expand Down Expand Up @@ -99,11 +99,12 @@ class MeshTally : public TallyBase

/**
* For use with AMR only. A copy of the mesh which only contains active elements.
* This removes the link between the MooseMesh that has an auxvariable equation system and the OpenMC
* mesh which has an equation system that is tallied on. The OpenMC equation system throws
* This removes the link between the MooseMesh that has an auxvariable equation system and the
* OpenMC mesh which has an equation system that is tallied on. The OpenMC equation system throws
* errors when attempting to project solution vectors as it has not been initialized with
* the data structures required for adaptivity.
* TODO: Fix this in OpenMC (enable adaptivity in the equation systems added by openmc::LibMesh meshes).
* TODO: Fix this in OpenMC (enable adaptivity in the equation systems added by openmc::LibMesh
* meshes).
*/
std::unique_ptr<libMesh::SerialMesh> _libmesh_mesh_copy;
/// A mapping between the elements in '_libmesh_mesh_copy' and the elements in the MooseMesh.
Expand Down
8 changes: 4 additions & 4 deletions src/tallies/MeshTally.C
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ MeshTally::storeResultsInner(const std::vector<unsigned int> & var_numbers,
// mesh constructors in OpenMC, we need to adjust the division
Real volumetric_power = power_fraction;
volumetric_power *= normalized ? _openmc_problem.tallyMultiplier(global_score) /
_mesh_template->volume(e) * _openmc_problem.scaling() *
_openmc_problem.scaling() * _openmc_problem.scaling()
: 1.0;
_mesh_template->volume(e) * _openmc_problem.scaling() *
_openmc_problem.scaling() * _openmc_problem.scaling()
: 1.0;
total += power_fraction;

auto var = var_numbers[_num_ext_filter_bins * local_score + ext_bin];
auto elem_id = _is_adaptive ? _active_to_total_mapping[e] : mesh_offset + e;
fillElementalAuxVariable(var, { elem_id }, volumetric_power);
fillElementalAuxVariable(var, {elem_id}, volumetric_power);
}
}

Expand Down

0 comments on commit 5c58365

Please sign in to comment.