![]() ![]() ![]() ![]() Next: Parameters Up: C Routines Previous: C Routines Contents VariablesAny routine using Cactus argument lists (for example, all routines called from the scheduler at time bins between CCTK_STARTUP and CCTK_SHUTDOWN), should include at the top of the file the header #include "cctk_Arguments.h" A Cactus macro CCTK_ARGUMENTS is defined for each thorn to contain
To pass the arguments to another routine in the same thorn, use the macro CCTK_PASS_CTOC in the calling routine, and again the macro CCTK_ARGUMENTS in the receiving routine. Note that you cannot use Cactus argument lists in routines scheduled at the CCTK_STARTUP and CCTK_SHUTDOWN time bins, because at this time no grid hierarchy exists.
![]() ![]() ![]() ![]() Next: Parameters Up: C Routines Previous: C Routines Contents |