|
[Sponsors] |
August 24, 2022, 16:42 |
meaning of "&" in Openfoam
|
#1 |
Member
Join Date: Dec 2020
Posts: 38
Rep Power: 5 |
Hello,
Could you explain what does expression "&" exactly mean, e.g in the following code: const dictionary& alphaControls = mesh.solverDict(alpha1.name()) Kind regards |
|
August 25, 2022, 13:34 |
|
#2 |
Senior Member
Join Date: Oct 2017
Posts: 133
Rep Power: 9 |
The ampersand defines a reference in C++. See https://www.learncpp.com/cpp-tutoria...ue-references/ and the following sections.
|
|
Tags |
openfoam7, programming |
|
|
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 |