CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   introducing an if statement in a solver (https://www.cfd-online.com/Forums/openfoam-programming-development/210583-introducing-if-statement-solver.html)

sinatahmooresi October 30, 2018 07:42

introducing an if statement in a solver
 
Hi Foamers!
I want to make a if statement with < and > :
if ( a> ...)

do...
else
do...
but the error is concerned about "<" and ">" and value which I introduced for comparison :a> 0 (the zero)! how come?
I am doing this in the .C of my solver.

the last part of the error is :
' Foam:: tmp<Foam::GeomtericField<double, Foam::fvpatchField, Foam::volMesh> >' is not derived from 'const Foam::Pair <Type>'
Regards Sina


All times are GMT -4. The time now is 22:11.