Snoopy Version 6.0 (Albert)
output_dump.c File Reference
#include <stdlib.h>
#include "../common.h"
#include "../gfft.h"
#include "../shear.h"
#include "../debug.h"
#include "../particles.h"
Include dependency graph for output_dump.c:

Defines

#define OUTPUT_DUMP_VERSION   04
#define DUMP_MARKER   1981

Functions

void write_field (FILE *handler, double complex *fldwrite)
void read_field (FILE *handler, double complex *fldread)
void output_dump (const struct Field fldi, const double t)
void read_dump (struct Field fldo, double *t, char dump_file[])

Variables

int noutput_flow
double lastoutput_time
double lastoutput_flow
double lastoutput_dump

Define Documentation

#define DUMP_MARKER   1981

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:
fldiField structure pointing to the field needed to be savec
tcurrent time of the simulation (will be stored in the dump file)

Here is the call graph for this function:

Here is the caller graph for this function:

void read_dump ( struct Field  fldo,
double *  t,
char  dump_file[] 
)

read a full restart dump

Parameters:
fldoField structure in which the restart dump will be stored.
ttime of the simulation, overwritten by this with the dump information.

Here is the call graph for this function:

Here is the caller graph for this function:

void read_field ( FILE *  handler,
double complex *  fldread 
)

read a field information from a restart dump file, taking care of the MPI broadcast

Parameters:
handlerhandler to an already opened restart dump filed
fldreadField structure in which the restart information will be stored

Here is the caller graph for this function:

void write_field ( FILE *  handler,
double complex *  fldwrite 
)

write a field information to a restart dump file, taking care of the MPI reduction

Parameters:
handlerhandler to an already opened restart dump filed
fldwriteField structure pointing to the field needed to be saved

Here is the caller graph for this function:


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