bool IsStructured() const { return ( _type == CGNS_ENUMV( Structured )); }
int IndexSize() const { return IsStructured() ? _meshDim : 1; }
string ReadZonesConnection(int file, int base, const map< string, TZoneData >& zonesByName);
bool IsStructured() const { return ( _type == CGNS_ENUMV( Structured )); }
int IndexSize() const { return IsStructured() ? _meshDim : 1; }
string ReadZonesConnection(int file, int base, const map< string, TZoneData >& zonesByName);
- vector< int > ids( nb * IndexSize() );
- vector< int > donorIds( donorNb * zone2.IndexSize() );
+ vector< cgsize_t > ids( nb * IndexSize() );
+ vector< cgsize_t > donorIds( donorNb * zone2.IndexSize() );
if (cg_conn_read ( file, base, _id, I,
&ids[0], CGNS_ENUMV(Integer), &donorIds[0]) == CG_OK )
{
for ( int isThisZone = 0; isThisZone < 2; ++isThisZone )
{
if (cg_conn_read ( file, base, _id, I,
&ids[0], CGNS_ENUMV(Integer), &donorIds[0]) == CG_OK )
{
for ( int isThisZone = 0; isThisZone < 2; ++isThisZone )
{
if ( type == CGNS_ENUMV( PointRange ))
{
TPointRangeIterator rangeIt( &points[0], zone._meshDim );
if ( type == CGNS_ENUMV( PointRange ))
{
TPointRangeIterator rangeIt( &points[0], zone._meshDim );
for ( size_t i = 0; i < points.size(); i += IndexSize() )
resIDs.push_back( zone.NodeID( points[i+0], points[i+1], points[i+2] ));
resIDs.swap( points );
for ( size_t i = 0; i < points.size(); i += IndexSize() )
resIDs.push_back( zone.NodeID( points[i+0], points[i+1], points[i+2] ));
resIDs.swap( points );
- int rmin[3] = {1,1,1}; // range of nodes to read
- int rmax[3] = {1,1,1};
+ cgsize_t rmin[3] = {1,1,1}; // range of nodes to read
+ cgsize_t rmax[3] = {1,1,1};
int nbNodes = rmax[0] = zone._sizes[0];
if ( zone.IsStructured())
for ( int i = 1; i < meshDim; ++i )
int nbNodes = rmax[0] = zone._sizes[0];
if ( zone.IsStructured())
for ( int i = 1; i < meshDim; ++i )
CGNS_ENUMT( ElementType_t ) elemType;
cgsize_t start, end; // range of ids of elements of a zone
CGNS_ENUMT( ElementType_t ) elemType;
cgsize_t start, end; // range of ids of elements of a zone
for ( int iSec = 1; iSec <= nbSections; ++iSec )
{
if ( cg_section_read( _fn, cgnsBase, iZone, iSec, name, &elemType,
for ( int iSec = 1; iSec <= nbSections; ++iSec )
{
if ( cg_section_read( _fn, cgnsBase, iZone, iSec, name, &elemType,
if (( face = myMesh->FindElement( faceID )) && face->GetType() == SMDSAbs_Face )
{
const bool reverse = ( elemData[ pos-1 ] < 0 );
if (( face = myMesh->FindElement( faceID )) && face->GetType() == SMDSAbs_Face )
{
const bool reverse = ( elemData[ pos-1 ] < 0 );
// Nnodes2, Node12, Node22, ... NodeN2,
// ...
// NnodesM, Node1M, Node2M, ... NodeNM
// Nnodes2, Node12, Node22, ... NodeN2,
// ...
// NnodesM, Node1M, Node2M, ... NodeNM
- cgnsNbNodes = elemData[ pos ];
- zone.ReplaceNodes( &elemData[pos+1], cgnsNbNodes, zone._nodeIdShift );
+ const int nbNodes = elemData[ pos ];
+ zone.ReplaceNodes( &elemData[pos+1], nbNodes, zone._nodeIdShift );