From 5c58365fc6e67d95e69bd9421f371c2e30858939 Mon Sep 17 00:00:00 2001 From: nuclearkevin <66632997+nuclearkevin@users.noreply.github.com> Date: Fri, 11 Oct 2024 11:21:35 -0500 Subject: [PATCH] Style changes. --- include/tallies/MeshTally.h | 9 +++++---- src/tallies/MeshTally.C | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/include/tallies/MeshTally.h b/include/tallies/MeshTally.h index cc108119a..3120cbeac 100644 --- a/include/tallies/MeshTally.h +++ b/include/tallies/MeshTally.h @@ -25,7 +25,7 @@ namespace libMesh { - class SerialMesh; +class SerialMesh; } class MeshTally : public TallyBase @@ -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_mesh_copy; /// A mapping between the elements in '_libmesh_mesh_copy' and the elements in the MooseMesh. diff --git a/src/tallies/MeshTally.C b/src/tallies/MeshTally.C index 230491d77..1b57b36c3 100644 --- a/src/tallies/MeshTally.C +++ b/src/tallies/MeshTally.C @@ -188,14 +188,14 @@ MeshTally::storeResultsInner(const std::vector & 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); } }