diff --git a/src/amr/data/field/field_geometry.hpp b/src/amr/data/field/field_geometry.hpp index 387f3a5c0..183cd5796 100644 --- a/src/amr/data/field/field_geometry.hpp +++ b/src/amr/data/field/field_geometry.hpp @@ -136,8 +136,8 @@ namespace amr static SAMRAI::hier::Box toFieldBox(SAMRAI::hier::Box box, PhysicalQuantity qty, GridLayoutT const& layout) { - SAMRAI::hier::IntVector lower = box.lower(); - SAMRAI::hier::IntVector upper = box.upper(); + auto const lower = box.lower(); + auto const upper = box.upper(); using PHARE::core::dirX; using PHARE::core::dirY; using PHARE::core::dirZ; diff --git a/tests/amr/data/particles/copy_overlap/test_particledata_copy_periodicNd.cpp b/tests/amr/data/particles/copy_overlap/test_particledata_copy_periodicNd.cpp index 0318a0993..5642780a8 100644 --- a/tests/amr/data/particles/copy_overlap/test_particledata_copy_periodicNd.cpp +++ b/tests/amr/data/particles/copy_overlap/test_particledata_copy_periodicNd.cpp @@ -57,8 +57,8 @@ struct twoParticlesDataNDTouchingPeriodicBorders : public testing::Test bool overwriteInterior{true}; - SAMRAI::hier::Transformation transformation{destPdat.getGhostBox().lower() - - sourceDomain.upper()}; + SAMRAI::hier::Transformation transformation{ + SAMRAI::hier::IntVector{destPdat.getGhostBox().lower() - sourceDomain.upper()}}; std::shared_ptr cellOverlap{ std::dynamic_pointer_cast(destGeom->calculateOverlap( diff --git a/tests/amr/data/particles/stream_pack/test_main.cpp b/tests/amr/data/particles/stream_pack/test_main.cpp index 38db1b8a5..01d85382e 100644 --- a/tests/amr/data/particles/stream_pack/test_main.cpp +++ b/tests/amr/data/particles/stream_pack/test_main.cpp @@ -65,9 +65,8 @@ struct AParticlesData bool overwriteInterior{true}; SAMRAI::hier::Index oneIndex{SAMRAI::hier::IntVector::getOne(amr_dimension)}; - - SAMRAI::hier::Transformation transformation{destDomain.lower() - sourceDomain.upper() - - oneIndex}; + SAMRAI::hier::Transformation transformation{ + SAMRAI::hier::IntVector{destDomain.lower() - sourceDomain.upper() - oneIndex}}; std::shared_ptr cellOverlap{