|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 18 ![]() |
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. |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 18 ![]() |
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 14:12 |
| primitive variable | jj | Main CFD Forum | 0 | November 6, 2006 10:33 |
| how to call the random function in Fluent | Yong | FLUENT | 3 | April 6, 2004 04:52 |
| conservative-primitive | ip | Main CFD Forum | 0 | November 10, 2003 08:22 |
| how to call C++ function from fortran with MPI | kenn | Main CFD Forum | 1 | February 17, 2002 21:39 |