@@ -11,7 +11,6 @@ namespace PHARE::diagnostic::h5
11
11
/* Possible outputs
12
12
* /t#/pl#/p#/mhd/density
13
13
* /t#/pl#/p#/mhd/velocity/(x,y,z)
14
- * /t#/pl#/p#/mhd/B/(x,y,z)
15
14
* /t#/pl#/p#/mhd/pressure
16
15
* /t#/pl#/p#/mhd/rhoV/(x,y,z)
17
16
* /t#/pl#/p#/mhd/Etot
@@ -67,7 +66,7 @@ template<typename H5Writer>
67
66
void MHDDiagnosticWriter<H5Writer>::createFiles(DiagnosticProperties& diagnostic)
68
67
{
69
68
std::string tree{" /mhd/" };
70
- checkCreateFileFor_ (diagnostic, fileData_, tree, " rho" , " V" , " B " , " P" , " rhoV" , " Etot" );
69
+ checkCreateFileFor_ (diagnostic, fileData_, tree, " rho" , " V" , " P" , " rhoV" , " Etot" );
71
70
}
72
71
73
72
template <typename H5Writer>
@@ -80,7 +79,7 @@ void MHDDiagnosticWriter<H5Writer>::compute(DiagnosticProperties& diagnostic)
80
79
81
80
auto & rho = modelView.getRho ();
82
81
auto & V = modelView.getV ();
83
- auto & B = modelView.getB () ;
82
+ auto & B = * modelView.getElectromagFields ()[ 0 ] ;
84
83
auto & P = modelView.getP ();
85
84
auto & rhoV = modelView.getRhoV ();
86
85
auto & Etot = modelView.getEtot ();
@@ -115,7 +114,6 @@ void MHDDiagnosticWriter<H5Writer>::getDataSetInfo(DiagnosticProperties& diagnos
115
114
auto & h5Writer = this ->h5Writer_ ;
116
115
auto & rho = h5Writer.modelView ().getRho ();
117
116
auto & V = h5Writer.modelView ().getV ();
118
- auto & B = h5Writer.modelView ().getB ();
119
117
auto & P = h5Writer.modelView ().getP ();
120
118
auto & rhoV = h5Writer.modelView ().getRhoV ();
121
119
auto & Etot = h5Writer.modelView ().getEtot ();
@@ -147,8 +145,6 @@ void MHDDiagnosticWriter<H5Writer>::getDataSetInfo(DiagnosticProperties& diagnos
147
145
infoDS (rho, " rho" , patchAttributes[lvlPatchID][" mhd" ]);
148
146
if (isActiveDiag (diagnostic, tree, " V" ))
149
147
infoVF (V, " V" , patchAttributes[lvlPatchID][" mhd" ]);
150
- if (isActiveDiag (diagnostic, tree, " B" ))
151
- infoVF (B, " B" , patchAttributes[lvlPatchID][" mhd" ]);
152
148
if (isActiveDiag (diagnostic, tree, " P" ))
153
149
infoDS (P, " P" , patchAttributes[lvlPatchID][" mhd" ]);
154
150
if (isActiveDiag (diagnostic, tree, " rhoV" ))
@@ -200,8 +196,6 @@ void MHDDiagnosticWriter<H5Writer>::initDataSets(
200
196
initDS (path, attr[" mhd" ], " rho" , null);
201
197
if (isActiveDiag (diagnostic, tree, " V" ))
202
198
initVF (path, attr[" mhd" ], " V" , null);
203
- if (isActiveDiag (diagnostic, tree, " B" ))
204
- initVF (path, attr[" mhd" ], " B" , null);
205
199
if (isActiveDiag (diagnostic, tree, " P" ))
206
200
initDS (path, attr[" mhd" ], " P" , null);
207
201
if (isActiveDiag (diagnostic, tree, " rhoV" ))
@@ -219,7 +213,6 @@ void MHDDiagnosticWriter<H5Writer>::write(DiagnosticProperties& diagnostic)
219
213
auto & h5Writer = this ->h5Writer_ ;
220
214
auto & rho = h5Writer.modelView ().getRho ();
221
215
auto & V = h5Writer.modelView ().getV ();
222
- auto & B = h5Writer.modelView ().getB ();
223
216
auto & P = h5Writer.modelView ().getP ();
224
217
auto & rhoV = h5Writer.modelView ().getRhoV ();
225
218
auto & Etot = h5Writer.modelView ().getEtot ();
@@ -237,8 +230,6 @@ void MHDDiagnosticWriter<H5Writer>::write(DiagnosticProperties& diagnostic)
237
230
writeDS (path + " rho" , rho);
238
231
if (isActiveDiag (diagnostic, tree, " V" ))
239
232
writeTF (path + " V" , V);
240
- if (isActiveDiag (diagnostic, tree, " B" ))
241
- writeTF (path + " B" , B);
242
233
if (isActiveDiag (diagnostic, tree, " P" ))
243
234
writeDS (path + " P" , P);
244
235
if (isActiveDiag (diagnostic, tree, " rhoV" ))
0 commit comments