How to treat autoPtr<psiChemistryModel> ?
Hello together,
I have a question about a certain line of createFields.H of chemFoam: http://foam.sourceforge.net/docs/cpp/a03249_source.html Code:
00026 Info<< nl << "Reading thermophysicalProperties" << endl; However, in line 29, what is pChemistry(); doing ? Actually, what I want to do is: create a list of autoPtr<psiChemistryModel> and then perform line 29 for each entry of that list. Here is my code which does not work: Code:
// this part works Code:
fluid/createFluidFields.H:108: error: no match for call to ‘(Foam::psiChemistryModel) ()’ |
Okay, found it. Just had to look at the implementation of
PtrList, List and psiChemistryModel :o |
All times are GMT -4. The time now is 00:32. |