CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   2 function calls in one line?? (

deji October 23, 2010 11:31

2 function calls in one line??
Hey there Foamers. I am trying to figure out this line of code. I must say that I know what the line of code is doing, but what is it based upon? As in two functions are called in one line, boundaryMesh() and findPatchID() ??

label patchK = mesh.boundaryMesh().findPatchID("wallHot");



akidess October 25, 2010 03:53

mesh.boundaryMesh() returns an object (or a reference), and you can keep on working on that object. There is no rule to limit yourself to one call per line.

deji October 25, 2010 09:31

Thank you very much, it all makes sense now...Hooray

All times are GMT -4. The time now is 01:41.