00001 #ifdef CH_LANG_CC 00002 /* 00003 * _______ __ 00004 * / ___/ / ___ __ _ / / ___ 00005 * / /__/ _ \/ _ \/ V \/ _ \/ _ \ 00006 * \___/_//_/\___/_/_/_/_.__/\___/ 00007 * Please refer to Copyright.txt, in Chombo's root directory. 00008 */ 00009 #endif 00010 00011 // ANAG, LBNL 00012 00013 #ifndef _BASEEBFACEFACTORYI_H_ 00014 #define _BASEEBFACEFACTORYI_H_ 00015 #include "NamespaceHeader.H" 00016 00017 /***************/ 00018 /***************/ 00019 template <class T> 00020 BaseEBFaceFactory<T>::~BaseEBFaceFactory() 00021 { 00022 } 00023 /***************/ 00024 /***************/ 00025 template <class T> 00026 BaseEBFaceFactory<T>::BaseEBFaceFactory(const EBISLayout& a_ebisl, int a_idir) 00027 { 00028 m_ebisl = a_ebisl; 00029 m_idir = a_idir; 00030 } 00031 /***************/ 00032 /***************/ 00033 template <class T> 00034 BaseEBFaceFAB<T>* 00035 BaseEBFaceFactory<T>::create(const Box& a_box, int a_ncomps, 00036 const DataIndex& a_dit) const 00037 { 00038 return new BaseEBFaceFAB<T>(m_ebisl[a_dit], a_box, m_idir, a_ncomps); 00039 } 00040 /***************/ 00041 /***************/ 00042 00043 #include "NamespaceFooter.H" 00044 #endif