|
AFEPack
|
#include <MPI_MemoryReclaimer.h>
公有类型 | |
| enum | { dim = HFOREST::dim, dow = HFOREST::dow } |
| enum | { dim = HFOREST::dim, dow = HFOREST::dow } |
| typedef HFOREST | forest_t |
| typedef ::MemoryReclaimer< dim, dow > | base_t |
| typedef FOREST | tree_t |
| typedef BirdView< tree_t > | ir_mesh_t |
公有�员 | |
| MemoryReclaimer () | |
| MemoryReclaimer (forest_t &tree) | |
| virtual | ~MemoryReclaimer () |
| MemoryReclaimer () | |
| MemoryReclaimer (tree_t &_h_tree) | |
| virtual | ~MemoryReclaimer () |
| void | setGeometryTree (tree_t &_h_tree) |
| void | addIrregularMesh (ir_mesh_t &_ir_mesh) |
| void | clear () |
| void | reclaim () |
�有�员 | |
| template<int D> | |
| void | reclaimHGeometry (HGeometry< D, dow > *p_geo) const |
| virtual void | reclaimHGeometry (void *p_geo, int D) const |
| void | reclaimIrregularMesh (ir_mesh_t &m) |
| void | initialTreeLabel () |
| void | labelIrregularMesh (ir_mesh_t &m) |
| void | reclaimTreeMemory () |
| template<class GEO > | |
| bool | is_shared_geometry (const GEO &g) const |
| template<int D> | |
| void | labelHGeometry (HGeometry< D, dow > &g, int lab) const |
| template<int D> | |
| void | labelHGeometryRecursively (HGeometry< D, dow > &g, int lab) const |
| template<int D> | |
| int | relabelHGeometryRecursively (HGeometry< D, dow > &g) const |
| template<int D> | |
| int | reclaimHGeometryRecursively (HGeometry< D, dow > &g) const |
| template<int D> | |
| void | reclaimHGeometry (HGeometry< D, dow > *p_geo) const |
�有属性 | |
| tree_t * | h_tree |
| std::list< ir_mesh_t * > | ir_mesh |
| typedef ::MemoryReclaimer<dim,dow> MPI::MemoryReclaimer< HFOREST >::base_t |
| typedef HFOREST MPI::MemoryReclaimer< HFOREST >::forest_t |
| typedef BirdView<tree_t> MPI::MemoryReclaimer< HFOREST >::ir_mesh_t |
| typedef FOREST MPI::MemoryReclaimer< HFOREST >::tree_t |
| MPI::MemoryReclaimer< HFOREST >::MemoryReclaimer | ( | ) | [inline] |
| MPI::MemoryReclaimer< HFOREST >::MemoryReclaimer | ( | forest_t & | tree | ) | [inline] |
| virtual MPI::MemoryReclaimer< HFOREST >::~MemoryReclaimer | ( | ) | [inline, virtual] |
| MPI::MemoryReclaimer< HFOREST >::MemoryReclaimer | ( | ) | [inline] |
| MPI::MemoryReclaimer< HFOREST >::MemoryReclaimer | ( | tree_t & | _h_tree | ) | [inline] |
| virtual MPI::MemoryReclaimer< HFOREST >::~MemoryReclaimer | ( | ) | [inline, virtual] |
| void MPI::MemoryReclaimer< HFOREST >::addIrregularMesh | ( | ir_mesh_t & | _ir_mesh | ) | [inline] |
¼Ó½øÒ»¸ö²Î¼Ó²Ù×÷µÄIrregularMesh¡£
| void MPI::MemoryReclaimer< HFOREST >::clear | ( | ) | [inline] |
| void MPI::MemoryReclaimer< HFOREST >::initialTreeLabel | ( | ) | [inline, private] |
| bool MPI::MemoryReclaimer< HFOREST >::is_shared_geometry | ( | const GEO & | g | ) | const [inline, private] |
| void MPI::MemoryReclaimer< HFOREST >::labelHGeometry | ( | HGeometry< D, dow > & | g, |
| int | lab | ||
| ) | const [inline, private] |
| void MPI::MemoryReclaimer< HFOREST >::labelHGeometryRecursively | ( | HGeometry< D, dow > & | g, |
| int | lab | ||
| ) | const [inline, private] |
| void MPI::MemoryReclaimer< HFOREST >::labelIrregularMesh | ( | ir_mesh_t & | m | ) | [inline, private] |
| void MPI::MemoryReclaimer< HFOREST >::reclaim | ( | ) | [inline] |
HGeometryTreeÖмäµÄËùÓм¸ºÎÌåÏ໥Ë÷Òý£¬³ÉΪһ¸ö·Ç³£¸´ÔÓµÄÍøÂç½á¹¹¡£ ΪÁË»ØÊÕÄڴ棬ÎÒÃÇʹÓÃÏÂÃæµÄ²½ÖèÀ´ÊµÏÖ£º
1. ¶Ôÿ¸öIrregularMeshÖв»ÓõÄÄÚ´æ½øÐлØÊÕ¡£Õâ¸ö²Ù×÷ÊǷdz£¼òµ¥µÄ£¬ ÒòΪÎÒÃÇÖ»ÐèÒª°Ñÿ¸öÒ¶×Ó½ÚµãµÄ×ÓÊ÷ͨͨɾ³ý¾Í¹»ÁË£¬ÊµÏÖÔÚº¯Êý reclaimIrregularMeshÕâ¸öº¯ÊýÖС£
2. ½«Õû¸öHGeometryTreeÖеÄËùÓм¸ºÎÌåʹÓÃindex=-1×ö±êʶ£¬Õâ¸ö²Ù×÷ÔÚ initialTreeLabelÖнøÐС£
3. ½«ËùÓеÄIrregularMeshÖÐË÷Òý¹ýµÄµ¥ÔªÓõ½µÄ¼¸ºÎÌå¶¼ÖØÐ±êʶΪ1£¬ Õâ¸ö²Ù×÷ÔÚ labelIrregularMesh ÖÐ×öµ½¡£
4. ÔÚÕû¸öHGeometryTreeÖеļ¸ºÎÌå½øÐбéÀú£ºÈç¹ûÒ»¸ö¼¸ºÎÌåµÄ±êʶΪ-1£¬ Ôò¸Ã¼¸ºÎÌåÓ¦¸Ã±»É¾³ý¡£ÔÚÕâ¸ö¼¸ºÎÌåµÚÒ»´Î±»Ë÷Òýµ½µÄʱºò£¬ÎÒÃǾͽ« Æä±êʶÐÞ¸ÄΪ-2£¬²¢·µ»Ø-1±íʾÊǵÚÒ»´ÎË÷Òýµ½Ëü¡£Èç¹û±êʶΪ1£¬ÄÇô Õâ¸ö¼¸ºÎÌåÕýÔÚ±»Ä³¸öIrregularMeshʹÓã¬ÎÒÃDz»×öʲô¡£Èç¹ûÒ»¸ö¼¸ ºÎÌå±êʶΪ-2£¬ÄÇôÕâ¸ö¼¸ºÎÌåÒѾÊÇÖÁÉÙµÚ¶þ´Î±»Ë÷Òýµ½ÁË£¬ÄÇô¾ÍÇÐ ¶Ï¶ÔÆä½øÐÐÕâ´ÎË÷ÒýµÄÁªÏµ£¬½«¶ÔÆä½øÐÐË÷ÒýµÄÄǸöÖ¸ÕëÉèΪ NULL¡£¾ ¹ýÕâ¸ö²Ù×÷£¬HGeometryTreeÖÐÔ±¾ÊǸöÍø×´½á¹¹µÄÊý¾Ý£¬ÄǸöÐèÒª±»É¾ ³ýµÄ²¿·Ö£¬ÒѾ±»²ð³ÉΪÁËÊ÷×´½á¹¹£»
5. ÔÚÕû¸öHGeometryTreeÖеļ¸ºÎÌå½øÐбéÀú£¬Èç¹ûÒ»¸ö¼¸ºÎÌåµÄ±êʶΪ-2£¬ ÎÒÃǾͽ«Æäɾ³ý¡£4ºÍ5Á½²½¶¼ÊÇÔÚ reclaimTreeMemory ÖÐʵÏֵģ»
ÏȶԸ÷¸öIrregularMeshµÄ²»Ê¹ÓÃÄÚ´æ½øÐлØÊÕ
½«ËùÓÐ×é¼þ±ê־Ϊ -1
¶ÔʹÓÃÖеÄ×é¼þ±êʶΪ 1
¶ÔÄÚ´æ½øÐлØÊÕ
| virtual void MPI::MemoryReclaimer< HFOREST >::reclaimHGeometry | ( | void * | p_geo, |
| int | D | ||
| ) | const [inline, private, virtual] |
| void MPI::MemoryReclaimer< HFOREST >::reclaimHGeometry | ( | HGeometry< D, dow > * | p_geo | ) | const [inline, private] |
| void MPI::MemoryReclaimer< HFOREST >::reclaimHGeometry | ( | HGeometry< D, dow > * | p_geo | ) | const [inline, private] |
| int MPI::MemoryReclaimer< HFOREST >::reclaimHGeometryRecursively | ( | HGeometry< D, dow > & | g | ) | const [inline, private] |
| void MPI::MemoryReclaimer< HFOREST >::reclaimIrregularMesh | ( | ir_mesh_t & | m | ) | [inline, private] |
| void MPI::MemoryReclaimer< HFOREST >::reclaimTreeMemory | ( | ) | [inline, private] |
| int MPI::MemoryReclaimer< HFOREST >::relabelHGeometryRecursively | ( | HGeometry< D, dow > & | g | ) | const [inline, private] |
| void MPI::MemoryReclaimer< HFOREST >::setGeometryTree | ( | tree_t & | _h_tree | ) | [inline] |
ÉèÖýøÐÐÄÚ´æ»ØÊÕ²Ù×÷µÄHGeometryTree¡£
tree_t* MPI::MemoryReclaimer< HFOREST >::h_tree [private] |
std::list<ir_mesh_t *> MPI::MemoryReclaimer< HFOREST >::ir_mesh [private] |
1.7.4