From: abn Date: Tue, 28 Mar 2017 14:12:28 +0000 (+0200) Subject: ICoCo version 1 compatibility. X-Git-Tag: V8_3_0rc1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6599db5deeefbec0210334a0438fac9b24fd4231;p=tools%2Fmedcoupling.git ICoCo version 1 compatibility. --- diff --git a/src/MEDCoupling/MEDCouplingFieldDouble.hxx b/src/MEDCoupling/MEDCouplingFieldDouble.hxx index d096f9864..35ae9eb90 100644 --- a/src/MEDCoupling/MEDCouplingFieldDouble.hxx +++ b/src/MEDCoupling/MEDCouplingFieldDouble.hxx @@ -24,6 +24,7 @@ #include "MEDCoupling.hxx" #include "MEDCouplingFieldT.hxx" #include "MEDCouplingMemArray.hxx" +#include "MEDCouplingFieldDouble_compat.hxx" namespace MEDCoupling { diff --git a/src/MEDCoupling/MEDCouplingFieldDouble_compat.hxx b/src/MEDCoupling/MEDCouplingFieldDouble_compat.hxx new file mode 100644 index 000000000..afe730dba --- /dev/null +++ b/src/MEDCoupling/MEDCouplingFieldDouble_compat.hxx @@ -0,0 +1,41 @@ +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// +// Author : Adrien Bruneton (CEA/DEN) + +#ifndef __MEDCOUPLINGFIELDDOUBLE_COMPAT_HXX__ +#define __MEDCOUPLINGFIELDDOUBLE_COMPAT_HXX__ + +#include "MEDCoupling.hxx" +#include "InterpKernelException.hxx" + +namespace ParaMEDMEM +{ + /* + * This empy shell is provided for backward compatibility with version 1 of the ICoco interface. + * If you intend to use ICoco *with* MEDCoupling functionalities, you have to switch to the + * version 2 of the ICoco interface (Problem_v2.h). + * + * The dummy implementation below only allows one to keep on compiling simple ICoco schemes (i.e. + * the ones not using MEDCouplingFieldDouble) with the version 1 of the interface. + * + */ + class MEDCouplingFieldDouble {}; +} + +#endif