From 76430457f13151df45e2f8a34a4cf1b0db1c4d44 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 4 Sep 2017 14:18:55 +0300 Subject: [PATCH] 23475: EDF - ExportCGNS in non regression test fails --- src/DriverCGNS/DriverCGNS_Write.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/DriverCGNS/DriverCGNS_Write.cxx b/src/DriverCGNS/DriverCGNS_Write.cxx index 06abf1dad..3692ae57b 100644 --- a/src/DriverCGNS/DriverCGNS_Write.cxx +++ b/src/DriverCGNS/DriverCGNS_Write.cxx @@ -562,7 +562,11 @@ Driver_Mesh::Status DriverCGNS_Write::Perform() switch ( meshDim ) { case 3: switch ( group->GetType() ) { +#if CGNS_VERSION > 3130 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_Edge: location = CGNS_ENUMV( EdgeCenter ); break; default:; @@ -570,13 +574,21 @@ Driver_Mesh::Status DriverCGNS_Write::Perform() break; case 2: switch ( group->GetType() ) { +#if CGNS_VERSION > 3130 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; default:; } break; case 1: +#if CGNS_VERSION > 3130 location = CGNS_ENUMV( CellCenter ); break; +#else + location = CGNS_ENUMV( EdgeCenter ); break; +#endif break; } } -- 2.39.2