Skip to content

Commit 7f32743

Browse files
committed
FEAT: output grid spacing
1 parent 5a5204e commit 7f32743

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/output.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ std::string get_filename_from_type(std::string type_output) {
2828

2929
if (type_output == "bfield")
3030
filename = "3DBF";
31+
32+
if (type_output == "delta")
33+
filename = "3DDE";
3134

3235
if (type_output == "moment")
3336
filename = "3DMO";
@@ -255,6 +258,22 @@ bool output(const Neutrals &neutrals,
255258
grid.radius_scgc);
256259
}
257260

261+
if (type_output == "delta") {
262+
AllOutputContainers[iOutput].store_variable("dim",
263+
"di Center m",
264+
"m",
265+
grid.di_center_m_scgc);
266+
AllOutputContainers[iOutput].store_variable("djm",
267+
"dj Center m",
268+
"m",
269+
grid.dj_center_m_scgc);
270+
AllOutputContainers[iOutput].store_variable("dkm",
271+
"dk Center m",
272+
"m",
273+
grid.dk_center_m_scgc);
274+
275+
}
276+
258277
if (type_output == "bfield" || type_output == "ions") {
259278
AllOutputContainers[iOutput].store_variable("mlat",
260279
"Magnetic Latitude",

0 commit comments

Comments
 (0)