Skip to content

Commit 9f668e0

Browse files
authored
Bug fix in call to RhoFunctor for RZ modes (#2271)
1 parent 89a77dc commit 9f668e0

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

Examples/Physics_applications/laser_acceleration/inputs_2d_rz

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,4 @@ diagnostics.diags_names = diag1
8585
diag1.intervals = 200
8686
diag1.diag_type = Full
8787
diag1.fields_to_plot = Ex Ey Ez Bx By Bz jx jy jz rho
88+
diag1.dump_rz_modes = 1

Regression/Checksum/benchmarks_json/LaserAccelerationRZ.json

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,36 @@
3131
"jx": 1521160899070.9502,
3232
"jy": 2.1477215558312566e+17,
3333
"jz": 1801600163260722.8,
34-
"rho": 38675634.14778979
34+
"rho": 38675634.14778979,
35+
"Br_0_real": 0.3817062255812469,
36+
"Br_1_imag": 155.33494564590396,
37+
"Br_1_real": 101777.25029641364,
38+
"Btheta_0_real": 1246.3204414544591,
39+
"Btheta_1_imag": 103433.11809249174,
40+
"Btheta_1_real": 169.24039862049415,
41+
"Bz_0_real": 0.38796993291270876,
42+
"Bz_1_imag": 0.828060337987101,
43+
"Bz_1_real": 4515.086723258989,
44+
"Er_0_real": 206594937041.90228,
45+
"Er_1_imag": 38547072210478.31,
46+
"Er_1_real": 42353719361.00897,
47+
"Etheta_0_real": 128268591.99894254,
48+
"Etheta_1_imag": 35752761372.73228,
49+
"Etheta_1_real": 37797765694997.164,
50+
"Ez_0_real": 523227661392.01624,
51+
"Ez_1_imag": 1421942831028.3716,
52+
"Ez_1_real": 46224077114.8001,
53+
"Jr_0_real": 1483876082511.2114,
54+
"Jr_1_imag": 2.2670932799301846e+17,
55+
"Jr_1_real": 1631543983671.9358,
56+
"Jtheta_0_real": 500862570830.0607,
57+
"Jtheta_1_imag": 886105306242.169,
58+
"Jtheta_1_real": 2.1477198257660832e+17,
59+
"Jz_0_real": 1650635472156679.2,
60+
"Jz_1_imag": 365106436892618.2,
61+
"Jz_1_real": 350897609824031.44,
62+
"rho_0_real": 38186956.98106836,
63+
"rho_1_imag": 20418297.54662601,
64+
"rho_1_real": 1026560.8408702643
3565
}
36-
}
66+
}

Source/Diagnostics/FullDiagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ FullDiagnostics::AddRZModesToDiags (int lev)
235235
}
236236
// rho
237237
if (rho_requested) {
238-
m_all_field_functors[lev][icomp] = std::make_unique<RhoFunctor>(lev, m_crse_ratio, false, ncomp_multimodefab);
238+
m_all_field_functors[lev][icomp] = std::make_unique<RhoFunctor>(lev, m_crse_ratio, -1, false, ncomp_multimodefab);
239239
icomp += 1;
240240
AddRZModesToOutputNames(std::string("rho"), ncomp_multimodefab);
241241
}

0 commit comments

Comments
 (0)