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 :code:`WriteMetaData.cpp` records build metadata and copies the
6// generated diff.patch file. Its object is rebuilt through normal Makefile
7// dependencies; the diff.patch file is refreshed separately by the 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