Back to index

salome-med  6.5.0
Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes
ParaMEDMEM::ParaMESH Class Reference

#include <ParaMESH.hxx>

Inheritance diagram for ParaMEDMEM::ParaMESH:
Inheritance graph
[legend]
Collaboration diagram for ParaMEDMEM::ParaMESH:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ParaMESH (MEDCouplingPointSet *subdomain_mesh, MEDCouplingPointSet *subdomain_face, DataArrayInt *CorrespElt_local2global, DataArrayInt *CorrespFace_local2global, DataArrayInt *CorrespNod_local2global, const ProcessorGroup &proc_group)
 ParaMESH (MEDCouplingPointSet *mesh, const ProcessorGroup &proc_group, const std::string &name)
virtual ~ParaMESH ()
void setNodeGlobal (DataArrayInt *nodeGlobal)
void setCellGlobal (DataArrayInt *cellGlobal)
TopologygetTopology () const
bool isStructured () const
MEDCouplingPointSetgetCellMesh () const
MEDCouplingPointSetgetFaceMesh () const
BlockTopologygetBlockTopology () const
DataArrayIntgetGlobalNumberingNodeDA () const
DataArrayIntgetGlobalNumberingFaceDA () const
DataArrayIntgetGlobalNumberingCellDA () const
const int * getGlobalNumberingNode () const
const int * getGlobalNumberingFace () const
const int * getGlobalNumberingCell () const
def __init__
def setNodeGlobal
def setCellGlobal
def getTopology
def isStructured
def getCellMesh
def getFaceMesh
def getBlockTopology
def getGlobalNumberingNodeDA
def getGlobalNumberingFaceDA
def getGlobalNumberingCellDA
def getGlobalNumberingNode
def getGlobalNumberingFace
def getGlobalNumberingCell
def getGlobalNumberingCell2
def getGlobalNumberingFace2
def getGlobalNumberingNode2

Public Attributes

 this

Private Attributes

MEDCouplingPointSet_cell_mesh
MEDCouplingPointSet_face_mesh
int _my_domain_id
ParaMEDMEM::BlockTopology_block_topology
Topology_explicit_topology
DataArrayInt_node_global
DataArrayInt_face_global
DataArrayInt_cell_global

Static Private Attributes

dictionary __swig_setmethods__ = {}
tuple __setattr__ = lambdaself,name,value:_swig_setattr(self, ParaMESH, name, value)
dictionary __swig_getmethods__ = {}
tuple __getattr__ = lambdaself,name:_swig_getattr(self, ParaMESH, name)
 __repr__ = _swig_repr
 __swig_destroy__ = _ParaMEDMEM.delete_ParaMESH
 __del__ = lambdaself:None;

Detailed Description

1

Definition at line 36 of file ParaMESH.hxx.


Constructor & Destructor Documentation

ParaMEDMEM::ParaMESH::ParaMESH ( MEDCouplingPointSet subdomain_mesh,
MEDCouplingPointSet subdomain_face,
DataArrayInt CorrespElt_local2global,
DataArrayInt CorrespFace_local2global,
DataArrayInt CorrespNod_local2global,
const ProcessorGroup proc_group 
)

Definition at line 35 of file ParaMESH.cxx.

                                                                                     :
    _cell_mesh(subdomain_mesh),
    _face_mesh(subdomain_face),
    _my_domain_id(proc_group.myRank()),
    _block_topology (new BlockTopology(proc_group, subdomain_mesh->getNumberOfCells())),
    _explicit_topology(0),
    _node_global(CorrespNod_local2global),
    _face_global(CorrespFace_local2global),
    _cell_global(CorrespElt_local2global)
  {
    if(_cell_mesh)
      _cell_mesh->incrRef();
    if(_face_mesh)
      _face_mesh->incrRef();
    if(CorrespElt_local2global)
      CorrespElt_local2global->incrRef();
    if(CorrespFace_local2global)
      CorrespFace_local2global->incrRef();
    if(CorrespNod_local2global)
      CorrespNod_local2global->incrRef();
  }

Here is the call graph for this function:

ParaMEDMEM::ParaMESH::ParaMESH ( MEDCouplingPointSet mesh,
const ProcessorGroup proc_group,
const std::string &  name 
)

