Skip to content

Commit f4c319f

Browse files
committed
FEAT: output magnitude of gravity
1 parent f80320e commit f4c319f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/output.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ bool output(const Neutrals &neutrals,
8989

9090
// make sure the output dt is set correctly. Otherwise these errors aren't caught correctly.
9191
precision_t dt_output = input.get_dt_output(iOutput);
92-
if (dt_output == 0.0){
92+
93+
if (dt_output == 0.0) {
9394
report.exit(function);
9495
return false;
9596
}
@@ -243,6 +244,9 @@ bool output(const Neutrals &neutrals,
243244
AllOutputContainers[iOutput].store_variable("Gvertical",
244245
"m/s^2",
245246
grid.gravity_vcgc[2]);
247+
AllOutputContainers[iOutput].store_variable("Gmag",
248+
"m/s^2",
249+
grid.gravity_mag_scgc);
246250
AllOutputContainers[iOutput].store_variable("Gpotential",
247251
"m^2/s^2",
248252
grid.gravity_potential_scgc);
@@ -261,9 +265,9 @@ bool output(const Neutrals &neutrals,
261265
"degrees",
262266
grid.magLon_scgc * cRtoD);
263267
AllOutputContainers[iOutput].store_variable("invLat",
264-
"Magnetic Invariant Latitude",
265-
"degrees",
266-
grid.magInvLat_scgc * cRtoD);
268+
"Magnetic Invariant Latitude",
269+
"degrees",
270+
grid.magInvLat_scgc * cRtoD);
267271
AllOutputContainers[iOutput].store_variable("mlt",
268272
"Magnetic Local Time",
269273
"hours",

0 commit comments

Comments
 (0)