diff options
Diffstat (limited to 'Source/WarpXPML.H')
-rw-r--r-- | Source/WarpXPML.H | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WarpXPML.H b/Source/WarpXPML.H index 0cf367284..7a86bf0da 100644 --- a/Source/WarpXPML.H +++ b/Source/WarpXPML.H @@ -62,6 +62,13 @@ namespace amrex { virtual void destroy (SigmaBox* fab) const final { delete fab; } +#ifdef AMREX_USE_GPU + virtual SigmaBox* createHostAlias (SigmaBox const& src) const final + { + return const_cast<SigmaBox*>(&src); + } + virtual void destroyHostAlias (SigmaBox* fab) const final {} +#endif virtual FabFactory<SigmaBox>* clone () const { return new FabFactory<SigmaBox>(*this); } |