From dd0818bace51331283204b8e2be985f60a27b654 Mon Sep 17 00:00:00 2001 From: Stefen Guzik <guzik2@llnl.gov> Date: Thu, 7 Aug 2008 01:04:52 +0000 Subject: [PATCH] minor writeCGNS interface change --- Geo/GModel.h | 2 +- Geo/GModelIO_CGNS.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Geo/GModel.h b/Geo/GModel.h index f51b3acaf8..a0bfcff95b 100644 --- a/Geo/GModel.h +++ b/Geo/GModel.h @@ -304,7 +304,7 @@ class GModel // CFD General Notation System files int readCGNS(const std::string &name); - int writeCGNS(const std::string &name, const int zoneDefinition, + int writeCGNS(const std::string &name, int zoneDefinition, const CGNSOptions &options, double scalingFactor=1.0); // Med "Modele d'Echange de Donnees" file format (the static routine diff --git a/Geo/GModelIO_CGNS.cpp b/Geo/GModelIO_CGNS.cpp index cc69b722e9..550acb944d 100644 --- a/Geo/GModelIO_CGNS.cpp +++ b/Geo/GModelIO_CGNS.cpp @@ -243,7 +243,7 @@ int GModel::readCGNS(const std::string &name) * ******************************************************************************/ -int GModel::writeCGNS(const std::string &name, const int zoneDefinition, +int GModel::writeCGNS(const std::string &name, int zoneDefinition, const CGNSOptions &options, double scalingFactor) { @@ -264,6 +264,7 @@ int GModel::writeCGNS(const std::string &name, const int zoneDefinition, int meshDim; Msg::Warning("CGNS I/O is at an \"alpha\" software stage"); + zoneDefinition = 1; switch(zoneDefinition) { case 1: // By partition -- GitLab