mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
IPAL54303: CGNS export problems
Another fix for BC locations
This commit is contained in:
parent
0be76e8fb8
commit
9435e2aab8
@ -559,30 +559,26 @@ Driver_Mesh::Status DriverCGNS_Write::Perform()
|
|||||||
CGNS_ENUMT( GridLocation_t ) location = CGNS_ENUMV( Vertex );
|
CGNS_ENUMT( GridLocation_t ) location = CGNS_ENUMV( Vertex );
|
||||||
if ( group->GetType() != SMDSAbs_Node )
|
if ( group->GetType() != SMDSAbs_Node )
|
||||||
{
|
{
|
||||||
#if CGNS_VERSION > 3130
|
|
||||||
location = CGNS_ENUMV( CellCenter );
|
|
||||||
#else
|
|
||||||
switch ( meshDim ) {
|
switch ( meshDim ) {
|
||||||
case 3:
|
case 3:
|
||||||
switch ( group->GetType() ) {
|
switch ( group->GetType() ) {
|
||||||
case SMDSAbs_Volume: location = CGNS_ENUMV( FaceCenter ); break; // !!!
|
case SMDSAbs_Volume: location = CGNS_ENUMV( CellCenter ); break;
|
||||||
case SMDSAbs_Face: location = CGNS_ENUMV( FaceCenter ); break; // OK
|
case SMDSAbs_Face: location = CGNS_ENUMV( FaceCenter ); break;
|
||||||
case SMDSAbs_Edge: location = CGNS_ENUMV( EdgeCenter ); break; // OK
|
case SMDSAbs_Edge: location = CGNS_ENUMV( EdgeCenter ); break;
|
||||||
default:;
|
default:;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
switch ( group->GetType() ) {
|
switch ( group->GetType() ) {
|
||||||
case SMDSAbs_Face: location = CGNS_ENUMV( FaceCenter ); break; // ???
|
case SMDSAbs_Face: location = CGNS_ENUMV( CellCenter ); break;
|
||||||
case SMDSAbs_Edge: location = CGNS_ENUMV( EdgeCenter ); break; // OK
|
case SMDSAbs_Edge: location = CGNS_ENUMV( EdgeCenter ); break;
|
||||||
default:;
|
default:;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
location = CGNS_ENUMV( EdgeCenter ); break; // ???
|
location = CGNS_ENUMV( CellCenter ); break;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// try to extract type of boundary condition from the group name
|
// try to extract type of boundary condition from the group name
|
||||||
|
Loading…
Reference in New Issue
Block a user