Pre-registers a timer name without starting it.
MPI reports aggregate timers by index. If a timer is created only on a subset of ranks, later timer indices can differ across ranks and the collective report becomes misleading. Registering the common timers on every rank in the same order keeps flat timing rows aligned even for conditional kernels such as chemistry on empty ranks.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
subroutine profiler_register_timer(name) character(len=*), intent(in) :: name integer :: idx if (.not. profiling_enabled) return idx = find_or_create_timer(name) end subroutine profiler_register_timer