public function tem_timeControl_globalTriggered(me, now, comm) result(hasTriggered)
This routine checks globally if the control has triggered.
It takes care of communication as well.
A reduction of the trigger status might be needed, depending on the time
definitions in the trigger.
This communication is done with the MPI communicator comm, and all
processes calling this routine should be members of comm.
The communication is only done, if necessary.
If the trigger became active since the last check or update, the triggered
argument will be set to true.
If delay_check is true, the communication is done with a nonblocking
allreduce, which performs the check essentially on the previous check
interval, rather than the current one.
If this should be done in combination with other status communications to
avoid unnecessary synchronisation points, the separate routines
tem_timeControl_triggered and tem_timeControl_update have to be used
instead.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.