CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Passing parameters from dictionaries

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   June 29, 2008, 11:25
Default drag.H:3: error: `dragPatches'
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,629
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
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
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
RhoSimpleFoam tutorial test case system dictionaries flavio_pergolesi OpenFOAM Running, Solving & CFD 2 April 17, 2014 08:41
Using wildcards regexes in dictionaries chtrapp OpenFOAM Pre-Processing 4 July 18, 2012 11:37
Accessing fields and dictionaries from within a BC implementation alberto OpenFOAM Running, Solving & CFD 12 December 6, 2011 10:30
Thermo dictionaries grtabor OpenFOAM Running, Solving & CFD 0 July 7, 2005 13:07
Dictionaries written by FoamX Mattijs Janssens (Mattijs) OpenFOAM Pre-Processing 1 January 3, 2005 14:44

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