aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/WarpX.H9
-rw-r--r--Source/WarpX.cpp12
2 files changed, 13 insertions, 8 deletions
diff --git a/Source/WarpX.H b/Source/WarpX.H
index 4ee7fe47e..450d3a40e 100644
--- a/Source/WarpX.H
+++ b/Source/WarpX.H
@@ -258,14 +258,7 @@ public:
/** get low-high-low-high-... vector for each direction indicating if mother grid PMLs are enabled */
std::vector<bool> getPMLdirections() const;
- static amrex::LayoutData<amrex::Real>* getCosts (int lev) {
- if (m_instance) {
- return m_instance->costs[lev].get();
- } else
- {
- return nullptr;
- }
- }
+ static amrex::LayoutData<amrex::Real>* getCosts (int lev);
static amrex::IntVect filter_npass_each_dir;
BilinearFilter bilinear_filter;
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index ff42c4758..df784f9b0 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -1586,6 +1586,18 @@ WarpX::getPMLdirections() const
return dirsWithPML;
}
+amrex::LayoutData<amrex::Real>*
+WarpX::getCosts (int lev)
+{
+ if (m_instance)
+ {
+ return m_instance->costs[lev].get();
+ } else
+ {
+ return nullptr;
+ }
+}
+
void
WarpX::BuildBufferMasks ()
{