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/)
-   -   Division: volScalarField1 : volScalarField2 (https://www.cfd-online.com/Forums/openfoam-programming-development/131403-division-volscalarfield1-volscalarfield2.html)

maybee March 14, 2014 04:48

Division: volScalarField1 : volScalarField2
 
hi,

I have some code like

Code:

ActualPhase -> volScalarFieldNEW() = (ActualPhase -> volScalarField1()) : (ActualPhase -> volScalarField2());
where "ActualPhase" is a pointer to a phase of type "phaseModel" and the methods like "volScalarFieldNEW()" return respective other fields of the phase.

Unfortunately I get the following error for the calculation of the new field:

/home/USER/Solver.H:164: error: expected ‘;’ before ‘:’ token

maybee March 14, 2014 05:25

:D Ok got it,

only had to use "/" instead of ":" which is obviously not defined in this context.

greetings maybee


All times are GMT -4. The time now is 08:16.