31#include "./base/base_uses.f90"
37 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'mixed_environment'
53 SUBROUTINE mixed_init(mixed_env, root_section, para_env, force_env_section, &
60 LOGICAL,
INTENT(IN) :: use_motion_section
62 CHARACTER(len=*),
PARAMETER :: routinen =
'mixed_init'
68 CALL timeset(routinen, handle)
76 force_env_section=force_env_section, &
77 use_motion_section=use_motion_section)
79 CALL mixed_init_subsys(mixed_env, subsys, &
80 force_env_section, subsys_section)
97 SUBROUTINE mixed_init_subsys(mixed_env, subsys, force_env_section, &
104 CHARACTER(len=*),
PARAMETER :: routinen =
'mixed_init_subsys'
115 CALL timeset(routinen, handle)
116 NULLIFY (mixed_energy, local_molecules, local_particles, my_cell_ref)
117 particle_set => subsys%particles%els
118 atomic_kind_set => subsys%atomic_kinds%els
119 molecule_set => subsys%molecules%els
120 molecule_kind_set => subsys%molecule_kinds%els
121 my_cell_ref => subsys%cell_ref
131 particle_set=particle_set, &
132 local_particles=local_particles, &
133 molecule_kind_set=molecule_kind_set, &
134 molecule_set=molecule_set, &
135 local_molecules=local_molecules, &
136 force_env_section=force_env_section)
141 cell_ref=my_cell_ref, &
142 local_molecules=local_molecules, &
143 local_particles=local_particles, &
144 mixed_energy=mixed_energy)
149 CALL timestop(handle)
151 END SUBROUTINE mixed_init_subsys
Define the atomic kind types and their sub types.
Handles all functions related to the CELL.
Initialize a small environment for a particular calculation.
subroutine, public cp_subsys_create(subsys, para_env, root_section, force_env_section, subsys_section, use_motion_section, qmmm, qmmm_env, exclusions, elkind)
Creates allocates and fills subsys from given input.
types that represent a subsys, i.e. a part of the system
stores a lists of integer that are local to a processor. The idea is that these integers represent ob...
subroutine, public distribution_1d_release(distribution_1d)
releases the given distribution_1d
Distribution methods for atoms, particles, or molecules.
subroutine, public distribute_molecules_1d(atomic_kind_set, particle_set, local_particles, molecule_kind_set, molecule_set, local_molecules, force_env_section, prev_molecule_kind_set, prev_local_molecules)
Distribute molecules and particles.
Interface to the message passing library MPI.
subroutine, public allocate_mixed_energy(mixed_energy)
Allocate and/or initialise a mixed energy data structure.
subroutine, public set_mixed_env(mixed_env, atomic_kind_set, particle_set, local_particles, local_molecules, molecule_kind_set, molecule_set, cell_ref, mixed_energy, subsys, input, sub_para_env, cdft_control)
Set the MIXED environment.
initialize mixed environment
subroutine, public mixed_init(mixed_env, root_section, para_env, force_env_section, use_motion_section)
reads the input and database file for mixed
Define the molecule kind structure types and the corresponding functionality.
subroutine, public write_molecule_kind_set(molecule_kind_set, subsys_section)
Write a moleculeatomic kind set data set to the output unit.
Define the data structure for the molecule information.
Define the data structure for the particle information.
Provides all information about an atomic kind.
Type defining parameters related to the simulation cell.
represents a system: atoms, molecules, their pos,vel,...
structure to store local (to a processor) ordered lists of integers.
stores all the informations relevant to an mpi environment