Both AMIMethod and mapNearestMethod are run-time selectable using the standard OpenFOAM constructor tables, they do not need a separate enumeration-based selection method which requires duplicate constructors and a lot of other clutter.
Both AMIMethod and mapNearestMethod are run-time selectable using the standard OpenFOAM constructor tables, they do not need a separate enumeration-based selection method which requires duplicate constructors and a lot of other clutter.