CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to call the primitive bcosb function (http://www.cfd-online.com/Forums/openfoam-solving/60627-how-call-primitive-bcosb-function.html)

luckyluke April 8, 2005 10:46

I am not familiar with the pr
 
I am not familiar with the programming art of OpenFOAM,yet. Today, I add a few lines in the 'main' function as follows:
1. scalar dalp,alp;
2. dalp=cos(alp);

But when I run 'wmake',the error is "call of overloaded `cos(Foam::scalar&)' is ambiguous".

What should I do? By the way,what are the main special features for OpenFOAM, compared to the original C/C++?

Thanks.

liu April 8, 2005 11:33

try dalp=Foam::cos(alp)
 
try dalp=Foam::cos(alp)


All times are GMT -4. The time now is 10:19.