Alamo
WriteMetaData.H
Go to the documentation of this file.
1//
2// This provide an IO routine for generating run-specific output.
3// Every Alamo run produces a metadata file and (if applicable) a diff.patch
4// file that reflects the exact state when the simulation was run.
5// Note that the file :code:`WriteMetaData.cpp` file is _always_ recompiled
6// upon :code:`make`, in order to pull the latest information about the local
7// state at build.
8//
9// :bdg-warning-line:`This is standard infrastructure code; make sure you know what you ard doing before you change it.`
10//
11
12#ifndef IO_WRITEMETADATA_H
13#define IO_WRITEMETADATA_H
14
15#include <ostream>
16#include <iostream>
17#include <string>
18#include <ctime>
19#include <fstream>
20#include <chrono>
21
22#include <AMReX.H>
23#include <AMReX_ParallelDescriptor.H>
24#include <AMReX_ParmParse.H>
25
26namespace IO
27{
28
36
37 void WriteMetaData(std::string plot_file, Status status = Status::Running, int percent = -1);
38
39
40}
41
42#endif
void WriteMetaData(std::string plot_file, Status status, int per)
int percent
@ Segfault
@ Complete
@ Running
@ Interrupt
@ Abort