50 type(c_ptr),
intent(inout) :: out_coords
51 integer,
intent(in) :: natoms
52 class(space_t),
intent(in) :: space
53 real(real64),
intent(in) :: pos(:,:)
54 real(real64),
intent(in) :: vel(:,:)
55 real(real64),
intent(in) :: tot_forces(:,:)
56 integer,
intent(in) :: iter
58 integer :: iatom, idir
59 character(len=50) :: aux
60 real(real64) :: tmp(space%dim)
73 do idir = 1, space%dim
74 write(aux,
'(a2,i3,a1,i3,a1)')
'x(', iatom,
',', idir,
')'
79 do idir = 1, space%dim
80 write(aux,
'(a2,i3,a1,i3,a1)')
'v(', iatom,
',', idir,
')'
85 do idir = 1, space%dim
86 write(aux,
'(a2,i3,a1,i3,a1)')
'f(', iatom,
',', idir,
')'
125 type(c_ptr),
intent(inout) :: out_coords
126 integer,
intent(in) :: natoms
127 class(space_t),
intent(in) :: space
128 real(real64),
intent(in) :: pos(:,:)
129 real(real64),
intent(in) :: vel(:,:)
130 real(real64),
intent(in) :: tot_forces(:,:)
131 integer,
intent(in) :: iter
132 integer,
intent(in) :: which
134 integer,
parameter :: COORDINATES=1
135 integer,
parameter :: VELOCITIES=2
136 integer,
parameter :: FORCES=3
137 integer :: iatom, idir
138 character(len=50) :: aux
139 real(real64) :: tmp(space%dim)
152 do idir = 1, space%dim
155 write(aux,
'(a2,i3,a1,i3,a1)')
'x(', iatom,
',', idir,
')'
157 write(aux,
'(a2,i3,a1,i3,a1)')
'v(', iatom,
',', idir,
')'
159 write(aux,
'(a2,i3,a1,i3,a1)')
'f(', iatom,
',', idir,
')'
Writes to the corresponding file and adds one to the iteration. Must be called after write_iter_init(...
This module contains some common usage patterns of MPI routines.
logical function mpi_grp_is_root(grp)
Is the current MPI process of grpcomm, root.
type(mpi_grp_t), public mpi_world
this module contains the output system
subroutine, public td_write_coordinates(out_coords, natoms, space, pos, vel, tot_forces, iter)
subroutine, public td_write_sep_coordinates(out_coords, natoms, space, pos, vel, tot_forces, iter, which)
subroutine, public td_write_print_header_init(out)
subroutine, public td_write_print_header_end(out)
brief This module defines the class unit_t which is used by the unit_systems_oct_m module.
character(len=20) pure function, public units_abbrev(this)
This module defines the unit system, used for input and output.
type(unit_system_t), public units_out
Explicit interfaces to C functions, defined in write_iter_low.cc.