Skip to content

Commit

Permalink
fixed bug in max absorption computation
Browse files Browse the repository at this point in the history
  • Loading branch information
ScSteffen committed Jan 18, 2024
1 parent fee759f commit f6248ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples_hpc/lattice/mesh/lattice_rectangular.geo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cl_fine = 0.1;
n_recombine = 20;
n_prog = 1.1;
n_recombine = 40;
n_prog = 1.05;
Point(1) = {-3.5, -3.5, 0, cl_fine};
Point(2) = {3.5, -3.5, 0, cl_fine};
Point(3) = {-3.5, 3.5, 0, cl_fine};
Expand Down
2 changes: 1 addition & 1 deletion examples_hpc/lattice/mesh/make_lattice_mesh.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gmsh lattice_rectangular.geo -2 -format su2 -save_all -o lattice_n20.su2
gmsh lattice_rectangular.geo -2 -format su2 -save_all -o lattice_n40.su2
1 change: 0 additions & 1 deletion src/problems/lattice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ void Lattice_SN::ComputeCurrentAbsorptionLattice( const Vector& scalarFlux ) {
}
// TODO all absorption qois can be refactored in one function
void Lattice_SN::ComputeMaxAbsorptionLattice( const Vector& scalarFlux ) {
_curMaxAbsorptionLattice = 0.0;
unsigned nCells = _mesh->GetNumCells();
auto cellMids = _mesh->GetCellMidPoints();
std::vector<double> areas = _mesh->GetCellAreas();
Expand Down

0 comments on commit f6248ff

Please sign in to comment.