|
[Sponsors] |
|
May 7, 2014, 23:31 |
pow() function not work.
|
#1 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 839
Rep Power: 17 |
Hi guys,
Code:
b[0] = pow(alpha[1]*alpha[2],2); b[1] = pow(alpha[3]*alpha[4],2.0); Code:
C.C: In function ‘int main(int, char**)’: C.C:90:25: error: call of overloaded ‘pow(double&, double)’ is ambiguous How should I do. Thanks. |
|
May 8, 2014, 02:52 |
|
#2 |
Senior Member
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 14 |
Have you give a try with : foam:ow(alpha[1]*alpha[2],scalar(2))
|
|
May 8, 2014, 21:24 |
|
#3 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 839
Rep Power: 17 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 10:20 |
Fluent otimization: how objective function work | laxwendrofzx9r | Fluent UDF and Scheme Programming | 0 | August 13, 2012 07:49 |
Fluent otimization: how objective function work | laxwendrofzx9r | FLUENT | 0 | August 13, 2012 07:48 |
<unresolved overloaded function type> - How to work with that | bastil | OpenFOAM Running, Solving & CFD | 1 | April 14, 2010 03:57 |
OpenFoam 14 installation problem | gfcoppola | OpenFOAM Installation | 20 | November 2, 2007 13:38 |