diff --git a/Source/Forcing/Forcing.cpp b/Source/Forcing/Forcing.cpp index 9463e1cf..38e122bc 100644 --- a/Source/Forcing/Forcing.cpp +++ b/Source/Forcing/Forcing.cpp @@ -47,6 +47,13 @@ StochasticForcing::StochasticForcing() modes_odd[dim] = NULL; } mask = NULL; +#ifdef AMREX_USE_GPU + auto* p = dynamic_cast(The_Arena()); + if(p->isManaged()) + amrex::Warning("Forcing setup uses managed memory which may be non-performant"); + else + amrex::Abort("Forcing setup with The_Arena set to device memory is not implemented"); +#endif } //