Cactus reports missing thorns only at end of parfile

Issue #1951 open
Roland Haas created an issue

The current implementation of the the parfile parser reports thorns not present in the executable as originating from the last ActiveThorns line seens rather than from the one that actually mentions the thorn.

Example:

ActiveThorns = ThornThatDoesNotExist
ActiveThorns = IOUtil
ActiveThorns = AnotherThornThatDoesNotExist


$ cactus_sim parfile.par
Activating thorn Cactus...Success -> active implementation Cactus
Activation requested for
--->ThornThatDoesNotExist IOUtil AnotherThornThatDoesNotExist <---
Error: Thorn AnotherThornThatDoesNotExist not found
Error: Thorn ThornThatDoesNotExist not found
Activation failed - 2 errors in activation sequence
WARNING level 0 from host 8992d193.ncsa.illinois.edu process 0
  while executing schedule bin (none), routine (no thorn)::(no routine)
  in thorn Cactus, file /home/rhaas/postdoc/gr/cactus/Zelmani/configs/bns_all/build/Cactus/main/SetParams.c:93:
  -> CCTKi_SetParameter: Error at line 3 in parameter file parfile.par while activating thorns
WARNING level 0 from host 8992d193.ncsa.illinois.edu process 0
  while executing schedule bin (none), routine (no thorn)::(no routine)
  in thorn Cactus, file /home/rhaas/postdoc/gr/cactus/Zelmani/configs/bns_all/build/Cactus/main/SetParams.c:93:
  -> CCTKi_SetParameter: Error at line 3 in parameter file parfile.par while activating thorns
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 1.

Mostly this confusing if one wants to jump to the right location in the file based on the supplied line number.

Keyword:

Comments (1)

  1. Log in to comment