Read particle positions and nu from a formatted file with the following format:
FT 19.10.2022
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(particles), | intent(inout) | :: | this |
particles object which this PROCEDURE is a member of String containing the name of the formatted file containing the particle positions and, optionally, nu |
||
integer | :: | parts_pos_unit |
Unit number of the formatted file containing the particle positions and, optionally, nu |
|||
integer | :: | nline_in |
First line containing the relevant data |
|||
integer | :: | nline_fin |
Last line containing the relevant data |
|||
double precision, | intent(in) | :: | xmin |
Left boundary of the lattice |
||
double precision, | intent(in) | :: | xmax |
Right boundary of the lattice |
||
double precision, | intent(in) | :: | ymin |
Left boundary of the lattice |
||
double precision, | intent(in) | :: | ymax |
Right boundary of the lattice |
||
double precision, | intent(in) | :: | zmin |
Left boundary of the lattice |
||
double precision, | intent(in) | :: | zmax |
Right boundary of the lattice |
||
double precision, | intent(inout), | DIMENSION(:,:), ALLOCATABLE | :: | pos | ||
double precision, | intent(inout), | DIMENSION(:), ALLOCATABLE | :: | pvol |
Array storing the particle positions Array storing the particle volumes |
|
double precision, | intent(inout), | DIMENSION(:), ALLOCATABLE | :: | nu |
Array storing the particle baryon masses |
|
double precision, | intent(inout), | DIMENSION(:), ALLOCATABLE | :: | h |
Array storing the initial guess for the particle smoothing lengths |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | private | :: | a | ||||
logical, | private, | parameter | :: | debug | = | .FALSE. | |
character(len=:), | private, | ALLOCATABLE | :: | err_msg | |||
integer, | private | :: | ios | ||||
integer, | private | :: | npart_tmp | ||||
double precision, | private | :: | pvol_tmp | ||||
double precision, | private, | DIMENSION(:,:), ALLOCATABLE | :: | tmp_pos |