|
[Sponsors] |
PtrList error while trying to define an array of volScalarFields |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 13, 2012, 17:49 |
PtrList error while trying to define an array of volScalarFields
|
#1 | ||||
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16 |
Hi all,
I am trying to implement a model where I need to solve for a number of (3 or 6, depending on the case setup) transport equations. I thought of using a PtrList for this. I followed what is being done in Quote:
However, when I add the line Quote:
Quote:
Quote:
Any ideas what is wrong here? |
|||||
February 15, 2012, 13:27 |
|
#2 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16 |
Anyone?
I don't understand why the copy constructor is being called at all. It seems that the same method works in some classes, and that makes it very confusing. |
|
February 15, 2012, 18:26 |
|
#3 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16 |
SOLVED.
I was trying to create a new instance of the object with "new", and that was the problem. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installing OF 1.6 on Mac OS X | gschaider | OpenFOAM Installation | 129 | June 19, 2010 10:23 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |
REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 09:23 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |
UDF FOR UNSTEADY TIME STEP | mayur | FLUENT | 3 | August 9, 2006 11:19 |