MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / Write2DBoxFrom3D

Function Write2DBoxFrom3D

Src/Extern/ProfParser/AMReX_BLWritePlotFile.cpp:180–209  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

178
179// --------------------------------------------------------------------
180void Write2DBoxFrom3D(const Box &box, std::ostream &os, int whichPlane) {
181 os << '(';
182 switch(whichPlane) {
183 case 0:
184 os << '(' << box.smallEnd(1) << ',' << box.smallEnd(2) << ')' << ' '
185 << '(' << box.bigEnd(1) << ',' << box.bigEnd(2) << ')' << ' '
186 << '(' << box.type(1) << ',' << box.type(2) << ')';
187 break;
188
189 case 1:
190 os << '(' << box.smallEnd(0) << ',' << box.smallEnd(2) << ')' << ' '
191 << '(' << box.bigEnd(0) << ',' << box.bigEnd(2) << ')' << ' '
192 << '(' << box.type(0) << ',' << box.type(2) << ')';
193 break;
194
195 case 2:
196 os << '(' << box.smallEnd(0) << ',' << box.smallEnd(1) << ')' << ' '
197 << '(' << box.bigEnd(0) << ',' << box.bigEnd(1) << ')' << ' '
198 << '(' << box.type(0) << ',' << box.type(1) << ')';
199 break;
200
201 case 3: // for testing
202 os << '(' << box.smallEnd(0) << ',' << box.smallEnd(1) << ',' << box.smallEnd(2) << ')' << ' '
203 << '(' << box.bigEnd(0) << ',' << box.bigEnd(1) << ',' << box.bigEnd(2) << ')' << ' '
204 << '(' << box.type(0) << ',' << box.type(1) << ',' << box.type(2) << ')';
205 break;
206 }
207 os << ')';
208
209}
210
211
212#include <AMReX_FabConv.H>

Callers 3

VisMFWriteFunction · 0.85
VisMFWriteHeaderFunction · 0.85
WritePlotfile2DFrom3DFunction · 0.85

Calls 1

typeMethod · 0.45

Tested by

no test coverage detected