X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling%2FMEDCouplingFieldOverTime.cxx;h=bdba5d0b5dcb169a64540d0283f160e1f7eed98f;hb=a7a49bcd1fbbf89a8d7e4de71baf27d323b0a109;hp=280c69a2dfc1f4129c48f0df6e1fa4e7f9fa0704;hpb=293a6104470482e450701aa8061d9b244f2057d5;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling/MEDCouplingFieldOverTime.cxx b/src/MEDCoupling/MEDCouplingFieldOverTime.cxx index 280c69a2d..bdba5d0b5 100644 --- a/src/MEDCoupling/MEDCouplingFieldOverTime.cxx +++ b/src/MEDCoupling/MEDCouplingFieldOverTime.cxx @@ -1,9 +1,9 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D +// Copyright (C) 2007-2014 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. +// 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 @@ -25,12 +25,12 @@ using namespace ParaMEDMEM; -MEDCouplingFieldOverTime *MEDCouplingFieldOverTime::New(const std::vector& fs) throw(INTERP_KERNEL::Exception) +MEDCouplingFieldOverTime *MEDCouplingFieldOverTime::New(const std::vector& fs) { return new MEDCouplingFieldOverTime(fs); } -double MEDCouplingFieldOverTime::getTimeTolerance() const throw(INTERP_KERNEL::Exception) +double MEDCouplingFieldOverTime::getTimeTolerance() const { std::vector< MEDCouplingAutoRefCountObjectPtr >::const_iterator it=_fs.begin(); if(_fs.empty()) @@ -41,7 +41,7 @@ double MEDCouplingFieldOverTime::getTimeTolerance() const throw(INTERP_KERNEL::E throw INTERP_KERNEL::Exception("MEDCouplingFieldOverTime::getTimeTolerance : only empty fields in this !"); } -void MEDCouplingFieldOverTime::checkCoherency() const throw(INTERP_KERNEL::Exception) +void MEDCouplingFieldOverTime::checkCoherency() const { MEDCouplingMultiFields::checkCoherency(); std::vector< MEDCouplingAutoRefCountObjectPtr >::const_iterator it=_fs.begin(); @@ -83,19 +83,19 @@ std::string MEDCouplingFieldOverTime::simpleRepr() const std::vector ms; std::vector refms; try - { + { ms=getDifferentMeshes(refms); ret << ms.size() << "\n"; - } - catch(INTERP_KERNEL::Exception& e) - { ret << "Current instance is INVALID !\n"; } + } + catch(INTERP_KERNEL::Exception& /*e*/) + { ret << "Current instance is INVALID !\n"; } try - { + { MEDCouplingDefinitionTime dt=getDefinitionTimeZone(); dt.appendRepr(ret); - } - catch(INTERP_KERNEL::Exception& e) - { ret << "Definition zone is INVALID !\n"; } + } + catch(INTERP_KERNEL::Exception& /*e*/) + { ret << "Definition zone is INVALID !\n"; } return ret.str(); } @@ -121,25 +121,25 @@ bool MEDCouplingFieldOverTime::isEqualWithoutConsideringStr(const MEDCouplingMul return true; } -std::vector MEDCouplingFieldOverTime::getMeshes() const throw(INTERP_KERNEL::Exception) +std::vector MEDCouplingFieldOverTime::getMeshes() const { checkCoherency(); return MEDCouplingMultiFields::getMeshes(); } -std::vector MEDCouplingFieldOverTime::getDifferentMeshes(std::vector& refs) const throw(INTERP_KERNEL::Exception) +std::vector MEDCouplingFieldOverTime::getDifferentMeshes(std::vector& refs) const { checkCoherency(); return MEDCouplingMultiFields::getDifferentMeshes(refs); } -std::vector MEDCouplingFieldOverTime::getArrays() const throw(INTERP_KERNEL::Exception) +std::vector MEDCouplingFieldOverTime::getArrays() const { checkCoherency(); return MEDCouplingMultiFields::getArrays(); } -std::vector MEDCouplingFieldOverTime::getDifferentArrays(std::vector< std::vector >& refs) const throw(INTERP_KERNEL::Exception) +std::vector MEDCouplingFieldOverTime::getDifferentArrays(std::vector< std::vector >& refs) const { checkCoherency(); return MEDCouplingMultiFields::getDifferentArrays(refs); @@ -155,7 +155,7 @@ MEDCouplingDefinitionTime MEDCouplingFieldOverTime::getDefinitionTimeZone() cons return MEDCouplingDefinitionTime(tmp2,tmp3,tmp); } -MEDCouplingFieldOverTime::MEDCouplingFieldOverTime(const std::vector& fs) throw(INTERP_KERNEL::Exception):MEDCouplingMultiFields(fs) +MEDCouplingFieldOverTime::MEDCouplingFieldOverTime(const std::vector& fs):MEDCouplingMultiFields(fs) { checkCoherency(); }