aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/ElementaryProcess/QEDInternals/QedWrapperCommons.H
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/ElementaryProcess/QEDInternals/QedWrapperCommons.H')
-rw-r--r--Source/Particles/ElementaryProcess/QEDInternals/QedWrapperCommons.H22
1 files changed, 9 insertions, 13 deletions
diff --git a/Source/Particles/ElementaryProcess/QEDInternals/QedWrapperCommons.H b/Source/Particles/ElementaryProcess/QEDInternals/QedWrapperCommons.H
index 1d4500a81..75fc2fd79 100644
--- a/Source/Particles/ElementaryProcess/QEDInternals/QedWrapperCommons.H
+++ b/Source/Particles/ElementaryProcess/QEDInternals/QedWrapperCommons.H
@@ -8,35 +8,31 @@
#define WARPX_amrex_qed_wrapper_commons_h_
/**
- * This header contains some common #define directives and a
- * 'dummy' class used by the QED library wrappers and related
+ * This header contains some common #define directives
+ * used by the QED library wrappers and related
* components.
*/
#include <AMReX_AmrCore.H>
#include <AMReX_GpuQualifiers.H>
+#include <AMReX_Extension.H>
/**
* PICSAR uses PXRMP_GPU to decorate methods which should be
* compiled for GPU. The user has to set it to the right value
* (AMREX_GPU_DEVICE in this case).
- * PXRMP_WITH_SI_UNITS sets the library to use International
- * System units.
*/
#define PXRMP_GPU AMREX_GPU_HOST_DEVICE
-#define PXRMP_WITH_SI_UNITS
//_________________________
/**
- * A namespace called 'QedUtils' is used to encapsulate
- * free functions (defined elsewhere) and an
- * empty datastructure (DummyStruct), which is re-used by several
- * components.
+ * PICSAR uses internally some specifiers analogous to
+ * AMREX_RESTRICT and AMREX_FORCE_INLINE. These definitions
+ * set the aformentioned specifiers to AMREX_RESTRICT and
+ * AMREX_FORCE_INLINE.
*/
-namespace QedUtils{
- struct DummyStruct{};
-};
+#define PXRMP_RESTRICT AMREX_RESTRICT
+#define PXRMP_FORCE_INLINE AMREX_FORCE_INLINE
//_________________________
-
#endif //WARPX_amrex_qed_wrapper_commons_h_