Skip to content

Commit

Permalink
Revert "use balance charge function"
Browse files Browse the repository at this point in the history
This reverts commit 6e2141f.
  • Loading branch information
Piyush Sharda authored and Piyush Sharda committed Aug 29, 2024
1 parent 6e2141f commit 14eb8be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unit_test/burn_cell_primordial_chem/burn_cell.H
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <eos.H>
#include <extern_parameters.H>
#include <network.H>
#include <actual_network.H>

amrex::Real grav_constant = 6.674e-8;

Expand Down Expand Up @@ -210,7 +209,8 @@ auto burn_cell_c() -> int {
}

// update the number density of electrons due to charge conservation
balance_charge(state);
state.xn[0] = -state.xn[3] - state.xn[7] + state.xn[1] + state.xn[12] +
state.xn[6] + state.xn[4] + state.xn[9] + 2.0 * state.xn[11];

// reconserve mass fractions post charge conservation
insum = 0;
Expand Down

0 comments on commit 14eb8be

Please sign in to comment.