Skip to content

Commit 93e55e1

Browse files
resolved merge conflicts
2 parents 3db8f10 + bd3b3e3 commit 93e55e1

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

builds/make.type.rot_proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ DFLAGS += -DTEMPERATURE_FLOOR
2727
OUTPUT ?= -DOUTPUT -DHDF5
2828
DFLAGS += $(OUTPUT)
2929

30-
DFLAGS += -DROTATED_PROJECTION
30+
DFLAGS += -DROTATED_PROJECTION

src/global/global.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ void Parse_Param(char *name, char *value, struct Parameters *parms)
224224
parms->n_rotated_projection = atoi(value);
225225
} else if (strcmp(name, "n_slice") == 0) {
226226
parms->n_slice = atoi(value);
227+
<<<<<<< HEAD
227228
} else if (strcmp(name, "n_out_float32") == 0) {
228229
parms->n_out_float32 = atoi(value);
229230
} else if (strcmp(name, "out_float32_density") == 0) {
@@ -240,6 +241,14 @@ void Parse_Param(char *name, char *value, struct Parameters *parms)
240241
} else if (strcmp(name, "out_float32_GasEnergy") == 0) {
241242
parms->out_float32_GasEnergy = atoi(value);
242243
#endif // DE
244+
#ifdef MHD
245+
} else if (strcmp(name, "out_float32_magnetic_x")==0) {
246+
parms->out_float32_magnetic_x = atoi(value);
247+
} else if (strcmp(name, "out_float32_magnetic_y")==0) {
248+
parms->out_float32_magnetic_y = atoi(value);
249+
} else if (strcmp(name, "out_float32_magnetic_z")==0) {
250+
parms->out_float32_magnetic_z = atoi(value);
251+
#endif // MHD
243252
} else if (strcmp(name, "output_always") == 0) {
244253
int tmp = atoi(value);
245254
// In this case the CHOLLA_ASSERT macro runs into issuse with the readability-simplify-boolean-expr clang-tidy check
@@ -252,14 +261,6 @@ void Parse_Param(char *name, char *value, struct Parameters *parms)
252261
int tmp = atoi(value);
253262
CHOLLA_ASSERT((tmp == 0) or (tmp == 1), "legacy_flat_outdir must be 1 or 0.");
254263
parms->legacy_flat_outdir = tmp;
255-
#ifdef MHD
256-
} else if (strcmp(name, "out_float32_magnetic_x") == 0) {
257-
parms->out_float32_magnetic_x = atoi(value);
258-
} else if (strcmp(name, "out_float32_magnetic_y") == 0) {
259-
parms->out_float32_magnetic_y = atoi(value);
260-
} else if (strcmp(name, "out_float32_magnetic_z") == 0) {
261-
parms->out_float32_magnetic_z = atoi(value);
262-
#endif // MHD
263264
} else if (strcmp(name, "xmin") == 0) {
264265
parms->xmin = atof(value);
265266
} else if (strcmp(name, "ymin") == 0) {

0 commit comments

Comments
 (0)