Skip to content

Commit 14eb8be

Browse files
Piyush ShardaPiyush Sharda
Piyush Sharda
authored and
Piyush Sharda
committed
Revert "use balance charge function"
This reverts commit 6e2141f.
1 parent 6e2141f commit 14eb8be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unit_test/burn_cell_primordial_chem/burn_cell.H

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <eos.H>
99
#include <extern_parameters.H>
1010
#include <network.H>
11-
#include <actual_network.H>
1211

1312
amrex::Real grav_constant = 6.674e-8;
1413

@@ -210,7 +209,8 @@ auto burn_cell_c() -> int {
210209
}
211210

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

215215
// reconserve mass fractions post charge conservation
216216
insum = 0;

0 commit comments

Comments
 (0)