From d6932f213710d4669569b087ddbd7ca4dbe8c743 Mon Sep 17 00:00:00 2001 From: AlexanderSinn Date: Sat, 26 Mar 2022 15:09:58 +0100 Subject: [PATCH 1/3] Update enforcePeriodic call (change in AMReX) --- src/particles/pusher/GetAndSetPosition.H | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/particles/pusher/GetAndSetPosition.H b/src/particles/pusher/GetAndSetPosition.H index 8883affd0b..041a3e75ee 100644 --- a/src/particles/pusher/GetAndSetPosition.H +++ b/src/particles/pusher/GetAndSetPosition.H @@ -185,7 +185,9 @@ struct EnforceBC { using namespace amrex::literals; - const bool shifted = enforcePeriodic(m_structs[ip], m_plo, m_phi, m_periodicity); + // TODO: The second m_phi should be amrex::Geometry RoundoffHiArray(), + // however there is no Geometry object to get this. + const bool shifted = enforcePeriodic(m_structs[ip], m_plo, m_phi, m_phi, m_periodicity); const bool invalid = (shifted && !m_is_per[0]); if (invalid) { m_weights[ip] = 0.0_rt; From 8bb6429e0e81aec7016331e4e59910ee7679d59e Mon Sep 17 00:00:00 2001 From: AlexanderSinn Date: Sat, 26 Mar 2022 20:00:40 +0100 Subject: [PATCH 2/3] Test CI performance --- tests/checksum/backend/openpmd_backend.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/checksum/backend/openpmd_backend.py b/tests/checksum/backend/openpmd_backend.py index b6fb600f15..da8f212686 100644 --- a/tests/checksum/backend/openpmd_backend.py +++ b/tests/checksum/backend/openpmd_backend.py @@ -17,6 +17,7 @@ def __init__(self, filename): ''' Constructor: store the dataset object ''' + # test self.dataset = OpenPMDTimeSeries(filename) def fields_list(self): From bd6964f7d95527e057c07d41c296af57168f3dd8 Mon Sep 17 00:00:00 2001 From: AlexanderSinn Date: Sat, 26 Mar 2022 20:23:50 +0100 Subject: [PATCH 3/3] change openpmd-viewer backend in checksum to h5py --- tests/checksum/backend/openpmd_backend.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/checksum/backend/openpmd_backend.py b/tests/checksum/backend/openpmd_backend.py index da8f212686..363f322192 100644 --- a/tests/checksum/backend/openpmd_backend.py +++ b/tests/checksum/backend/openpmd_backend.py @@ -17,8 +17,7 @@ def __init__(self, filename): ''' Constructor: store the dataset object ''' - # test - self.dataset = OpenPMDTimeSeries(filename) + self.dataset = OpenPMDTimeSeries(filename, backend='h5py') def fields_list(self): ''' Return the list of fields defined on the grid