1
// (c) 2002 Johan Hoffman & Anders Logg, Chalmers Finite Element Center.
2
// Licensed under the GNU GPL Version 2.
9
#include <kw_constants.h>
11
#include <DataInfo.hh>
14
#include <FileType.hh>
19
Output(int no_data, ...);
20
Output(int no_data, va_list aptr);
21
Output(const char *filename, int no_data, ...);
25
/// Set label for data
26
void SetLabel(int i, const char *name, const char *label);
27
/// Add frame to the file
28
void AddFrame(Grid *grid, Vector **u, real t, int no_vectors = 1);
29
/// Reset the file, overwriting previously saved frames
34
void InitCommon(const char *filename, int no_data, va_list aptr);
35
void GenerateFileName();
36
void SaveTimeValue(real t);
38
void MatlabAddFrame (FILE *fp, Grid *grid, Vector **u, real t, int no_vectors);
39
void OpenDXAddFrame (FILE *fp, Grid *grid, Vector **u, real t, int no_vectors);
40
void GiDAddFrame (FILE *fp, Grid *grid, Vector **u, real t, int no_vectors);
42
// Filename for saving output
43
char filename[DOLFIN_LINELENGTH];
44
char grid_filename[DOLFIN_LINELENGTH]; // Used when needed
46
// Data dimensions total size of data
50
// Indicators for saving
58
// Problem description
59
char problem_description[DOLFIN_LINELENGTH];
64
// Info about data labels and variable names