}
}
- TVTKBasicType aModule = (TVTKBasicType)sqrt(aModules[0]);
+ TVTKBasicType aModule = (TVTKBasicType)sqrt((double)aModules[0]);
aDataValues[0] = aModule; // init Min
aDataValues[1] = aModule; // init Max
aDataValues[2] = aModule; // init Average
for (vtkIdType ig = 0; ig < aNbGauss; ig++) {
- aModule = (TVTKBasicType)sqrt(aModules[ig]);
+ aModule = (TVTKBasicType)sqrt((double)aModules[ig]);
aDataValues[0] = std::min(TVTKBasicType(aModule), aDataValues[0]); // Min
aDataValues[1] = std::max(TVTKBasicType(aModule), aDataValues[1]); // Max
libVISUEngine_la_CPPFLAGS= $(KERNEL_CXXFLAGS) $(MED_CXXFLAGS) $(CORBA_CXXFLAGS) $(CORBA_INCLUDES) \
-I$(top_builddir)/idl
-libVISUEngine_la_LDFLAGS= $(KERNEL_LDFLAGS) -lSalomeIDLKernel -lSalomeNS -lSalomeContainer $(CORBA_LIBS) \
+libVISUEngine_la_LDFLAGS= $(KERNEL_LDFLAGS) -lSalomeIDLKernel -lSALOMELocalTrace -lSalomeNS -lSalomeContainer $(CORBA_LIBS) \
$(top_builddir)/idl/libSalomeIDLVISU.la
{
vtkFloatingPointType v = theValue;
vtkFloatingPointType aDegree = 0.0;
- if (abs((long long)v) > 1)
- aDegree = (long long)log10(abs((long long)v)) + 1;
+ if (abs((long)v) > 1)
+ aDegree = (long)log10((double)abs((long)v)) + 1;
aDegree = theDecimals - aDegree;
- //printf("$$$ 1 v = %.20g , aDegree = %lld \n", v, (long long)aDegree);
+ //printf("$$$ 1 v = %.20g , aDegree = %lld \n", v, (long)aDegree);
aDegree = pow(10, aDegree);
- v = ((vtkFloatingPointType)((long long)(v * aDegree))) / aDegree;
- //printf("$$$ 2 v = %.20g , aDegree = %lld \n", v, (long long)aDegree);
+ v = ((vtkFloatingPointType)((long)(v * aDegree))) / aDegree;
+ //printf("$$$ 2 v = %.20g , aDegree = %lld \n", v, (long)aDegree);
return v;
}