We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff42ec6 commit aa233aeCopy full SHA for aa233ae
ExampleCodes/EB/NodalPoisson/main.cpp
@@ -132,11 +132,13 @@ int main (int argc, char* argv[])
132
mlmg.solve({&phi}, {&q}, tol_rel, tol_abs);
133
134
//// store plotfile variables; q and phi
135
- //MultiFab plotfile_mf(grids, dmap, 2, 0, MFInfo(), factory);
+ MultiFab plotfile_mf(grids, dmap, 2, 0, MFInfo(), factory);
136
+ amrex::average_node_to_cellcenter(plotfile_mf, 0, q, 0, 1);
137
+ amrex::average_node_to_cellcenter(plotfile_mf, 1, phi, 0, 1);
138
//MultiFab::Copy(plotfile_mf, q,0,0,1,0);
139
//MultiFab::Copy(plotfile_mf,phi,0,1,1,0);
140
- //EB_WriteSingleLevelPlotfile("plt", plotfile_mf, {"q", "phi"}, geom, 0.0, 0);
141
+ EB_WriteSingleLevelPlotfile("plt", plotfile_mf, {"q", "phi"}, geom, 0.0, 0);
142
}
143
144
amrex::Finalize();
0 commit comments