Definition at line 59 of file ParaMESH.cxx.

                                                                                                       :
    _cell_mesh(mesh),
    _face_mesh(0),
    _my_domain_id(proc_group.myRank()),
    _block_topology (new BlockTopology(proc_group, mesh->getNumberOfCells())),
    _node_global(0),
    _face_global(0)
  {
    if(_cell_mesh)
      _cell_mesh->incrRef();
    int nb_elem=mesh->getNumberOfCells();
    _explicit_topology=new BlockTopology(proc_group,nb_elem);
    int nbOfCells=mesh->getNumberOfCells();
    _cell_global = DataArrayInt::New();
    _cell_global->alloc(nbOfCells,1);
    int *cellglobal=_cell_global->getPointer();
    int offset = _block_topology->localToGlobal(make_pair(_my_domain_id,0));
    for (int i=0; i<nbOfCells; i++)
      {
        cellglobal[i]=offset+i;
      }
  }

Here is the call graph for this function:

Definition at line 106 of file ParaMESH.cxx.

  {
    if(_cell_mesh)
      _cell_mesh->decrRef();
    if(_face_mesh)
      _face_mesh->decrRef();
    delete _block_topology;
    if(_node_global)
      _node_global->decrRef();
    if(_cell_global)
      _cell_global->decrRef();
    if(_face_global)
      _face_global->decrRef();
    delete _explicit_topology;
  }
def ParaMEDMEM.ParaMESH.__init__ (   self,
  args 
)
__init__(self, MEDCouplingPointSet subdomain_mesh, MEDCouplingPointSet subdomain_face, 
    DataArrayInt CorrespElt_local2global, 
    DataArrayInt CorrespFace_local2global, 
    DataArrayInt CorrespNod_local2global, 
    ProcessorGroup proc_group) -> ParaMESH
__init__(self, MEDCouplingPointSet mesh, ProcessorGroup proc_group, 
    string name) -> ParaMESH

1

Definition at line 14995 of file ParaMEDMEM.py.

14995 
14996     def __init__(self, *args): 
14997         """
14998         __init__(self, MEDCouplingPointSet subdomain_mesh, MEDCouplingPointSet subdomain_face, 
14999             DataArrayInt CorrespElt_local2global, 
15000             DataArrayInt CorrespFace_local2global, 
15001             DataArrayInt CorrespNod_local2global, 
15002             ProcessorGroup proc_group) -> ParaMESH
15003         __init__(self, MEDCouplingPointSet mesh, ProcessorGroup proc_group, 
15004             string name) -> ParaMESH
15005 
15006         1
15007         """
15008         this = _ParaMEDMEM.new_ParaMESH(*args)
15009         try: self.this.append(this)
        except: self.this = this

Member Function Documentation

Definition at line 55 of file ParaMESH.hxx.

{ return _block_topology; }

Here is the caller graph for this function:

getBlockTopology(self) -> BlockTopology

1

Definition at line 15060 of file ParaMEDMEM.py.

15060 
15061     def getBlockTopology(self):
15062         """
15063         getBlockTopology(self) -> BlockTopology
15064 
15065         1
15066         """
15067         return _ParaMEDMEM.ParaMESH_getBlockTopology(self)

Here is the call graph for this function:

Definition at line 53 of file ParaMESH.hxx.

{ return _cell_mesh; }

Here is the caller graph for this function:

getCellMesh(self) -> MEDCouplingPointSet

1

Definition at line 15044 of file ParaMEDMEM.py.

15044 
15045     def getCellMesh(self):
15046         """
15047         getCellMesh(self) -> MEDCouplingPointSet
15048 
15049         1
15050         """
15051         return _ParaMEDMEM.ParaMESH_getCellMesh(self)

Here is the call graph for this function:

Definition at line 54 of file ParaMESH.hxx.

{ return _face_mesh; }

Here is the caller graph for this function:

getFaceMesh(self) -> MEDCouplingPointSet

1

Definition at line 15052 of file ParaMEDMEM.py.

15052 
15053     def getFaceMesh(self):
15054         """
15055         getFaceMesh(self) -> MEDCouplingPointSet
15056 
15057         1
15058         """
15059         return _ParaMEDMEM.ParaMESH_getFaceMesh(self)

Here is the call graph for this function:

const int* ParaMEDMEM::ParaMESH::getGlobalNumberingCell ( ) const [inline]

Definition at line 62 of file ParaMESH.hxx.

{ if(_cell_global) return _cell_global->getConstPointer(); return 0; }

Here is the call graph for this function:

Here is the caller graph for this function:

getGlobalNumberingCell(self) -> int

1

