From: Anthony Geay Date: Tue, 28 Aug 2018 07:22:22 +0000 (+0200) Subject: Modification due to API modification of FieldDouble::normMax X-Git-Tag: SHAPER_V9_1_0RC1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=23370f81458758deba5c024ce462ce1435ae376a;p=samples%2Fcalculator.git Modification due to API modification of FieldDouble::normMax --- diff --git a/src/CALCULATOR/CALCULATOR.cxx b/src/CALCULATOR/CALCULATOR.cxx index b0f4687..25dc658 100644 --- a/src/CALCULATOR/CALCULATOR.cxx +++ b/src/CALCULATOR/CALCULATOR.cxx @@ -157,7 +157,7 @@ CORBA::Double CALCULATOR::normMax( SALOME_MED::MEDCouplingFieldDoubleCorbaInterf try { - norme = f1->normMax(); + norme = f1->normMax( 0 ); } catch (...) { @@ -376,7 +376,7 @@ void CALCULATOR::printField( SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_pt std::cout << myField->advancedRepr(); std::cout << std::endl; std::cout << "Euclidian norm: " << myField->norm2() << std::endl; - std::cout << "Max norm: " << myField->normMax() << std::endl; + std::cout << "Max norm: " << myField->normMax( 0 ) << std::endl; std::cout << "------------------------------------------------------------------------" << std::endl << std::endl; endService( "CALCULATOR::printField" ); @@ -419,7 +419,7 @@ CORBA::Double CALCULATOR::convergenceCriteria( SALOME_MED::MEDCouplingFieldDoubl { fnew->changeUnderlyingMesh( fold->getMesh(), 0, 1e-12 ); fres = (*fnew) - (*fold); - criteria = fres->normMax(); + criteria = fres->normMax( 0 ); } catch ( INTERP_KERNEL::Exception ) {