CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Error: problem with wordlist

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 5, 2014, 10:20
Default Error: problem with wordlist
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 6
maybee is on a distinguished road
hi,

I have about the following code:

Code:
wordList MyList  //works fine
    (
         properties.lookup("MyListe")
    );
.
.
.
wordlist Names (fluid.phases().toc());  //does not work - error 
                                     //fluid.phases() returns a PtrDictionary<phaseModel> and toc() a wordlist
Unfortunately I get an error for the second wordlist shown above:

Quote:
Values.H: In function ‘int main(int, char**)’:
Values.H:110:1: error: ‘wordlist’ was not declared in this scope
Values.H:110:10: error: expected ‘;’ before ‘Names’
Values.H:111:18: error: ‘Names’ was not declared in this scope
What am I doing wrong here?
maybee is offline   Reply With Quote

Old   March 5, 2014, 10:39
Default
  #2
Senior Member
 
Join Date: Jan 2012
Posts: 159
Rep Power: 6
maybee is on a distinguished road
Ok, got it


wordList ≠ wordlist
maybee is offline   Reply With Quote

Reply

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
adding compressible option to ptot immortality OpenFOAM Programming & Development 13 June 15, 2015 15:00
Help with if statement CHARLES OpenFOAM Programming & Development 15 September 18, 2013 18:29
Initialize a volScalarFiedl with wordList of patch types tgillebaart OpenFOAM Programming & Development 0 February 9, 2011 09:34
add entry to wordList peterwy OpenFOAM Programming & Development 3 October 4, 2010 07:13
FoamToVtk syntax for fields tehache OpenFOAM Post-Processing 1 October 10, 2007 10:29


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