|
[Sponsors] |
March 19, 2015, 05:16 |
operator overloading ==
|
#1 |
New Member
Join Date: Oct 2014
Posts: 9
Rep Power: 12 |
Hi Foamer
For interFoam solver, in pEqn.H, line 62 p == p_rgh + rho*gh why it use == , but not = ?? can anybody explain this? thanks a lot! xiaofishnus |
|
March 20, 2015, 03:52 |
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
operator== enforces assignment, even if the path field is of eg. fixedValue type, which is not changed by operator=
Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
February 2, 2023, 15:08 |
ambiguous overload
|
#3 |
New Member
Sina
Join Date: Feb 2023
Posts: 1
Rep Power: 0 |
Hello
I need to print a parameter in unsigned long long format. I face overloading error. I would appreciate it if you could please let me know how I could solve it inside OpenFOAM. unsigned long long b; Info<<"after operations inside code b is "<<b<<nl; p, li { white-space: pre-wrap; } Best wishes, Sina |
|
Tags |
interfoam, operator overloading, peqn.h |
|
|