|
[Sponsors] |
Difference: A.internalField()[celli] and A[celli] ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 29, 2012, 03:44 |
Difference: A.internalField()[celli] and A[celli] ?
|
#1 |
Senior Member
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 279
Rep Power: 21 |
Hi,
When accessing cell values in a volScalarField, it seems that both A.internalField()[celli] and A[celli] does what I want. I can both read values and set values. I've seen that both practices are found in the source code. The thermo libraries usually creates scalarField references to internalField, and then use them, hence they use the first method (A.internalField()[celli]), while other classes use A[celli]. Does anyone know what the difference is? Is there any, and are there any performance related differences? Regards, Kalle |
|
|
|