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

Handle command line arguments. More...

#include "mycommand.h"
#include <string.h>
#include <stdlib.h>
#include "cmdLineParser.h"
#include "parallel.h"
#include "mytype.h"
Include dependency graph for mycommand.c:

Go to the source code of this file.

Functions

Command parseCommandLine (int argc, char **argv)
 Process command line arguments into an easy to handle structure. More...
 
void printCmdYaml (FILE *file, Command *cmd)
 Print run parameters in yaml format on the supplied output stream. More...
 

Detailed Description

Handle command line arguments.

Definition in file mycommand.c.

Function Documentation

Command parseCommandLine ( int  argc,
char **  argv 
)

Process command line arguments into an easy to handle structure.

Initialize a Command structure with default values, then parse any command line arguments that were supplied to overwrite defaults.

Parameters
[in]argcthe number of command line arguments
[in]argvthe command line arguments array

Definition at line 186 of file mycommand.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void printCmdYaml ( FILE *  file,
Command cmd 
)

Print run parameters in yaml format on the supplied output stream.

Definition at line 252 of file mycommand.c.

Here is the call graph for this function:

Here is the caller graph for this function: