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

tmp also defined as variable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2020, 11:17
Default tmp also defined as variable
  #1
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
I just find it curious that the compiler does not complain about my use of a variable

volScalarField tmp

since there is already a template class tmp<Type>

defined in openFoam

Regards to all
celestial is offline   Reply With Quote

Old   January 21, 2020, 15:51
Default
  #2
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
This question was maybe a tad too difficult but don't worry: I will simply change tmp to another name that will not conflict with any type or name openFoam is using. It's no big deal. I was just curious.
celestial is offline   Reply With Quote

Reply


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
[Workbench] Ansys error: The environment variable SAM_EXE is not defined tarabaharan ANSYS Meshing & Geometry 0 August 4, 2016 02:17
OpenFoam-1.6-ext Allwmake compilation error - one last barrier Pat84 OpenFOAM Installation 15 July 25, 2012 21:49
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
Problems with additional variable Krishna Premi CFX 1 October 29, 2007 08:19
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


All times are GMT -4. The time now is 18:57.