CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Passing parameters from dictionaries

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2008, 12:25
Default drag.H:3: error: `dragPatches'
  #1
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
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

Reply


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 Off
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 09:41
Using wildcards regexes in dictionaries chtrapp OpenFOAM Pre-Processing 4 July 18, 2012 12: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 14: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 16:48.