GEOS icon indicating copy to clipboard operation
GEOS copied to clipboard

Consistent use of 'NodeManager' or `arrayView2d< real64 const, nodes::REFERENCE_POSITION_USD > const & X`

Open AntoineMazuyer opened this issue 4 years ago • 2 comments

Some methods are using NodeManager as input, some are using arrayView2d< real64 const, nodes::REFERENCE_POSITION_USD > const & X

e.g.

https://github.com/GEOSX/GEOSX/blob/b1224b9d6f190bb6f44025c687b3c46f18f36c28/src/coreComponents/mesh/FaceManager.hpp#L73-L79

We need to be coherent, I think for the user-developper, giving a NodeManager is simpler.

AntoineMazuyer avatar May 01 '20 09:05 AntoineMazuyer

Well SortFaceNodes is called inside a forAll< paralleHostPolicy > so I don't think we should be calling nodeManager->referencePosition inside a loop. I would argue that since SortAllFaceNodes only needs the reference position from the NodeManager it's better to only pass that instead of giving the method access to the entire NodeManager.

corbett5 avatar May 14 '20 04:05 corbett5

This is a legacy piece of code. It should be removed.

rrsettgast avatar May 14 '20 05:05 rrsettgast