Documentation for module cp_external_control

Routines to handle the external control of CP2K

source: cp_external_control.F
Loading...

public Subroutines/Functions:

External manipulations during a run : when the .EXIT_$runtype command is sent the program stops at the level of $runtype when a general .EXIT command is sent the program is stopped at all levels (at least those that call this function) if the file WAIT exists, the program waits here till it disappears
set the communicator to an external source or destination, to send messages (e.g. intermediate energies during scf) or reveive commands (e.g. aborting the calculation)

SUBROUTINEexternal_control(should_stop, flag, globenv, target_time, start_time)

External manipulations during a run : when the .EXIT_$runtype command is sent the program stops at the level of $runtype when a general .EXIT command is sent the program is stopped at all levels (at least those that call this function) if the file WAIT exists, the program waits here till it disappears

Arguments:
LOGICAL,
INTENT(out)
:: should_stop ...
CHARACTER(*),
INTENT(in)
:: flag ...
OPTIONAL, POINTER
:: globenv ...
REAL(dp),
OPTIONAL
:: target_time ...
REAL(dp),
OPTIONAL
:: start_time ...

SUBROUTINEset_external_comm(comm, in_external_master_id, in_scf_energy_message_tag, in_exit_tag)

set the communicator to an external source or destination, to send messages (e.g. intermediate energies during scf) or reveive commands (e.g. aborting the calculation)

Arguments:
INTEGER,
INTENT(in)
:: comm ...
INTEGER,
INTENT(in)
:: in_external_master_id ...
INTEGER,
INTENT(in),
OPTIONAL
:: in_scf_energy_message_tag ...
INTEGER,
INTENT(in),
OPTIONAL
:: in_exit_tag ...