#include <GEM.H>
Public Member Functions | |
bool | validate_comm_list (int ncsend, int ncrecv, int *csend, int *crecv) |
bool | ValidateMesh () |
void | AddParitionBoundary (int rpid, int nnshare, int nnsend, int nnrecv, int ncsend, int ncrecv, int *nshared, int *nsend, int *nrecv, int *csend, int *crecv) |
void | AddDomainBoundary (int db_id, int ntri, int ngtri, int *tris, int nquad, int ngquad, int *quads) |
bool | SetSolverDataBlock (const std::string &wname, double *cell_data, int nval_cells, double *node_data, int nval_nodes) |
bool | AddSolverDataBlock (const std::string &wname, double *cell_data, int nval_cells, double *node_data, int nval_nodes) |
bool | debug (bool s=true) |
void | ResolveCellMapping (GEM_Partition &sp) |
void | SetNodalCoordinates (double *data, int nn, int ng) |
void | SetVolumeElements (int *data, int ncells, int ng, int npe) |
bool | PopulatePartitionBoundaries (std::vector< GEM_PartitionBoundary > &pb) |
void | MapDomainBoundaries (std::map< unsigned int, unsigned int > &bcmap) |
void | report () |
void | report_partition_boundaries () |
void | report_domain_boundaries () |
unsigned int | nelem () |
unsigned int | Elem2Cell (std::pair< unsigned int, unsigned int >) |
std::pair< unsigned int, unsigned int > | Cell2Elem (unsigned int) |
void | Register_com_volconn (const std::string &wname, int paneid, unsigned int nel, unsigned int ngel, std::vector< unsigned int > &conn, unsigned int esize, bool ghost_part=false) |
bool | WindowInitDone () |
bool | DestroyWindows () |
bool | WriteRocstar (const std::string &, double t=0.0) |
bool | ReadRocstar (const std::string &, double t=0.0) |
bool | InitRoccomWindows (const std::string &wname) |
void | Create_com_pconn (std::vector< unsigned int > rpids, std::vector< std::vector< std::vector< unsigned int > > > &index_vectors, unsigned int &nreal, unsigned int &ng, std::vector< int > &pc) |
bool | CreatePconn (const std::string &wname) |
bool | PopulateVolumeWindow (const std::string &wname) |
bool | PopulateSurfaceWindow (const std::string &wname) |
void | Create_com_volsoln (const std::string &fname, std::vector< double > &fvec, unsigned int ncomp, const std::string &unit) |
GEM_Partition (const GEM_Partition &gp) | |
GEM_Partition () | |
GEM_Partition (unsigned int id, MPI_Comm comm=MPI_COMM_NULL) | |
GEM_Partition & | operator= (const GEM_Partition &gp) |
Public Attributes | |
unsigned int | _id |
unsigned int | _npart |
unsigned int | _ngnodes |
unsigned int | _ngtet |
unsigned int | _nghex |
unsigned int | _ngpyr |
unsigned int | _ngpris |
unsigned int | _nvface |
std::vector< double > | _nc |
std::vector< unsigned int > | _tetconn |
std::vector< unsigned int > | _pyrconn |
std::vector< unsigned int > | _prisconn |
std::vector< unsigned int > | _hexconn |
unsigned int | _cell_ordering [4] |
std::vector < GEM_PartitionBoundary > | _pb |
std::vector< GEM_DomainBoundary > | _db |
GEM_UserData | _data |
GEM_UserData | _solver_data |
std::ostream * | _out |
bool | _debug |
MPI_Comm | _comm |
int | pane_id |
std::vector< int > | pconn |
unsigned int | pconn_nghost |
std::string | volume_window |
std::string | surface_window |
|
inline |
|
inline |
|
inline |
void AddDomainBoundary | ( | int | db_id, |
int | ntri, | ||
int | ngtri, | ||
int * | tris, | ||
int | nquad, | ||
int | ngquad, | ||
int * | quads | ||
) |
Definition at line 1227 of file GEM.C.
References GEM_DomainBoundary::_debug, GEM_DomainBoundary::_id, GEM_DomainBoundary::_ngquad, GEM_DomainBoundary::_ngtri, GEM_DomainBoundary::_nnodes, GEM_DomainBoundary::_out, GEM_DomainBoundary::_quadconn, GEM_DomainBoundary::_triconn, and GEM_DomainBoundary::NNodes().
void AddParitionBoundary | ( | int | rpid, |
int | nnshare, | ||
int | nnsend, | ||
int | nnrecv, | ||
int | ncsend, | ||
int | ncrecv, | ||
int * | nshared, | ||
int * | nsend, | ||
int * | nrecv, | ||
int * | csend, | ||
int * | crecv | ||
) |
Definition at line 1201 of file GEM.C.
References GEM_PartitionBoundary::_debug, GEM_PartitionBoundary::_out, and GEM_PartitionBoundary::populate().
bool AddSolverDataBlock | ( | const std::string & | wname, |
double * | cell_data, | ||
int | nval_cells, | ||
double * | node_data, | ||
int | nval_nodes | ||
) |
pair< unsigned int, unsigned int > Cell2Elem | ( | unsigned int | cell | ) |
Definition at line 875 of file GEM.C.
References offset().
Referenced by ResolveCellMapping().
void Create_com_pconn | ( | std::vector< unsigned int > | rpids, |
std::vector< std::vector< std::vector< unsigned int > > > & | index_vectors, | ||
unsigned int & | nreal, | ||
unsigned int & | ng, | ||
std::vector< int > & | pc | ||
) |
Definition at line 476 of file GEM.C.
References AddPconnSection(), and i.
void Create_com_volsoln | ( | const std::string & | fname, |
std::vector< double > & | fvec, | ||
unsigned int | ncomp, | ||
const std::string & | unit | ||
) |
Definition at line 413 of file GEM.C.
References COM_DOUBLE, COM_get_attribute_handle(), COM_new_attribute(), and COM_set_array().
Referenced by TRAIL_FluRegisterVolSoln().
bool CreatePconn | ( | const std::string & | wname | ) |
Definition at line 710 of file GEM.C.
References GEM_PartitionBoundary::_recvcells, GEM_PartitionBoundary::_recvnodes, GEM_PartitionBoundary::_rpart, GEM_PartitionBoundary::_sendcells, GEM_PartitionBoundary::_sendnodes, GEM_PartitionBoundary::_sharenodes, COM_set_array(), and COM_set_size().
bool debug | ( | bool | s = true | ) |
Definition at line 1266 of file GEM.C.
References s.
Referenced by main(), and TRAIL_Debug().
bool DestroyWindows | ( | ) |
Definition at line 584 of file GEM.C.
References COM_delete_window().
Referenced by main(), and TRAIL_RemeshWrite().
unsigned int Elem2Cell | ( | std::pair< unsigned int, unsigned int > | ti | ) |
Definition at line 956 of file GEM.C.
References offset().
Referenced by PartitionBoundary::populate_local_arrays(), TRAIL_FluWriteCMP(), and TRAIL_GeoPartReadPartitionBoundaryASCII().
bool InitRoccomWindows | ( | const std::string & | wname | ) |
Definition at line 685 of file GEM.C.
References COM_new_window().
Referenced by main(), and TRAIL_RemeshWrite().
void MapDomainBoundaries | ( | std::map< unsigned int, unsigned int > & | bcmap | ) |
Definition at line 1385 of file GEM.C.
References GEM_DomainBoundary::_id, GEM_DomainBoundary::_ngquad, GEM_DomainBoundary::_ngtri, GEM_DomainBoundary::_out, GEM_DomainBoundary::_quadconn, GEM_DomainBoundary::_triconn, and GEM_DomainBoundary::debug().
Referenced by FluRegion::PopulateFluPatches(), and TRAIL_FluPopulatePatches().
|
inline |
|
inline |
bool PopulatePartitionBoundaries | ( | std::vector< GEM_PartitionBoundary > & | pb | ) |
bool PopulateSurfaceWindow | ( | const std::string & | wname | ) |
Definition at line 819 of file GEM.C.
References GEM_DomainBoundary::pane_id, GEM_DomainBoundary::PopulateSurfaceArrays(), and GEM_DomainBoundary::Register_com_surfmesh().
bool PopulateVolumeWindow | ( | const std::string & | wname | ) |
Definition at line 747 of file GEM.C.
References COM_set_array(), and COM_set_size().
Referenced by TRAIL_RocmopSmooth().
bool ReadRocstar | ( | const std::string & | prefix, |
double | t = 0.0 |
||
) |
void Register_com_volconn | ( | const std::string & | wname, |
int | paneid, | ||
unsigned int | nel, | ||
unsigned int | ngel, | ||
std::vector< unsigned int > & | conn, | ||
unsigned int | esize, | ||
bool | ghost_part = false |
||
) |
Definition at line 503 of file GEM.C.
References COM_set_array(), and COM_set_size().
void report | ( | ) |
void report_domain_boundaries | ( | ) |
Definition at line 163 of file GEM.C.
References GEM_DomainBoundary::report().
void report_partition_boundaries | ( | ) |
Definition at line 131 of file GEM.C.
References GEM_PartitionBoundary::report().
void ResolveCellMapping | ( | GEM_Partition & | sp | ) |
Definition at line 1524 of file GEM.C.
References GEM_PartitionBoundary::_recvcells, GEM_PartitionBoundary::_sendcells, and Cell2Elem().
bool SetSolverDataBlock | ( | const std::string & | wname, |
double * | cell_data, | ||
int | nval_cells, | ||
double * | node_data, | ||
int | nval_nodes | ||
) |
void SetVolumeElements | ( | int * | data, |
int | ncells, | ||
int | ng, | ||
int | npe | ||
) |
bool validate_comm_list | ( | int | ncsend, |
int | ncrecv, | ||
int * | csend, | ||
int * | crecv | ||
) |
bool ValidateMesh | ( | ) |
bool WindowInitDone | ( | ) |
Definition at line 575 of file GEM.C.
References COM_window_init_done().
Referenced by main(), and TRAIL_RemeshWrite().
bool WriteRocstar | ( | const std::string & | prefix, |
double | t = 0.0 |
||
) |
Definition at line 601 of file GEM.C.
References TRAIL_CWD(), and TRAIL_WriteWindow().
Referenced by main(), and TRAIL_RemeshWrite().
unsigned int _cell_ordering[4] |
Definition at line 303 of file GEM.H.
Referenced by FluRegion::FluRegion(), GEM_Partition(), main(), and operator=().
MPI_Comm _comm |
Definition at line 312 of file GEM.H.
Referenced by GEM_Partition(), main(), operator=(), TRAIL_Debug(), and TRAIL_RocmopSmooth().
GEM_UserData _data |
Definition at line 306 of file GEM.H.
Referenced by TRAIL_FluInitVolSoln(), TRAIL_FluRegisterVolSoln(), TRAIL_FluResizeVolSoln(), and TRAIL_RemeshInitFluVolData().
std::vector<GEM_DomainBoundary> _db |
Definition at line 305 of file GEM.H.
Referenced by TRAIL_FluInitSurfSoln(), TRAIL_FluReadDIM(), TRAIL_FluReadGridASCII(), TRAIL_FluRegisterSurfMesh(), TRAIL_FluRegisterSurfSoln(), TRAIL_FluWriteDIM(), TRAIL_GeoPartReadPatchesASCII(), and TRAIL_RemeshInitFluSurfData().
bool _debug |
Definition at line 310 of file GEM.H.
Referenced by FluRegion::AddFluBorder(), FluRegion::AddFluPatch(), GEM_Partition(), operator=(), PartitionBoundary::populate_local_arrays(), TRAIL_AutoSurfer(), TRAIL_FluInitVolSoln(), TRAIL_FluPopRemBordIndFILE(), TRAIL_FluReadCOM(), TRAIL_FluReadDIM(), TRAIL_FluReadGridASCII(), TRAIL_FluRegisterSurfSoln(), TRAIL_FluResizeVolSoln(), TRAIL_RemeshAutoSurfer(), TRAIL_RemeshWrite(), and TRAIL_RocmopSmooth().
std::vector<unsigned int> _hexconn |
Definition at line 301 of file GEM.H.
Referenced by FluRegion::FluRegion(), GEM_Partition(), nelem(), operator=(), TRAIL_FluInitVolSoln(), TRAIL_FluReadDIM(), TRAIL_FluReadGridASCII(), TRAIL_FluResizeVolSoln(), TRAIL_FluWriteCMP(), TRAIL_FluWriteDIM(), TRAIL_GeoPartReadASCII(), TRAIL_RemeshInitFluVolData(), and FluRegion::validate_comm_list().
unsigned int _id |
Definition at line 284 of file GEM.H.
Referenced by FluRegion::AddFluBorder(), FluRegion::AddFluPatch(), GEM_Partition(), operator=(), TRAIL_Debug(), TRAIL_FluPopRemBordIndFILE(), TRAIL_FluReadCOM(), TRAIL_FluReadDIM(), TRAIL_FluReadGridASCII(), TRAIL_FluWriteCMP(), TRAIL_FluWriteCOM(), TRAIL_FluWriteDIM(), and TRAIL_RemeshAutoSurfer().
std::vector<double> _nc |
Definition at line 293 of file GEM.H.
Referenced by FluRegion::FluRegion(), GEM_Partition(), operator=(), TRAIL_FluReadDIM(), TRAIL_FluReadGridASCII(), TRAIL_FluResizeVolSoln(), TRAIL_FluWriteDIM(), TRAIL_GeoPartReadASCII(), TRAIL_RemeshInitFluVolData(), and TRAIL_RocmopSmooth().
unsigned int _nghex |
Definition at line 288 of file GEM.H.
Referenced by GEM_Partition(), operator=(), TRAIL_FluReadDIM(), TRAIL_FluWriteDIM(), TRAIL_GeoPartReadASCII(), and FluRegion::validate_comm_list().
unsigned int _ngnodes |
Definition at line 286 of file GEM.H.
Referenced by GEM_Partition(), operator=(), TRAIL_FluReadDIM(), TRAIL_FluWriteDIM(), and TRAIL_GeoPartReadASCII().
unsigned int _ngpris |
Definition at line 290 of file GEM.H.
Referenced by GEM_Partition(), operator=(), TRAIL_FluReadDIM(), TRAIL_FluWriteDIM(), TRAIL_GeoPartReadASCII(), and FluRegion::validate_comm_list().
unsigned int _ngpyr |
Definition at line 289 of file GEM.H.
Referenced by GEM_Partition(), operator=(), TRAIL_FluReadDIM(), TRAIL_FluWriteDIM(), TRAIL_GeoPartReadASCII(), and FluRegion::validate_comm_list().
unsigned int _ngtet |
Definition at line 287 of file GEM.H.
Referenced by GEM_Partition(), operator=(), TRAIL_FluReadDIM(), TRAIL_FluWriteDIM(), TRAIL_GeoPartReadASCII(), and FluRegion::validate_comm_list().
unsigned int _npart |
Definition at line 285 of file GEM.H.
Referenced by main(), TRAIL_AutoSurfer(), TRAIL_RemeshFixRocstarFiles(), and TRAIL_RemeshWrite().
unsigned int _nvface |
Definition at line 291 of file GEM.H.
Referenced by GEM_Partition(), operator=(), TRAIL_FluRegisterVolSoln(), TRAIL_FluResizeVolSoln(), and TRAIL_GeoPartReadASCII().
std::ostream* _out |
Definition at line 308 of file GEM.H.
Referenced by FluRegion::AddFluBorder(), FluRegion::AddFluPatch(), GEM_Partition(), main(), operator=(), TRAIL_AutoSurfer(), TRAIL_Debug(), TRAIL_FluInitSurfSoln(), TRAIL_FluInitVolSoln(), TRAIL_FluNumPatches(), TRAIL_FluPopRemBordIndFILE(), TRAIL_FluPopulatePatches(), TRAIL_FluReadCOM(), TRAIL_FluReadDIM(), TRAIL_FluReadGridASCII(), TRAIL_FluRegisterSurfSoln(), TRAIL_FluResizeVolSoln(), TRAIL_FluWriteCMP(), TRAIL_FluWriteCOM(), TRAIL_FluWriteDIM(), TRAIL_FluWriteMAP(), TRAIL_FluWriteNative(), TRAIL_RemeshAutoSurfer(), TRAIL_RemeshWrite(), TRAIL_RocmopSmooth(), and FluRegion::validate_comm_list().
std::vector<GEM_PartitionBoundary> _pb |
Definition at line 304 of file GEM.H.
Referenced by TRAIL_FluPopRemBordIndFILE(), TRAIL_FluReadCOM(), TRAIL_FluReadDIM(), TRAIL_FluWriteCOM(), TRAIL_FluWriteDIM(), TRAIL_FluWriteNative(), TRAIL_GeoPartReadASCII(), TRAIL_GeoPartReadPartitionBoundariesASCII(), and TRAIL_GeoPartReadPartitionBoundaryASCII().
std::vector<unsigned int> _prisconn |
Definition at line 299 of file GEM.H.
Referenced by FluRegion::FluRegion(), GEM_Partition(), nelem(), operator=(), TRAIL_FluInitVolSoln(), TRAIL_FluReadDIM(), TRAIL_FluReadGridASCII(), TRAIL_FluResizeVolSoln(), TRAIL_FluWriteCMP(), TRAIL_FluWriteDIM(), TRAIL_GeoPartReadASCII(), TRAIL_RemeshInitFluVolData(), and FluRegion::validate_comm_list().
std::vector<unsigned int> _pyrconn |
Definition at line 297 of file GEM.H.
Referenced by FluRegion::FluRegion(), GEM_Partition(), nelem(), operator=(), TRAIL_FluInitVolSoln(), TRAIL_FluReadDIM(), TRAIL_FluReadGridASCII(), TRAIL_FluResizeVolSoln(), TRAIL_FluWriteCMP(), TRAIL_FluWriteDIM(), TRAIL_GeoPartReadASCII(), TRAIL_RemeshInitFluVolData(), and FluRegion::validate_comm_list().
GEM_UserData _solver_data |
Definition at line 307 of file GEM.H.
Referenced by TRAIL_FluCopyCaseFiles(), TRAIL_FluInitSolver(), TRAIL_FluInitSurfSoln(), TRAIL_FluInitVolSoln(), TRAIL_FluNumPatches(), TRAIL_FluPopRemBordIndFILE(), TRAIL_FluPopulatePatches(), TRAIL_FluReadCOM(), TRAIL_FluReadControlFile(), TRAIL_FluReadDIM(), TRAIL_FluReadGridASCII(), TRAIL_FluWriteCMP(), TRAIL_FluWriteCOM(), TRAIL_FluWriteDIM(), TRAIL_FluWriteMAP(), TRAIL_FluWriteNative(), TRAIL_GeoPartReadPartitionBoundaryASCII(), and TRAIL_RemeshInitFluVolData().
std::vector<unsigned int> _tetconn |
Definition at line 295 of file GEM.H.
Referenced by FluRegion::FluRegion(), GEM_Partition(), nelem(), operator=(), TRAIL_FluInitVolSoln(), TRAIL_FluReadDIM(), TRAIL_FluReadGridASCII(), TRAIL_FluResizeVolSoln(), TRAIL_FluWriteCMP(), TRAIL_FluWriteDIM(), TRAIL_GeoPartReadASCII(), TRAIL_RemeshInitFluVolData(), and FluRegion::validate_comm_list().
int pane_id |
Definition at line 315 of file GEM.H.
Referenced by TRAIL_FluRegisterVolSoln(), and TRAIL_RocmopSmooth().
std::string surface_window |
Definition at line 319 of file GEM.H.
Referenced by TRAIL_AutoSurfer(), TRAIL_FluRegisterSurfMesh(), TRAIL_FluRegisterSurfSoln(), TRAIL_RemeshAutoSurfer(), and TRAIL_RemeshFixRocstarFiles().
std::string volume_window |
Definition at line 318 of file GEM.H.
Referenced by TRAIL_FluRegisterVolSoln(), and TRAIL_RemeshFixRocstarFiles().