diff --git a/src/particles/CovarianceMatrix.H b/src/particles/CovarianceMatrix.H index 60bd15df4..23af3e5aa 100644 --- a/src/particles/CovarianceMatrix.H +++ b/src/particles/CovarianceMatrix.H @@ -10,14 +10,14 @@ #ifndef IMPACTX_DISTRIBUTION_COVARIANCE_MATRIX_H #define IMPACTX_DISTRIBUTION_COVARIANCE_MATRIX_H -#include #include +#include namespace impactx { /** this is a 6x6 matrix */ - using CovarianceMatrix = amrex::Array2D; + using CovarianceMatrix = amrex::SmallMatrix; } // namespace impactx::distribution diff --git a/src/particles/elements/Drift.H b/src/particles/elements/Drift.H index 8bf328840..944177558 100644 --- a/src/particles/elements/Drift.H +++ b/src/particles/elements/Drift.H @@ -20,6 +20,7 @@ #include #include +#include #include @@ -168,7 +169,7 @@ namespace impactx */ AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE - amrex::Array2D + amrex::SmallMatrix transport_map(RefPart & AMREX_RESTRICT refpart) { using namespace amrex::literals; // for _rt and _prt diff --git a/src/particles/elements/mixin/lineartransport.H b/src/particles/elements/mixin/lineartransport.H index 43641f21b..46416ba90 100644 --- a/src/particles/elements/mixin/lineartransport.H +++ b/src/particles/elements/mixin/lineartransport.H @@ -17,6 +17,7 @@ #include #include #include +#include namespace impactx::elements @@ -41,7 +42,7 @@ namespace impactx::elements ~LinearTransport () = default; // 6x6 linear transport map - using Map6x6 = amrex::Array2D; + using Map6x6 = amrex::SmallMatrix; Map6x6 m_transport_map; ///< linearized map };