CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Passing parameters from dictionaries (http://www.cfd-online.com/Forums/openfoam-solving/58768-passing-parameters-dictionaries.html)

ngj June 29, 2008 11:25

drag.H:3: error: `dragPatches'
 
drag.H:3: error: `dragPatches' was not declared in this scope
drag.H:7: error: `dragDirection' was not declared in this scope

As dragPatches and dragDirection is declared inside the if-scope they do not exist outside these scopes. If you want to use the variables outside the if-sentence, then you need to declare them outside and set the value inside the if-sentence.

- Niels


All times are GMT -4. The time now is 09:23.