| 287 | // |
| 288 | |
| 289 | FabArrayBase::CPC::CPC (const FabArrayBase& dstfa, const IntVect& dstng, |
| 290 | const FabArrayBase& srcfa, const IntVect& srcng, |
| 291 | const Periodicity& period, bool to_ghost_cells_only, |
| 292 | const IntVect& offset) |
| 293 | : m_id(comm_meta_data_id++), |
| 294 | m_srcbdk(srcfa.getBDKey()), |
| 295 | m_dstbdk(dstfa.getBDKey()), |
| 296 | m_srcng(srcng), |
| 297 | m_dstng(dstng), |
| 298 | m_offset(offset), |
| 299 | m_period(period), |
| 300 | m_tgco(to_ghost_cells_only), |
| 301 | m_srcba(srcfa.boxArray()), |
| 302 | m_dstba(dstfa.boxArray()) |
| 303 | { |
| 304 | this->define(m_dstba, dstfa.DistributionMap(), dstfa.IndexArray(), |
| 305 | m_srcba, srcfa.DistributionMap(), srcfa.IndexArray()); |
| 306 | } |
| 307 | |
| 308 | FabArrayBase::CPC::CPC (const BoxArray& dstba, const DistributionMapping& dstdm, |
| 309 | const Vector<int>& dstidx, const IntVect& dstng, |