]> SALOME platform Git repositories - samples/calculator.git/commitdiff
Salome HOME
Modification due to API modification of FieldDouble::normMax SHAPER_V9_1_0RC1
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 28 Aug 2018 07:22:22 +0000 (09:22 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 28 Aug 2018 07:22:22 +0000 (09:22 +0200)
src/CALCULATOR/CALCULATOR.cxx

index b0f4687be565d4c0cef59cca9934f80f026d8e55..25dc658fea81a8d168131db6fef593346eb46638 100644 (file)
@@ -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 )
       {