|
[Sponsors] |
January 19, 2010, 13:25 |
tmp - stands for 'true macro pain'?
|
#1 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
I've never seen such a chopped-up macro-heavy series of classes before. Just trying to figure out DimensionedScalarField is a nightmare for me (and very humbling).
What is tmp? It looks like a wrapper class for a field, which redirects its pointer on destruction, provided refCount says it's okay. Is this some sort of sneaky way of ensuring local objects survive function exits to prevent copying on return? Does OpenFOAM get much more complicated than this? I'm not the most experienced programmer out there... -Dave |
|
Tags |
macro, refcount, tmp |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro problem | cfddummy | Siemens | 1 | April 9, 2007 12:37 |