PLUTO
4.4-patch2
|
Writer for particles binary data in .dbl, .flt and ASCII in .tab (only for serial version) format . More...
#include "pluto.h"
Functions | |
void | Particles_WriteBinary (particleNode *PHeadRef, double dt_particles, Output *output, char *useless_fname) |
void Particles_WriteBinary | ( | particleNode * | PHeadRef, |
double | dt_particles, | ||
Output * | output, | ||
char * | useless_fname | ||
) |
Write particle data in single or double precision binary format. The binary file structure is:
<Header (ASCII) section> {field1, field2, ...}_p All fields are mapped from the particle structure into an array and thus converted to either single or double precision, depending on the function that is being called. Fields can be scalars or array: for each particle nelem indicates the number of elements written for each particle. The field order does not have to match the structure member order but it must be consistent with the sequence declared in Particles_SetOutput() function. Individual fields may be excluded by calling SetOutputVar() from ChangeOutputVar ().
[in] | PheadRef | Pointer to the Head Node of Particle List. |
[in] | dt_particles | Particle time step |
[in] | output | Pointer to output structure |