if(spaceDim!=2 && spaceDim!=3)
throw INTERP_KERNEL::Exception("MEDCouplingPointSet::findNodesOnLine : Invalid spacedim to be applied on this ! Must be equal to 2 or 3 !");
int nbOfNodes=getNumberOfNodes();
- int den=0.;
+ double den=0.;
for(int i=0;i<spaceDim;i++)
den+=vec[i]*vec[i];
double deno=sqrt(den);
double *tmp=new double[nbOfTuples*nbOfElsPerTuple];
try
{
- fillArrayWithPyListDbl(li,tmp,nbOfTuples*nbOfElsPerTuple,0.);
+ fillArrayWithPyListDbl(li,tmp,nbOfTuples*nbOfElsPerTuple,0);
}
catch(INTERP_KERNEL::Exception& e)
{
{
case 1:
{
- self->applyLin(1.,-val);
+ self->applyLin(1,-val);
return self;
}
case 2: