@@ -251,9 +251,9 @@ void SurfaceXPlane::to_hdf5_inner(hid_t group_id) const
251251BoundingBox SurfaceXPlane::bounding_box (bool pos_side) const
252252{
253253 if (pos_side) {
254- return {x0_, INFTY, -INFTY, INFTY, - INFTY, INFTY};
254+ return {{ x0_, - INFTY, -INFTY}, { INFTY, INFTY, INFTY} };
255255 } else {
256- return {-INFTY, x0_ , -INFTY, INFTY, - INFTY, INFTY};
256+ return {{ -INFTY, -INFTY , -INFTY}, {x0_, INFTY, INFTY} };
257257 }
258258}
259259
@@ -291,9 +291,9 @@ void SurfaceYPlane::to_hdf5_inner(hid_t group_id) const
291291BoundingBox SurfaceYPlane::bounding_box (bool pos_side) const
292292{
293293 if (pos_side) {
294- return {-INFTY, INFTY, y0_, INFTY, - INFTY, INFTY};
294+ return {{ -INFTY, y0_, -INFTY}, { INFTY, INFTY, INFTY} };
295295 } else {
296- return {-INFTY, INFTY, -INFTY, y0_, -INFTY , INFTY};
296+ return {{ -INFTY, - INFTY, -INFTY}, {INFTY, y0_ , INFTY} };
297297 }
298298}
299299
@@ -331,9 +331,9 @@ void SurfaceZPlane::to_hdf5_inner(hid_t group_id) const
331331BoundingBox SurfaceZPlane::bounding_box (bool pos_side) const
332332{
333333 if (pos_side) {
334- return {-INFTY, INFTY, -INFTY, INFTY, z0_ , INFTY};
334+ return {{ -INFTY, - INFTY, z0_}, { INFTY, INFTY , INFTY} };
335335 } else {
336- return {-INFTY, INFTY, -INFTY, INFTY, - INFTY, z0_};
336+ return {{ -INFTY, - INFTY, -INFTY}, { INFTY, INFTY, z0_} };
337337 }
338338}
339339
@@ -492,8 +492,8 @@ void SurfaceXCylinder::to_hdf5_inner(hid_t group_id) const
492492BoundingBox SurfaceXCylinder::bounding_box (bool pos_side) const
493493{
494494 if (!pos_side) {
495- return {-INFTY, INFTY, y0_ - radius_, y0_ + radius_, z0_ - radius_,
496- z0_ + radius_};
495+ return {{ -INFTY, y0_ - radius_, z0_ - radius_} ,
496+ {INFTY, y0_ + radius_, z0_ + radius_} };
497497 } else {
498498 return {};
499499 }
@@ -535,8 +535,8 @@ void SurfaceYCylinder::to_hdf5_inner(hid_t group_id) const
535535BoundingBox SurfaceYCylinder::bounding_box (bool pos_side) const
536536{
537537 if (!pos_side) {
538- return {x0_ - radius_, x0_ + radius_, -INFTY, INFTY, z0_ - radius_,
539- z0_ + radius_};
538+ return {{ x0_ - radius_, -INFTY, z0_ - radius_} ,
539+ {x0_ + radius_, INFTY, z0_ + radius_} };
540540 } else {
541541 return {};
542542 }
@@ -579,8 +579,8 @@ void SurfaceZCylinder::to_hdf5_inner(hid_t group_id) const
579579BoundingBox SurfaceZCylinder::bounding_box (bool pos_side) const
580580{
581581 if (!pos_side) {
582- return {x0_ - radius_, x0_ + radius_, y0_ - radius_, y0_ + radius_, -INFTY,
583- INFTY};
582+ return {{ x0_ - radius_, y0_ - radius_, -INFTY} ,
583+ {x0_ + radius_, y0_ + radius_, INFTY} };
584584 } else {
585585 return {};
586586 }
@@ -657,8 +657,8 @@ void SurfaceSphere::to_hdf5_inner(hid_t group_id) const
657657BoundingBox SurfaceSphere::bounding_box (bool pos_side) const
658658{
659659 if (!pos_side) {
660- return {x0_ - radius_, x0_ + radius_, y0_ - radius_, y0_ + radius_,
661- z0_ - radius_, z0_ + radius_};
660+ return {{ x0_ - radius_, y0_ - radius_, z0_ - radius_} ,
661+ {x0_ + radius_, y0_ + radius_, z0_ + radius_} };
662662 } else {
663663 return {};
664664 }
0 commit comments