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

Error: problem with wordlist

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2014, 10:20
Default Error: problem with wordlist
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
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: 166
Rep Power: 14
maybee is on a distinguished road
Ok, got it


wordList ≠ wordlist
maybee is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with if statement CHARLES OpenFOAM Programming & Development 17 August 22, 2021 04:14
adding compressible option to ptot immortality OpenFOAM Programming & Development 13 June 15, 2015 16:00
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 08:13
FoamToVtk syntax for fields tehache OpenFOAM Post-Processing 1 October 10, 2007 11:29


All times are GMT -4. The time now is 12:24.