Definition at line 15108 of file ParaMEDMEM.py.

15108 
15109     def getGlobalNumberingCell(self):
15110         """
15111         getGlobalNumberingCell(self) -> int
15112 
15113         1
15114         """
15115         return _ParaMEDMEM.ParaMESH_getGlobalNumberingCell(self)

Here is the call graph for this function:

getGlobalNumberingCell2(self) -> PyObject

1

Definition at line 15116 of file ParaMEDMEM.py.

15116 
15117     def getGlobalNumberingCell2(self):
15118         """
15119         getGlobalNumberingCell2(self) -> PyObject
15120 
15121         1
15122         """
15123         return _ParaMEDMEM.ParaMESH_getGlobalNumberingCell2(self)

Definition at line 59 of file ParaMESH.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

getGlobalNumberingCellDA(self) -> DataArrayInt

1

Definition at line 15084 of file ParaMEDMEM.py.

15084 
15085     def getGlobalNumberingCellDA(self):
15086         """
15087         getGlobalNumberingCellDA(self) -> DataArrayInt
15088 
15089         1
15090         """
15091         return _ParaMEDMEM.ParaMESH_getGlobalNumberingCellDA(self)

Here is the call graph for this function:

const int* ParaMEDMEM::ParaMESH::getGlobalNumberingFace ( ) const [inline]

Definition at line 61 of file ParaMESH.hxx.

{ if(_face_global) return _face_global->getConstPointer(); return 0; }

Here is the call graph for this function:

Here is the caller graph for this function:

getGlobalNumberingFace(self) -> int

1

Definition at line 15100 of file ParaMEDMEM.py.

15100 
15101     def getGlobalNumberingFace(self):
15102         """
15103         getGlobalNumberingFace(self) -> int
15104 
15105         1
15106         """
15107         return _ParaMEDMEM.ParaMESH_getGlobalNumberingFace(self)

Here is the call graph for this function:

getGlobalNumberingFace2(self) -> PyObject

1

Definition at line 15124 of file ParaMEDMEM.py.

15124 
15125     def getGlobalNumberingFace2(self):
15126         """
15127         getGlobalNumberingFace2(self) -> PyObject
15128 
15129         1
15130         """
15131         return _ParaMEDMEM.ParaMESH_getGlobalNumberingFace2(self)

Definition at line 58 of file ParaMESH.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

getGlobalNumberingFaceDA(self) -> DataArrayInt

1

Definition at line 15076 of file ParaMEDMEM.py.

15076 
15077     def getGlobalNumberingFaceDA(self):
15078         """
15079         getGlobalNumberingFaceDA(self) -> DataArrayInt
15080 
15081         1
15082         """
15083         return _ParaMEDMEM.ParaMESH_getGlobalNumberingFaceDA(self)

Here is the call graph for this function:

const int* ParaMEDMEM::ParaMESH::getGlobalNumberingNode ( ) const [inline]

Definition at line 60 of file ParaMESH.hxx.

{ if(_node_global) return _node_global->getConstPointer(); return 0; }

Here is the call graph for this function:

Here is the caller graph for this function:

getGlobalNumberingNode(self) -> int

1

Definition at line 15092 of file ParaMEDMEM.py.

15092 
15093     def getGlobalNumberingNode(self):
15094         """
15095         getGlobalNumberingNode(self) -> int
15096 
15097         1
15098         """
15099         return _ParaMEDMEM.ParaMESH_getGlobalNumberingNode(self)

Here is the call graph for this function:

getGlobalNumberingNode2(self) -> PyObject

1

Definition at line 15132 of file ParaMEDMEM.py.

15132 
15133     def getGlobalNumberingNode2(self):
15134         """
15135         getGlobalNumberingNode2(self) -> PyObject
15136 
15137         1
15138         """
15139         return _ParaMEDMEM.ParaMESH_getGlobalNumberingNode2(self)

Definition at line 57 of file ParaMESH.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

getGlobalNumberingNodeDA(self) -> DataArrayInt

1

Definition at line 15068 of file ParaMEDMEM.py.

15068 
15069     def getGlobalNumberingNodeDA(self):
15070         """
15071         getGlobalNumberingNodeDA(self) -> DataArrayInt
15072 
15073         1
15074         """
15075         return _ParaMEDMEM.ParaMESH_getGlobalNumberingNodeDA(self)

Here is the call graph for this function:

Definition at line 51 of file ParaMESH.hxx.

