X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling%2FMEDCouplingGaussLocalization.cxx;h=327013db9335f8aa8aa280a12969145b6e340612;hb=5dcdc2b6a915a809dd2d7831e4b2e85ae286328a;hp=6160b79164d2d86639a343def5d624772921694a;hpb=8763c12d01e33d6845dd53be65b001514d00bd42;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling/MEDCouplingGaussLocalization.cxx b/src/MEDCoupling/MEDCouplingGaussLocalization.cxx index 6160b7916..327013db9 100644 --- a/src/MEDCoupling/MEDCouplingGaussLocalization.cxx +++ b/src/MEDCoupling/MEDCouplingGaussLocalization.cxx @@ -28,19 +28,19 @@ #include ParaMEDMEM::MEDCouplingGaussLocalization::MEDCouplingGaussLocalization(INTERP_KERNEL::NormalizedCellType type, const std::vector& refCoo, - const std::vector& gsCoo, const std::vector& w) throw(INTERP_KERNEL::Exception) + const std::vector& gsCoo, const std::vector& w) try:_type(type),_ref_coord(refCoo),_gauss_coord(gsCoo),_weight(w) - { - checkCoherency(); - } +{ + checkCoherency(); +} catch(INTERP_KERNEL::Exception& e) - { +{ _type=INTERP_KERNEL::NORM_ERROR; _ref_coord.clear(); _gauss_coord.clear(); _weight.clear(); throw e; - } +} ParaMEDMEM::MEDCouplingGaussLocalization::MEDCouplingGaussLocalization(INTERP_KERNEL::NormalizedCellType typ) try:_type(typ) @@ -48,10 +48,10 @@ try:_type(typ) INTERP_KERNEL::CellModel::GetCellModel(_type); } catch(INTERP_KERNEL::Exception& e) - { +{ _type=INTERP_KERNEL::NORM_ERROR; throw e; - } +} void ParaMEDMEM::MEDCouplingGaussLocalization::setType(INTERP_KERNEL::NormalizedCellType typ) { @@ -74,8 +74,8 @@ void ParaMEDMEM::MEDCouplingGaussLocalization::checkCoherency() const } if(_gauss_coord.size()!=dim*_weight.size()) { - std::ostringstream oss; oss << "Invalid gsCoo size and weight size : gsCoo.size() must be equal to _weight.size() * " << dim << " (dim) !"; - throw INTERP_KERNEL::Exception(oss.str().c_str()); + std::ostringstream oss; oss << "Invalid gsCoo size and weight size : gsCoo.size() must be equal to _weight.size() * " << dim << " (dim) !"; + throw INTERP_KERNEL::Exception(oss.str().c_str()); } }