18#include "./base/base_uses.f90"
26 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'cp_realspace_grid_openpmd'
54 INTEGER,
INTENT(IN) :: unit_nr
55 CHARACTER(*),
INTENT(IN),
OPTIONAL :: title
57 REAL(kind=
dp),
DIMENSION(:),
OPTIONAL :: zeff
58 INTEGER,
DIMENSION(:),
OPTIONAL,
POINTER :: stride
59 LOGICAL,
INTENT(IN),
OPTIONAL :: zero_tails, silent, mpi_io
62 INTEGER,
ALLOCATABLE,
DIMENSION(:) :: particles_z
63 REAL(kind=
dp),
ALLOCATABLE,
DIMENSION(:, :) :: particles_r
66 NULLIFY (my_particles)
67 my_particles => particles
68 IF (
ASSOCIATED(my_particles))
THEN
69 n = my_particles%n_els
70 ALLOCATE (particles_z(n))
71 ALLOCATE (particles_r(3, n))
74 particles_r(:, i) = my_particles%els(i)%r(:)
78 particles_z=particles_z, particles_r=particles_r, &
79 particles_zeff=zeff, &
80 stride=stride, zero_tails=zero_tails, &
81 silent=silent, mpi_io=mpi_io)
84 stride=stride, zero_tails=zero_tails, &
85 silent=silent, mpi_io=mpi_io)
Define the atomic kind types and their sub types.
subroutine, public get_atomic_kind(atomic_kind, fist_potential, element_symbol, name, mass, kind_number, natom, atom_list, rcov, rvdw, z, qeff, apol, cpol, mm_radius, shell, shell_active, damping)
Get attributes of an atomic kind.
A wrapper around pw_to_openpmd() which accepts particle_list_type.
subroutine, public cp_pw_to_openpmd(pw, unit_nr, title, particles, zeff, stride, zero_tails, silent, mpi_io)
...
Defines the basic variable types.
integer, parameter, public dp
represent a simple array based list of the given type
Generate Gaussian cube files.
subroutine, public pw_to_openpmd(pw, unit_nr, title, particles_r, particles_z, particles_zeff, stride, zero_tails, silent, mpi_io)
...
represent a list of objects