CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Error: problem with wordlist (https://www.cfd-online.com/Forums/openfoam-programming-development/130874-error-problem-wordlist.html)

maybee March 5, 2014 09:20

Error: problem with wordlist
 
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 March 5, 2014 09:39

Ok, got it :D


wordList ≠ wordlist


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