Add a new functor for accessing related info
Adds a new functor, AutoRelatedInfo
(RELATEDINFO
) that provides access to RelatedInfo without having to explicitly specify the TES location of the information table.
Instead, a rule is given that is used to transform the location of the object that the functor is acting on, into the location for the table.
Example usage would be
RELATEDINFO( 'P2ConeVar1','CONEANGLE',-1000.,'Particles' )
Which would take for each Particle its acting on, its TES location, replace Particles
with P2ConeVar1
and use that as the table location to access the information on CONEANGLE
.
Note the third and fourth arguments have default values as defined above, so the following is exactly equivalent
RELATEDINFO( 'P2ConeVar1', 'CONEANGLE' )
This functor greatly simplifies configuration in situations where the above logic can be applied, and where the location of the Particles the functor is acting on may not be easily known, for instance if the functor is acting on Particles in a filtered TES location, containing particles from many different original TES locations.