49 type(c_ptr),
intent(inout) :: out_coords
50 integer,
intent(in) :: natoms
51 class(space_t),
intent(in) :: space
52 real(real64),
intent(in) :: pos(:,:)
53 real(real64),
intent(in) :: vel(:,:)
54 real(real64),
intent(in) :: tot_forces(:,:)
55 integer,
intent(in) :: iter
57 integer :: iatom, idir
58 character(len=50) :: aux
59 real(real64) :: tmp(space%dim)
72 do idir = 1, space%dim
73 write(aux,
'(a2,i0,a1,i1,a1)')
'x(', iatom,
',', idir,
')'
78 do idir = 1, space%dim
79 write(aux,
'(a2,i0,a1,i1,a1)')
'v(', iatom,
',', idir,
')'
84 do idir = 1, space%dim
85 write(aux,
'(a2,i0,a1,i1,a1)')
'f(', iatom,
',', idir,
')'
124 type(c_ptr),
intent(inout) :: out_coords
125 integer,
intent(in) :: natoms
126 class(space_t),
intent(in) :: space
127 real(real64),
intent(in) :: pos(:,:)
128 real(real64),
intent(in) :: vel(:,:)
129 real(real64),
intent(in) :: tot_forces(:,:)
130 integer,
intent(in) :: iter
131 integer,
intent(in) :: which
133 integer,
parameter :: COORDINATES=1
134 integer,
parameter :: VELOCITIES=2
135 integer,
parameter :: FORCES=3
136 integer :: iatom, idir
137 character(len=50) :: aux
138 real(real64) :: tmp(space%dim)
151 do idir = 1, space%dim
154 write(aux,
'(a2,i0,a1,i1,a1)')
'x(', iatom,
',', idir,
')'
156 write(aux,
'(a2,i0,a1,i1,a1)')
'v(', iatom,
',', idir,
')'
158 write(aux,
'(a2,i0,a1,i1,a1)')
'f(', iatom,
',', idir,
')'
Writes to the corresponding file and adds one to the iteration. Must be called after write_iter_init(...
type(mpi_grp_t), public mpi_world
this module contains the low-level part of 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.
subroutine, public write_iter_header(out, string)
subroutine, public write_iter_string(out, string)