ia_add_external_forces Subroutine

public subroutine ia_add_external_forces(num_externals, external_styles, external_params, coordinates, energy_external, forces, stress, ierr)

Calculates the force and energy due to an external field and adds to energy_external, 'forces, &stress`.

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: num_externals

Number of external fields

integer, intent(in), dimension(:):: external_styles

Styles for each field

real(kind=rp), intent(inout), dimension(:,:):: external_params

Parameters for each field, depending on style

real(kind=rp), intent(in), dimension(:,:):: coordinates
real(kind=rp), intent(out) :: energy_external
real(kind=rp), intent(inout), dimension(:,:):: forces
real(kind=rp), intent(inout), dimension(3,3):: stress
integer, intent(out) :: ierr

Called by

proc~~ia_add_external_forces~~CalledByGraph proc~ia_add_external_forces ia_add_external_forces proc~ia_calc_forces ia_calc_forces proc~ia_calc_forces->proc~ia_add_external_forces proc~calc_drift calc_drift proc~calc_drift->proc~ia_calc_forces proc~integrate_em integrate_em proc~integrate_em->proc~calc_drift proc~se_fval se_fval proc~se_fval->proc~calc_drift proc~bds_run bds_run proc~bds_run->proc~integrate_em proc~run run proc~run->proc~bds_run program~main main program~main->proc~run

Contents

None