#include <stdlib.h>
#include "../common.h"
#include "../gfft.h"
#include "../shear.h"
#include "../debug.h"
#include "../particles.h"
Define Documentation
Marker used to signify the end of a dump file (it is also an excellent year...).
#define OUTPUT_DUMP_VERSION 04 |
Version of the dump files read and written by this code.
Function Documentation
void output_dump |
( |
const struct Field |
fldi, |
|
|
const double |
t |
|
) |
| |
write a full restart dump
- Parameters:
-
fldi | Field structure pointing to the field needed to be savec |
t | current time of the simulation (will be stored in the dump file) |
void read_dump |
( |
struct Field |
fldo, |
|
|
double * |
t, |
|
|
char |
dump_file[] |
|
) |
| |
read a full restart dump
- Parameters:
-
fldo | Field structure in which the restart dump will be stored. |
t | time of the simulation, overwritten by this with the dump information. |
void read_field |
( |
FILE * |
handler, |
|
|
double complex * |
fldread |
|
) |
| |
read a field information from a restart dump file, taking care of the MPI broadcast
- Parameters:
-
handler | handler to an already opened restart dump filed |
fldread | Field structure in which the restart information will be stored |
void write_field |
( |
FILE * |
handler, |
|
|
double complex * |
fldwrite |
|
) |
| |
write a field information to a restart dump file, taking care of the MPI reduction
- Parameters:
-
handler | handler to an already opened restart dump filed |
fldwrite | Field structure pointing to the field needed to be saved |
Variable Documentation
Time when the last dump output was done
Time when the las snapshot output was done
Time when the last timevar output was done
Next snapshot output number