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

tmp - stands for 'true macro pain'?

Register Blogs Community New Posts Updated Threads Search

Like Tree45Likes
  • 6 Post By marupio
  • 13 Post By hjasak
  • 1 Post By marupio
  • 15 Post By hjasak
  • 1 Post By cgoniva
  • 3 Post By gschaider
  • 6 Post By Zeppo

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 19, 2010, 13:25
Default tmp - stands for 'true macro pain'?
  #1
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
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
marupio is offline   Reply With Quote

 

Tags
macro, refcount, tmp


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
Macro problem cfddummy Siemens 1 April 9, 2007 12:37


All times are GMT -4. The time now is 04:23.