Reading/Writing Energy Parameter Sets from/to File

Overview

Read and Write energy parameter sets from and to text files. More…

// enums

enum parset

// global functions

const char* last_parameter_file (void)
void read_parameter_file (const char fname [])
void write_parameter_file (const char fname [])
enum parset gettype (const char* ident)
char* settype (enum parset s)

Detailed Documentation

Read and Write energy parameter sets from and to text files.
A default set of parameters, identical to the one described in [14] and [19] , is compiled into the library.

Global Functions

const char* last_parameter_file (void)
Get the file name of the parameter file that was most recently loaded.

Returns:

The file name of the last parameter file, or NULL if parameters are still at defaults

void read_parameter_file (const char fname [])
Read energy parameters from a file.

Parameters:

fname The path to the file containing the energy parameters
void write_parameter_file (const char fname [])
Write energy parameters to a file.

Parameters:

fname A filename (path) for the file where the current energy parameters will be written to