Skip to content

Commit

Permalink
use balance charge function
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush Sharda authored and Piyush Sharda committed Aug 29, 2024
1 parent 7056045 commit 6e2141f
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,6 +8,7 @@
#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 @@ -209,8 +210,7 @@ auto burn_cell_c() -> int {
}

// update the number density of electrons due to charge conservation
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];
balance_charge(state);

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

0 comments on commit 6e2141f

Please sign in to comment.