]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Additional cross-platform compatibility Linux/Windows
authorvsr <vsr@opencascade.com>
Fri, 26 Feb 2010 08:49:39 +0000 (08:49 +0000)
committervsr <vsr@opencascade.com>
Fri, 26 Feb 2010 08:49:39 +0000 (08:49 +0000)
src/MEDCoupling/MEDCouplingExtrudedMesh.cxx
src/MEDCoupling/MEDCouplingUMesh.cxx

index 72e2a25d4f85f72d81218f26e796cd319af3f93b..a286dc69bee5e76f3f5e08f617038b7c74d7211f 100644 (file)
@@ -91,8 +91,8 @@ void MEDCouplingExtrudedMesh::getBoundingBox(double *bbox) const
   std::fill(bbox1DMax,bbox1DMax+3,-(std::numeric_limits<double>::max()));
   for(int i=0;i<nbOfNodes1D;i++)
     {
-               std::transform(nodes1D+3*i,nodes1D+3*(i+1),bbox1DMin,bbox1DMin,std::ptr_fun(std::min<double>));
-               std::transform(nodes1D+3*i,nodes1D+3*(i+1),bbox1DMax,bbox1DMax,std::ptr_fun(std::max<double>));
+      std::transform(nodes1D+3*i,nodes1D+3*(i+1),bbox1DMin,bbox1DMin,static_cast<const double& (*)(const double&, const double&)>(std::min<double>));
+      std::transform(nodes1D+3*i,nodes1D+3*(i+1),bbox1DMax,bbox1DMax,static_cast<const double& (*)(const double&, const double&)>(std::max<double>));
     }
   std::transform(bbox1DMax,bbox1DMax+3,bbox1DMin,tmp,std::minus<double>());
   int id=std::max_element(tmp,tmp+3)-tmp;
index 7d678c09dc850f18637c9f6e8025aab8d3d77b36..86ad3e08e42748a3fd86ee7565179dbf9a939cff 100644 (file)
@@ -843,7 +843,7 @@ MEDCouplingFieldDouble *MEDCouplingUMesh::getMeasureField(bool isAbs) const
 
 MEDCouplingFieldDouble *MEDCouplingUMesh::getMeasureFieldOnNode(bool isAbs) const
 {
-  MEDCouplingFieldDouble *tmp=getMeasureField(abs);
+  MEDCouplingFieldDouble *tmp=getMeasureField(isAbs);
   std::string name="MeasureOnNodeOfMesh_";
   name+=getName();
   int nbNodes=getNumberOfNodes();
@@ -1020,7 +1020,7 @@ MEDCouplingUMesh *MEDCouplingUMesh::mergeUMeshes(const MEDCouplingUMesh *mesh1,
   DataArrayInt *nodalIndex=DataArrayInt::aggregate(mesh1->getNodalConnectivityIndex(),
                                                    mesh2->getNodalConnectivityIndex(),1);
   std::transform(nodalIndex->getConstPointer()+pos+1,nodalIndex->getConstPointer()+end,
-                 nodalIndex->getPointer()+pos+1,std::bind2nd(std::plus<double>(),delta));
+                 nodalIndex->getPointer()+pos+1,std::bind2nd(std::plus<int>(),delta));
   DataArrayInt *newNodal2=mesh2->getNodalConnectivity()->deepCopy();
   delta=mesh1->getNumberOfNodes();
   const int *nI2=mesh2->getNodalConnectivityIndex()->getConstPointer();