]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
windows port
authoradam <adam>
Wed, 7 Oct 2009 13:59:00 +0000 (13:59 +0000)
committeradam <adam>
Wed, 7 Oct 2009 13:59:00 +0000 (13:59 +0000)
src/INTERP_KERNELTest/Makefile.am
src/INTERP_KERNELTest/TestInterpKernelUtils.hxx
src/MEDCoupling/MEDCouplingUMesh.cxx
src/MEDCoupling/Test/MEDCouplingBasicsTest.cxx
src/MEDCoupling/Test/Makefile.am

index 242f5f43f2b3301466f7e591145e55f05e573c89..7651c053388192765600e6256daa83227f634138 100644 (file)
@@ -123,9 +123,7 @@ endif
 PerfTest_SOURCES =               \
        PerfTest.cxx             \
        MeshTestToolkit.hxx      \
-       MeshTestToolkit.txx      \
-       TestInterpKernelUtils.hxx\
-       TestInterpKernelUtils.cxx
+       MeshTestToolkit.txx
 
 PerfTest_CPPFLAGS = $(libInterpKernelTest_la_CPPFLAGS)
 PerfTest_LDADD = $(MED2_LIBS) $(libInterpKernelTest_la_LDFLAGS) libInterpKernelTest.la
index 29209ffaf16484095036ece0a07faa1b4695e0b9..8a6e18b23f314b03a58269e85de973b017d1dad1 100644 (file)
 #ifndef _TESTINTERPKERNELUTILS_HXX_
 #define _TESTINTERPKERNELUTILS_HXX_
 
+#include "InterpKernelTestExport.hxx"
+
 #include <string>
 
 namespace INTERP_TEST
 {
 
-  std::string getResourceFile( const std::string& );
+  INTERPKERNELTEST_EXPORT std::string getResourceFile( const std::string& );
 
 } // namespace INTERP_TEST
 
index a560bef915d106a072b8d39562c31341c45ae28d..cdccb397f325f595ce150f670ca7671541bfd528 100644 (file)
@@ -444,7 +444,7 @@ MEDCouplingPointSet *MEDCouplingUMesh::buildPartOfMySelfNode(const int *start, c
       if(locMerge.size()==refLgth && fullyIn || locMerge.size()!=0 && !fullyIn)
         cellIdsKept.push_back(i);
     }
-  return buildPartOfMySelf(&cellIdsKept[0],&cellIdsKept[cellIdsKept.size()],true);
+  return buildPartOfMySelf(&cellIdsKept[0],&cellIdsKept[0]+cellIdsKept.size(),true);
 }
 
 MEDCouplingPointSet *MEDCouplingUMesh::buildBoundaryMesh(bool keepCoords) const
@@ -465,7 +465,7 @@ MEDCouplingPointSet *MEDCouplingUMesh::buildBoundaryMesh(bool keepCoords) const
     if(revDescIndxC[i+1]-revDescIndxC[i]==1)
       boundaryCells.push_back(i);
   revDescIndx->decrRef();
-  MEDCouplingPointSet *ret=meshDM1->buildPartOfMySelf(&boundaryCells[0],&boundaryCells[boundaryCells.size()],keepCoords);
+  MEDCouplingPointSet *ret=meshDM1->buildPartOfMySelf(&boundaryCells[0],&boundaryCells[0]+boundaryCells.size(),keepCoords);
   meshDM1->decrRef();
   return ret;
 }
index 51b8bc29e15adea0506dfd90a0bb72df4e82c8b5..74d17861eea256c7a8fe11a35939333bef82f475 100644 (file)
@@ -1569,7 +1569,21 @@ void MEDCouplingBasicsTest::testInterpolationCC()
     for ( map<int,double>::iterator s_v = res[i].begin(); s_v != res[i].end(); ++s_v)
     {
       sum += s_v->second;
-      vals.insert( precis * round( s_v->second / precis ));
+      double vvv;
+#ifdef WNT
+      double vv = s_v->second / precis;
+      if(vv>=0.0)
+       {
+         vvv = floor(vv+0.5);
+       }
+      else
+       {
+         vvv = ceil(vv-0.5);
+       }
+#else
+      vvv = round( s_v->second / precis );
+#endif
+      vals.insert( precis * vvv );
     }
   //cout << "tgt: " << i << " src: " << s_v->first << " - w: " << s_v->second << endl;
   CPPUNIT_ASSERT_DOUBLES_EQUAL( 1.0, sum, precis );
index 875fec6e6b72aa608a156527971eb4f54c6b0179..2b260fe9ded70a21c7c9ec44e3c457cb65d68f52 100755 (executable)
@@ -20,7 +20,7 @@ include $(top_srcdir)/adm_local/unix/make_common_starter.am
 
 bin_PROGRAMS= TestMEDCoupling
 
-TestMEDCoupling_CPPFLAGS=@CPPUNIT_INCLUDES@ -I$(srcdir)/.. -I$(srcdir)/../../INTERP_KERNEL/Bases -I$(srcdir)/../../INTERP_KERNELTest -I$(srcdir)/../../INTERP_KERNEL -I$(srcdir)/../../INTERP_KERNEL/Geometric2D
+TestMEDCoupling_CPPFLAGS=@CPPUNIT_INCLUDES@ @PTHREAD_CFLAGS@ -I$(srcdir)/.. -I$(srcdir)/../../INTERP_KERNEL/Bases -I$(srcdir)/../../INTERP_KERNELTest -I$(srcdir)/../../INTERP_KERNEL -I$(srcdir)/../../INTERP_KERNEL/Geometric2D
 
 TestMEDCoupling_LDFLAGS = @CPPUNIT_LIBS@ ../libmedcoupling.la ../../INTERP_KERNEL/libinterpkernel.la