| 2115 | |
| 2116 | template <class T> |
| 2117 | void |
| 2118 | LEInteractor::interpolate(Pointer<LData> Q_data, |
| 2119 | const Pointer<LData> X_data, |
| 2120 | const Pointer<LIndexSetData<T>> idx_data, |
| 2121 | const Pointer<CellData<NDIM, double>> q_data, |
| 2122 | const Pointer<Patch<NDIM>> patch, |
| 2123 | const Box<NDIM>& interp_box, |
| 2124 | const IntVector<NDIM>& periodic_shift, |
| 2125 | const std::string& interp_fcn) |
| 2126 | { |
| 2127 | #if !defined(NDEBUG) |
| 2128 | TBOX_ASSERT(Q_data); |
| 2129 | TBOX_ASSERT(q_data); |
| 2130 | TBOX_ASSERT(X_data); |
| 2131 | TBOX_ASSERT(idx_data); |
| 2132 | TBOX_ASSERT(patch); |
| 2133 | TBOX_ASSERT(Q_data->getDepth() == static_cast<unsigned int>(q_data->getDepth())); |
| 2134 | TBOX_ASSERT(X_data->getDepth() == NDIM); |
| 2135 | #endif |
| 2136 | interpolate(Q_data->getGhostedLocalFormVecArray()->data(), |
| 2137 | Q_data->getDepth(), |
| 2138 | X_data->getGhostedLocalFormVecArray()->data(), |
| 2139 | X_data->getDepth(), |
| 2140 | idx_data, |
| 2141 | q_data, |
| 2142 | patch, |
| 2143 | interp_box, |
| 2144 | periodic_shift, |
| 2145 | interp_fcn); |
| 2146 | Q_data->restoreArrays(); |
| 2147 | X_data->restoreArrays(); |
| 2148 | return; |
| 2149 | } |
| 2150 | |
| 2151 | template <class T> |
| 2152 | void |
no test coverage detected