Version: 6.3.1
Public Member Functions | Private Types | Private Attributes

MEDSPLITTER.JointExchangeData Class Reference

Class storing data of the joint between domains residing different procs. It also provides services to pack/unpack data to be exchanged between proc and it creates MEDMEM.CONNECTZONE after data exchange. More...

#include <MEDSPLITTER_JointExchangeData.hxx>

Public Member Functions

 JointExchangeData ()
 Initialization.
void addCellCorrespondence (const MEDMEM::MESH *mesh_here, int domain_dist, int domain_here, int glob_dist, int glob_here, int loc_here, int loc_dist=-1)
 Stores cell/cell pair of joint between domains (residing different procs by default)
int nbCellPairs () const
void setMeshes (int domain_dist, const MEDMEM::MESH *mesh_dist, int domain_here, const MEDMEM::MESH *mesh_here)
 Set meshes.
void setConnectivity (const int *glob_fused_nodes)
 Set local and global conncetivity of joint cells.
int distantDomain () const
int localDomain () const
int serialize (std::vector< int > &out_data) const
void deserialize (const std::vector< int > &in_data)
 Set starting global id for sub-entitis of joint to create.
void setFisrtGlobalIdOfSubentity (int id)
MEDMEM::MEDSKYLINEARRAYmakeCellCorrespArray () const
 Create cell/cell correspondency array of the joint.
MEDMEM::CONNECTZONEmakeConnectZone (TGeom2FacesByDomian &face_map)
 Creates CONNECTZONE with MED_CELL and MED_NODE data filled.

Private Types

typedef std::multimap< int,
std::pair< int, int > > 
TGlob2LocsHD

Private Attributes

TGlob2LocsHD _glob_to_locs_here_and_dist
int _dist_domain
int _loc_domain
int _conn_here_size
int _nb_cell_pairs
int _first_glob_sub_id
const MEDMEM::MESH_dist_mesh
const MEDMEM::MESH_loc_mesh
std::vector< int_global_conn_here
std::vector< int_global_conn_dist
std::vector< int_local_conn_here
std::vector< int_local_conn_dist

Detailed Description

Class storing data of the joint between domains residing different procs. It also provides services to pack/unpack data to be exchanged between proc and it creates MEDMEM.CONNECTZONE after data exchange.


Member Typedef Documentation

typedef std::multimap<int, std::pair< int, int > > MEDSPLITTER.JointExchangeData.TGlob2LocsHD [private]

Constructor & Destructor Documentation

JointExchangeData::JointExchangeData ( )

Initialization.


Member Function Documentation

void JointExchangeData::addCellCorrespondence ( const MEDMEM::MESH mesh,
int  domain_dist,
int  domain_here,
int  glob_dist,
int  glob_here,
int  loc_here,
int  loc_dist = -1 
)

Stores cell/cell pair of joint between domains (residing different procs by default)

Parameters:
mesh- mesh on this proc
domain_dist- distant domain
domain_here- local domain
glob_dist- global id of a distant domain
glob_here- global id of a local domain
loc_here- local id of a local domain (counted from 1)
loc_dist- local id of a another domain (counted from 1)

References MEDSPLITTER.JointExchangeData._conn_here_size, MEDSPLITTER.JointExchangeData._glob_to_locs_here_and_dist, MEDMEM.MESH.getElementType(), and MED_EN.MED_CELL.

int MEDSPLITTER.JointExchangeData.nbCellPairs ( ) const
void JointExchangeData::setMeshes ( int  domain_dist,
const MEDMEM::MESH mesh_dist,
int  domain_here,
const MEDMEM::MESH mesh_here 
)
void JointExchangeData::setConnectivity ( const int glob_fused_nodes)
int MEDSPLITTER.JointExchangeData.distantDomain ( ) const
int MEDSPLITTER.JointExchangeData.localDomain ( ) const
int MEDSPLITTER.JointExchangeData.serialize ( std::vector< int > &  out_data) const
void JointExchangeData::deserialize ( const std::vector< int > &  in_data)
void MEDSPLITTER.JointExchangeData.setFisrtGlobalIdOfSubentity ( int  id)
MEDMEM::MEDSKYLINEARRAY * JointExchangeData::makeCellCorrespArray ( ) const
MEDMEM::CONNECTZONE * JointExchangeData::makeConnectZone ( TGeom2FacesByDomian face_map)

Field Documentation

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS