Skip to content

Commit 6368921

Browse files
committed
BUG: need the altitude of the lower BC from planet
1 parent 910c4e8 commit 6368921

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/init_mag_grid.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ bool Grid::init_dipole_grid(Quadtree quadtree_ion, Planets planet) {
215215
precision_t min_alt_re = (min_alt + planetRadius) / planetRadius;
216216
precision_t max_alt_re = (max_alt + planetRadius) / planetRadius;
217217

218+
// set the altitude of the lower boundary from the planet file
219+
// -- this is used for setting densities hydrostatically.
220+
altitude_lower_bc = planet.get_altitude_of_bc();
221+
218222
if (nAlts % 2 != 0) {
219223
report.error("nAlts must be even!");
220224
DidWork = false;

0 commit comments

Comments
 (0)