Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In SetParametersByDefaults(), make myMinSize and myDeflection greater
[modules/smesh.git]
/
src
/
DriverCGNS
/
DriverCGNS_Write.cxx
diff --git
a/src/DriverCGNS/DriverCGNS_Write.cxx
b/src/DriverCGNS/DriverCGNS_Write.cxx
index edc474163b16f1616b63caf4a6502ab4990054e6..12cea95ac76564595ee1907c8c95f273f6c15569 100644
(file)
--- a/
src/DriverCGNS/DriverCGNS_Write.cxx
+++ b/
src/DriverCGNS/DriverCGNS_Write.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
2
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
3
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-81,6
+81,8
@@
namespace
static int ids[] = { 0, 2, 1, 5, 4, 3 };
interlaces[SMDSEntity_Quad_Triangle] = ids;
cgTypes [SMDSEntity_Quad_Triangle] = CGNS_ENUMV( TRI_6 );
static int ids[] = { 0, 2, 1, 5, 4, 3 };
interlaces[SMDSEntity_Quad_Triangle] = ids;
cgTypes [SMDSEntity_Quad_Triangle] = CGNS_ENUMV( TRI_6 );
+ interlaces[SMDSEntity_BiQuad_Triangle] = ids;
+ cgTypes [SMDSEntity_BiQuad_Triangle] = CGNS_ENUMV( TRI_6 );
}
{
static int ids[] = { 0, 3, 2, 1 };
}
{
static int ids[] = { 0, 3, 2, 1 };
@@
-341,9
+343,12
@@
Driver_Mesh::Status DriverCGNS_Write::Perform()
startID = cgID;
if ( interlace ) // STANDARD elements
startID = cgID;
if ( interlace ) // STANDARD elements
+ {
+ int cgnsNbNodes; // get nb nodes by element type, that can be less that elem->NbNodes()
+ cg_npe( cgType, &cgnsNbNodes );
do
{
do
{
- for ( int i = 0
, nb = elem->NbNodes(); i < nb
; ++i )
+ for ( int i = 0
; i < cgnsNbNodes
; ++i )
elemData.push_back( cgnsID( elem->GetNode( interlace[i] ), n2cgID ));
if ( elem->GetID() != cgID )
elem2cgID.insert( elem2cgID.end(), make_pair( elem, cgID ));
elemData.push_back( cgnsID( elem->GetNode( interlace[i] ), n2cgID ));
if ( elem->GetID() != cgID )
elem2cgID.insert( elem2cgID.end(), make_pair( elem, cgID ));
@@
-351,7
+356,7
@@
Driver_Mesh::Status DriverCGNS_Write::Perform()
elem = elemIt->more() ? elemIt->next() : 0;
}
while ( elem && elem->GetEntityType() == elemType );
elem = elemIt->more() ? elemIt->next() : 0;
}
while ( elem && elem->GetEntityType() == elemType );
-
+ }
else if ( elemType == SMDSEntity_Polygon ) // POLYGONS
do
{
else if ( elemType == SMDSEntity_Polygon ) // POLYGONS
do
{