29#include "./base/base_uses.f90"
35 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'embed_environment'
51 SUBROUTINE embed_init(embed_env, root_section, para_env, force_env_section, &
58 LOGICAL,
INTENT(IN) :: use_motion_section
60 CHARACTER(len=*),
PARAMETER :: routinen =
'embed_init'
66 CALL timeset(routinen, handle)
74 force_env_section=force_env_section, &
75 use_motion_section=use_motion_section)
77 CALL embed_init_subsys(embed_env, subsys, &
78 force_env_section, subsys_section)
94 SUBROUTINE embed_init_subsys(embed_env, subsys, force_env_section, &
101 CHARACTER(len=*),
PARAMETER :: routinen =
'embed_init_subsys'
111 CALL timeset(routinen, handle)
112 NULLIFY (local_molecules, local_particles, my_cell_ref)
113 particle_set => subsys%particles%els
114 atomic_kind_set => subsys%atomic_kinds%els
115 molecule_set => subsys%molecules%els
116 molecule_kind_set => subsys%molecule_kinds%els
117 my_cell_ref => subsys%cell_ref
124 particle_set=particle_set, &
125 local_particles=local_particles, &
126 molecule_kind_set=molecule_kind_set, &
127 molecule_set=molecule_set, &
128 local_molecules=local_molecules, &
129 force_env_section=force_env_section)
134 cell_ref=my_cell_ref, &
135 local_molecules=local_molecules, &
136 local_particles=local_particles)
141 CALL timestop(handle)
143 END SUBROUTINE embed_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.
initialize embed environment: clone of the mixed environment
subroutine, public embed_init(embed_env, root_section, para_env, force_env_section, use_motion_section)
reads the input and database file for embedding
subroutine, public set_embed_env(embed_env, atomic_kind_set, particle_set, local_particles, local_molecules, molecule_kind_set, molecule_set, cell_ref, subsys, input, sub_para_env)
...
Interface to the message passing library MPI.
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.
Embedding environment type.
stores all the informations relevant to an mpi environment