|
[Sponsors] |
April 8, 2005, 10:46 |
I am not familiar with the pr
|
#1 |
Member
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 17 |
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. |
|
April 8, 2005, 11:33 |
try dalp=Foam::cos(alp)
|
#2 |
Senior Member
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 17 |
try dalp=Foam::cos(alp)
__________________
Xiaofeng Liu, Ph.D., P.E., Assistant Professor Department of Civil and Environmental Engineering Penn State University 223B Sackett Building University Park, PA 16802 Web: http://water.engr.psu.edu/liu/ |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Primitive Types | jsquat | OpenFOAM | 0 | June 18, 2007 13:12 |
primitive variable | jj | Main CFD Forum | 0 | November 6, 2006 09:33 |
how to call the random function in Fluent | Yong | FLUENT | 3 | April 6, 2004 03:52 |
conservative-primitive | ip | Main CFD Forum | 0 | November 10, 2003 07:22 |
how to call C++ function from fortran with MPI | kenn | Main CFD Forum | 1 | February 17, 2002 20:39 |