mimic_collect_energies Subroutine

public subroutine mimic_collect_energies(subsystems, energy)

wrapper to request MM energies

Arguments

TypeIntentOptionalAttributesName
type(subsystem_type), intent(inout), dimension(:):: subsystems

array of subsystems associated with client codes

real(kind=dp), intent(out) :: energy

energy from external programs


Contents


Source Code

subroutine mimic_collect_energies(subsystems, energy)

    !> array of subsystems associated with client codes
    type(subsystem_type), dimension(:), intent(inout) :: subsystems

    !> energy from external programs
    real(dp), intent(out) :: energy

    call timer_start("mimic_collect_energies")

    call communicator%gather_energies(energy, subsystems)

    call timer_stop

end subroutine mimic_collect_energies