Pascal_doran |
June 17, 2010 20:41 |
Problem with log(scalar) operator
Hi all,
I try to use the log(scalar) operation in pre processing utility but I have the following error message:
Code:
~/OpenFOAM/ag74290-1.6.x/applications/utilities/preProcessing/vit_cond_init_4t_rand$ wmake
SOURCE=vit_cond_init_4t_rand.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/ag74290/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/ag74290/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/home/ag74290/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vit_cond_init_4t_rand.o
vit_cond_init_4t_rand.C: In function ‘int main(int, char**)’:
vit_cond_init_4t_rand.C:108: error: call of overloaded ‘log(Foam::scalar&)’ is ambiguous
/usr/include/bits/mathcalls.h:110: note: candidates are: double log(double)
/home/ag74290/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/dimensionedScalar.H:74: note: Foam::dimensionedScalar Foam::log(const Foam::dimensionedScalar&)
/home/ag74290/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/Scalar.H:236: note: Foam::doubleScalar Foam::log(Foam::doubleScalar)
/home/ag74290/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/Scalar.H:236: note: Foam::floatScalar Foam::log(Foam::floatScalar)
make: *** [Make/linux64GccDPOpt/vit_cond_init_4t_rand.o] Error 1
I can use it in simple C++ code but not in OpenFOAM 1.6.x
Any advice?
Pascal
|