32#include "../../base/base_uses.f90"
54 REAL(kind=
dp) :: temp_ext = 0.0_dp
61 CHARACTER(len=*),
PARAMETER,
PRIVATE :: modulen =
'barostat_types'
84 LOGICAL :: check, explicit
88 check = .NOT.
ASSOCIATED(barostat)
100 barostat%section => barostat_section
101 NULLIFY (barostat%npt)
104 barostat%temp_ext = simpar%temp_baro_ext
108 cell, work_section=barostat_section)
112 IF (.NOT.
ASSOCIATED(barostat%npt))
THEN
119 IF (.NOT. check)
THEN
120 CALL cp_abort(__location__,
"The screening of the components of "// &
121 "the virial is available only with the NPT_F ensemble!")
125 CALL cp_warn(__location__, &
126 "A barostat has been defined with an MD ensemble which does not support barostat! "// &
127 "Its definition will be ignored!")
143 IF (
ASSOCIATED(barostat))
THEN
144 IF (
ASSOCIATED(barostat%npt))
THEN
145 DEALLOCATE (barostat%npt)
147 NULLIFY (barostat%section)
148 DEALLOCATE (barostat)
Barostat structure: module containing barostat available for MD.
integer, parameter, public do_clv_y
integer, parameter, public do_clv_xyz
integer, parameter, public do_clv_yz
subroutine, public create_barostat_type(barostat, md_section, force_env, simpar, globenv)
...
subroutine, public release_barostat_type(barostat)
...
integer, parameter, public do_clv_xy
integer, parameter, public do_clv_geo_center
integer, parameter, public do_clv_z
integer, parameter, public do_clv_fix_point
integer, parameter, public do_clv_xz
integer, parameter, public do_clv_x
Handles all functions related to the CELL.
subroutine, public initialize_npt(simpar, globenv, npt_info, cell, work_section)
...
Lumps all possible extended system variables into one type for easy access and passing.
Interface for the force calculations.
recursive subroutine, public force_env_get(force_env, in_use, fist_env, qs_env, meta_env, fp_env, subsys, para_env, potential_energy, additional_potential, kinetic_energy, harmonic_shell, kinetic_shell, cell, sub_force_env, qmmm_env, qmmmx_env, eip_env, pwdft_env, globenv, input, force_env_section, method_name_id, root_section, mixed_env, nnp_env, embed_env, ipi_env)
returns various attributes about the force environment
Define type storing the global information of a run. Keep the amount of stored data small....
Defines the basic variable types.
integer, parameter, public dp
Type for storing MD parameters.
Type defining parameters related to the simulation cell.
wrapper to abstract the force evaluation of the various methods
contains the initially parsed file and the initial parallel environment
Simulation parameter type for molecular dynamics.