CoMD
A Mini-app for Co-Design of Classical Molecular Dynamics.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
yamlOutput.c File Reference

Write simulation information in YAML format. More...

#include "yamlOutput.h"
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "CoMD_info.h"
#include "mytype.h"
#include "parallel.h"
Include dependency graph for yamlOutput.c:

Go to the source code of this file.

Functions

static void getTimeString (char *timestring)
 
void yamlBegin (void)
 
void yamlAppInfo (FILE *file)
 
void yamlEnd (void)
 
void printSeparator (FILE *file)
 

Variables

FILE * yamlFile = NULL
 Provide access to the YAML file in other compliation units. More...
 
static const char * CoMDVersion = "1.1"
 
static const char * CoMDVariant = CoMD_VARIANT
 

Detailed Description

Write simulation information in YAML format.

Information regarding platform, run parameters, performance, etc., are written to a file whose name is generated from the CoMDVariant and the time of the run. This provides a simple mechanism to track and compare performance etc.

There are much more sophisticated libraries and routines available to handle YAML, but this simple implemenation handles everything we really need.

Definition in file yamlOutput.c.

Function Documentation

static void getTimeString ( char *  timestring)
static

Definition at line 28 of file yamlOutput.c.

Here is the caller graph for this function:

void printSeparator ( FILE *  file)

Definition at line 98 of file yamlOutput.c.

Here is the caller graph for this function:

void yamlAppInfo ( FILE *  file)

Definition at line 63 of file yamlOutput.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void yamlBegin ( void  )

Definition at line 45 of file yamlOutput.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void yamlEnd ( void  )

Definition at line 90 of file yamlOutput.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const char* CoMDVariant = CoMD_VARIANT
static

Definition at line 26 of file yamlOutput.c.

const char* CoMDVersion = "1.1"
static

Definition at line 25 of file yamlOutput.c.

FILE* yamlFile = NULL

Provide access to the YAML file in other compliation units.

Definition at line 23 of file yamlOutput.c.