#1455: CCTK_InterpGridArrays should give an error if an input variable index is -1
| Reporter: | Ian Hinder |
| Status: | wontfix |
| Milestone: | |
| Version: | development version |
| Type: | bug |
| Priority: | minor |
| Component: | Cactus |
Changes (by Roland Haas):
| status: | wontfix (was open) |
CCTK_InterpGridArrays takes as input a list of indices of Cactus variables to interpolate. If one of these indices is -1, no error is given, and meaningless data is returned for this variable (probably from another gridfunction). This can happen easily if you get the variable index using CCTK_VarIndex and make a spelling mistake in the variable name, and don't check the return value.
Keyword:
Comment (by Roland Haas):
The observed behaviour is the documented and intended behaviour. This has been a feature request for 7 years and no one spoke up for it. Closing as wontfix.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/1455/cctk_interpgridarrays-should-give-an-error