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
#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
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
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;
}
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 );
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