{ return _explicit_topology; }

Here is the caller graph for this function:

getTopology(self) -> Topology

1

Definition at line 15028 of file ParaMEDMEM.py.

15028 
15029     def getTopology(self):
15030         """
15031         getTopology(self) -> Topology
15032 
15033         1
15034         """
15035         return _ParaMEDMEM.ParaMESH_getTopology(self)

Here is the call graph for this function:

bool ParaMEDMEM::ParaMESH::isStructured ( ) const [inline]

Definition at line 52 of file ParaMESH.hxx.

{ return _cell_mesh->isStructured(); }

Here is the call graph for this function:

Here is the caller graph for this function:

isStructured(self) -> bool

1

Definition at line 15036 of file ParaMEDMEM.py.

15036 
15037     def isStructured(self):
15038         """
15039         isStructured(self) -> bool
15040 
15041         1
15042         """
15043         return _ParaMEDMEM.ParaMESH_isStructured(self)

Here is the call graph for this function:

Definition at line 94 of file ParaMESH.cxx.

  {
    if(cellGlobal!=_cell_global)
      {
        if(_cell_global)
          _cell_global->decrRef();
        _cell_global=cellGlobal;
        if(_cell_global)
          _cell_global->incrRef();
      }
  }

Here is the call graph for this function:

Here is the caller graph for this function:

def ParaMEDMEM.ParaMESH.setCellGlobal (   self,
  args 
)
setCellGlobal(self, DataArrayInt cellGlobal)

1

Definition at line 15020 of file ParaMEDMEM.py.

15020 
15021     def setCellGlobal(self, *args):
15022         """
15023         setCellGlobal(self, DataArrayInt cellGlobal)
15024 
15025         1
15026         """
15027         return _ParaMEDMEM.ParaMESH_setCellGlobal(self, *args)

Here is the call graph for this function:

Definition at line 82 of file ParaMESH.cxx.

  {
    if(nodeGlobal!=_node_global)
      {
        if(_node_global)
          _node_global->decrRef();
        _node_global=nodeGlobal;
        if(_node_global)
          _node_global->incrRef();
      }
  }

Here is the call graph for this function:

Here is the caller graph for this function:

def ParaMEDMEM.ParaMESH.setNodeGlobal (   self,
  args 
)
setNodeGlobal(self, DataArrayInt nodeGlobal)

1

Definition at line 15012 of file ParaMEDMEM.py.

15012 
15013     def setNodeGlobal(self, *args):
15014         """
15015         setNodeGlobal(self, DataArrayInt nodeGlobal)
15016 
15017         1
15018         """
15019         return _ParaMEDMEM.ParaMESH_setNodeGlobal(self, *args)

Here is the call graph for this function:


Member Data Documentation

ParaMEDMEM.ParaMESH.__del__ = lambdaself:None; [static, private]

Definition at line 15011 of file ParaMEDMEM.py.

tuple ParaMEDMEM.ParaMESH.__getattr__ = lambdaself,name:_swig_getattr(self, ParaMESH, name) [static, private]

Definition at line 14993 of file ParaMEDMEM.py.

Definition at line 14994 of file ParaMEDMEM.py.

tuple ParaMEDMEM.ParaMESH.__setattr__ = lambdaself,name,value:_swig_setattr(self, ParaMESH, name, value) [static, private]

Definition at line 14991 of file ParaMEDMEM.py.

ParaMEDMEM.ParaMESH.__swig_destroy__ = _ParaMEDMEM.delete_ParaMESH [static, private]

Definition at line 15010 of file ParaMEDMEM.py.

dictionary ParaMEDMEM.ParaMESH.__swig_getmethods__ = {} [static, private]

Definition at line 14992 of file ParaMEDMEM.py.

dictionary ParaMEDMEM.ParaMESH.__swig_setmethods__ = {} [static, private]

Definition at line 14990 of file ParaMEDMEM.py.

Definition at line 73 of file ParaMESH.hxx.

Definition at line 78 of file ParaMESH.hxx.

Definition at line 66 of file ParaMESH.hxx.

Definition at line 74 of file ParaMESH.hxx.

Definition at line 77 of file ParaMESH.hxx.

Definition at line 67 of file ParaMESH.hxx.

Definition at line 70 of file ParaMESH.hxx.

Definition at line 76 of file ParaMESH.hxx.

Definition at line 15009 of file ParaMEDMEM.py.


The documentation for this class was generated from the following files: