Skip to content

Commit 8c2d824

Browse files
committed
BUG: density to mass density
1 parent 8afedf0 commit 8c2d824

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/calc_neutral_derived.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ void Neutrals::calc_chapman(Grid grid) {
585585
species[iSpecies].density_scgc.slice(iAlt) %
586586
species[iSpecies].scale_height_scgc.slice(iAlt);
587587

588-
species[iSpecies].rho_alt_int_scgc.slice(iAlt) = integral3d.slice(iAlt);
588+
species[iSpecies].rho_alt_int_scgc.slice(iAlt) = integral3d.slice(iAlt) * species[iSpecies].mass;
589589

590590
for (iAlt = nAlts - 2; iAlt >= 0; iAlt--) {
591591
// dr is used here instead of dalt, since we only want the radial integration, while
@@ -596,7 +596,7 @@ void Neutrals::calc_chapman(Grid grid) {
596596
species[iSpecies].rho_alt_int_scgc.slice(iAlt) =
597597
species[iSpecies].rho_alt_int_scgc.slice(iAlt + 1) +
598598
species[iSpecies].density_scgc.slice(iAlt) %
599-
grid.dk_edge_m.slice(iAlt + 1);
599+
grid.dk_edge_m.slice(iAlt + 1) * species[iSpecies].mass;
600600
}
601601

602602
erfcy3d = (a + b * y3d) / (c + d * y3d + y3d % y3d);

0 commit comments

Comments
 (0)