MCPcopy Create free account
hub / github.com/Cantera/cantera / preamble

Function preamble

src/base/SolutionArray.cpp:924–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

922}
923
924AnyMap preamble(const string& desc)
925{
926 AnyMap data;
927 if (desc.size()) {
928 data["description"] = desc;
929 }
930 data["generator"] = "Cantera SolutionArray";
931 data["cantera-version"] = CANTERA_VERSION;
932 data["git-commit"] = gitCommit();
933
934 // Add a timestamp indicating the current time
935 time_t aclock;
936 ::time(&aclock); // Get time in seconds
937 struct tm* newtime = localtime(&aclock); // Convert time to struct tm form
938 data["date"] = stripnonprint(asctime(newtime));
939
940 return data;
941}
942
943AnyMap& openField(AnyMap& root, const string& name)
944{

Callers 1

writeHeaderMethod · 0.85

Calls 3

gitCommitFunction · 0.85
stripnonprintFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected