34#include "../base/base_uses.f90"
38 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'cell_opt'
54 CHARACTER(len=*),
PARAMETER :: routinen =
'cp_cell_opt'
56 INTEGER :: handle, step_start_val
57 REAL(kind=
dp),
DIMENSION(:),
POINTER :: x0
63 CALL timeset(routinen, handle)
65 cpassert(
ASSOCIATED(force_env))
66 cpassert(
ASSOCIATED(globenv))
67 NULLIFY (gopt_param, gopt_env, x0)
68 root_section => force_env%root_section
73 CALL gopt_f_create(gopt_env, gopt_param, force_env=force_env, globenv=globenv, &
74 geo_opt_section=geo_section)
79 CALL cp_iterate(logger%iter_info, iter_nr=step_start_val)
88 DEALLOCATE (gopt_param)
performs CELL optimization
subroutine, public cp_cell_opt(force_env, globenv)
Main driver to perform geometry optimization.
various routines to log and control the output. The idea is that decisions about where to log should ...
type(cp_logger_type) function, pointer, public cp_get_default_logger()
returns the default logger
routines to handle the output, The idea is to remove the decision of wheter to output and what to out...
subroutine, public cp_add_iter_level(logger, level_name, n_rlevel_new)
Adds an iteration level.
subroutine, public cp_iterate(iteration_info, last, iter_nr, increment, iter_nr_out)
adds one to the actual iteration
subroutine, public cp_rm_iter_level(logger, level_name, n_rlevel_att)
Removes an iteration level.
Interface for the force calculations.
performs geometry optimization
subroutine, public gopt_dispatch_optimizer(force_env, globenv, gopt_param, gopt_env, geo_section, x0)
dispatch to the selected optimizer (BFGS, L-BFGS or CG)
Define type storing the global information of a run. Keep the amount of stored data small....
contains a functional that calculates the energy and its derivatives for the geometry optimizer
subroutine, public gopt_f_create_x0(gopt_env, x0)
returns the value of the parameters for the actual configuration
contains a functional that calculates the energy and its derivatives for the geometry optimizer
recursive subroutine, public gopt_f_create(gopt_env, gopt_param, force_env, globenv, geo_opt_section, eval_opt_geo)
...
recursive subroutine, public gopt_f_release(gopt_env)
...
contains typo and related routines to handle parameters controlling the GEO_OPT module
subroutine, public gopt_param_read(gopt_param, gopt_section, type_id)
reads the parameters of the geopmetry optimizer
Defines the basic variable types.
integer, parameter, public dp
type of a logger, at the moment it contains just a print level starting at which level it should be l...
wrapper to abstract the force evaluation of the various methods
contains the initially parsed file and the initial parallel environment
calculates the potential energy of a system, and its derivatives