CASL / Futility

VERA Fortran Utilities
Other
44 stars 20 forks source link

Move PolygonType centroid and area calculations into their own routines #234

Closed aarograh closed 4 years ago

aarograh commented 4 years ago

This is useful for when the PolygonType is modified by an external code and these values should be updated without completely clearing and reinitializing the object.

aarograh commented 4 years ago

The specific use-case that necessitates this change is rotation of GenPinMeshType objects in MPACT for BWR calculations. The vertices and edges were being rotated, but there was no way to update the centroid, which is needed for the CTF coupling.

aarograh commented 4 years ago

All I did was pull logic out of set into 2 new routines. Those routines are both called from set, which is already unit tested. Nothing about the functionality actually changed here in Futility.