23475: EDF - ExportCGNS in non regression test fails

This commit is contained in:
eap 2017-09-04 14:18:55 +03:00
parent 9435e2aab8
commit 76430457f1

View File

@ -562,7 +562,11 @@ Driver_Mesh::Status DriverCGNS_Write::Perform()
switch ( meshDim ) { switch ( meshDim ) {
case 3: case 3:
switch ( group->GetType() ) { switch ( group->GetType() ) {
#if CGNS_VERSION > 3130
case SMDSAbs_Volume: location = CGNS_ENUMV( CellCenter ); break; case SMDSAbs_Volume: location = CGNS_ENUMV( CellCenter ); break;
#else
case SMDSAbs_Volume: location = CGNS_ENUMV( FaceCenter ); break;
#endif
case SMDSAbs_Face: location = CGNS_ENUMV( FaceCenter ); break; case SMDSAbs_Face: location = CGNS_ENUMV( FaceCenter ); break;
case SMDSAbs_Edge: location = CGNS_ENUMV( EdgeCenter ); break; case SMDSAbs_Edge: location = CGNS_ENUMV( EdgeCenter ); break;
default:; default:;
@ -570,13 +574,21 @@ Driver_Mesh::Status DriverCGNS_Write::Perform()
break; break;
case 2: case 2:
switch ( group->GetType() ) { switch ( group->GetType() ) {
#if CGNS_VERSION > 3130
case SMDSAbs_Face: location = CGNS_ENUMV( CellCenter ); break; case SMDSAbs_Face: location = CGNS_ENUMV( CellCenter ); break;
#else
case SMDSAbs_Face: location = CGNS_ENUMV( FaceCenter ); break;
#endif
case SMDSAbs_Edge: location = CGNS_ENUMV( EdgeCenter ); break; case SMDSAbs_Edge: location = CGNS_ENUMV( EdgeCenter ); break;
default:; default:;
} }
break; break;
case 1: case 1:
#if CGNS_VERSION > 3130
location = CGNS_ENUMV( CellCenter ); break; location = CGNS_ENUMV( CellCenter ); break;
#else
location = CGNS_ENUMV( EdgeCenter ); break;
#endif
break; break;
} }
} }