Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9435e2a
)
23475: EDF - ExportCGNS in non regression test fails
author
eap
<eap@opencascade.com>
Mon, 4 Sep 2017 11:18:55 +0000
(14:18 +0300)
committer
eap
<eap@opencascade.com>
Mon, 4 Sep 2017 11:18:55 +0000
(14:18 +0300)
src/DriverCGNS/DriverCGNS_Write.cxx
patch
|
blob
|
history
diff --git
a/src/DriverCGNS/DriverCGNS_Write.cxx
b/src/DriverCGNS/DriverCGNS_Write.cxx
index 06abf1dad98d7bf046d68c803753993d564ad7c5..3692ae57b455f87844a258d19446a00c2b54f8b4 100644
(file)
--- 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() ) {
switch ( meshDim ) {
case 3:
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_Edge: location = CGNS_ENUMV( EdgeCenter ); break;
default:;
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() ) {
break;
case 2:
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;
default:;
}
break;
case 1:
case SMDSAbs_Edge: location = CGNS_ENUMV( EdgeCenter ); break;
default:;
}
break;
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;
}
}