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

meaning of "&" in Openfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2022, 16:42
Default meaning of "&" in Openfoam
  #1
Member
 
Join Date: Dec 2020
Posts: 38
Rep Power: 5
ulugbey is on a distinguished road
Hello,


Could you explain what does expression "&" exactly mean, e.g in the following code:



const dictionary& alphaControls = mesh.solverDict(alpha1.name())


Kind regards
ulugbey is offline   Reply With Quote

Old   August 25, 2022, 13:34
Default
  #2
Senior Member
 
Join Date: Oct 2017
Posts: 133
Rep Power: 9
Krapf is on a distinguished road
The ampersand defines a reference in C++. See https://www.learncpp.com/cpp-tutoria...ue-references/ and the following sections.
Krapf is offline   Reply With Quote

Reply

Tags
openfoam7, programming


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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 16:54
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 12:50
OpenFOAM Training Beijing 22-26 Aug 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 May 3, 2016 05:57


All times are GMT -4. The time now is 15:16.