--------------------------------------------------------------------
| 178 | |
| 179 | // -------------------------------------------------------------------- |
| 180 | void 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> |
no test coverage detected