]> SALOME platform Git repositories - tools/medcoupling.git/blobdiff - src/MEDCoupling/Test/MEDCouplingExamplesTest.cxx
Salome HOME
Doc
[tools/medcoupling.git] / src / MEDCoupling / Test / MEDCouplingExamplesTest.cxx
index 7e305f2195a10f47b969bd8b6b8375e5ec212754..e2e9c2914b102376bc022b0ad0e3eb2f9a85b1f8 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2020  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
@@ -143,7 +143,7 @@ void CppExample_MEDCouplingFieldDouble_substractInPlaceDM()
     mesh1->fillFromAnalytic( MEDCoupling::ON_NODES,1,"x"); // field1 values == coords1
   MCAuto<MEDCouplingFieldDouble> field2 =
     mesh2->fillFromAnalytic( MEDCoupling::ON_NODES,1,"x"); // field2 values == coords2
-  const double levOfCheck = 10; // nodes can be permuted
+  const int levOfCheck = 10; // nodes can be permuted
   field1->substractInPlaceDM( field2, levOfCheck, 1e-13, 0 ); // values #0 and #2 must swap
   //! [CppSnippet_MEDCouplingFieldDouble_substractInPlaceDM_2]
   //! [CppSnippet_MEDCouplingFieldDouble_substractInPlaceDM_3]
@@ -174,7 +174,7 @@ void CppExample_MEDCouplingFieldDouble_changeUnderlyingMesh()
   //! [CppSnippet_MEDCouplingFieldDouble_changeUnderlyingMesh_2]
   MCAuto<MEDCouplingFieldDouble> field =
     mesh1->fillFromAnalytic( MEDCoupling::ON_NODES,1,"x"); // field values == coords1
-  const double levOfCheck = 10; // nodes can be permuted
+  const int levOfCheck = 10; // nodes can be permuted
   field->changeUnderlyingMesh( mesh2, levOfCheck, 1e-13, 0 ); // values #0 and #2 must swap
   CPPUNIT_ASSERT( std::equal( coords2, coords2+4, field->getArray()->getConstPointer() ));
   //! [CppSnippet_MEDCouplingFieldDouble_changeUnderlyingMesh_2]