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 
26 namespace IO
27 {
28 
29 enum Status{
35 };
36 
37  void WriteMetaData(std::string plot_file, Status status = Status::Running, int percent = -1);
38 
39 
40 }
41 
42 #endif
IO::WriteMetaData
void WriteMetaData(std::string plot_file, Status status, int per)
Definition: WriteMetaData.cpp:17
IO::percent
int percent
Definition: WriteMetaData.cpp:15
IO::Running
@ Running
Definition: WriteMetaData.H:30
IO
Definition: FileNameParse.H:7
IO::Segfault
@ Segfault
Definition: WriteMetaData.H:32
IO::Complete
@ Complete
Definition: WriteMetaData.H:31
IO::Interrupt
@ Interrupt
Definition: WriteMetaData.H:33
IO::Status
Status
Definition: WriteMetaData.H:29
IO::Abort
@ Abort
Definition: WriteMetaData.H:34