10
#include <libpsio/psio.hpp>
12
#include <libchkpt/chkpt.h>
14
#include <libchkpt/chkpt.hpp>
18
double Chkpt::rd_e_labeled(const char *label)
23
s = (char *) malloc((strlen(label)+3)*sizeof(char));
27
psio->read_entry(PSIF_CHKPT, s, (char *) &E, sizeof(double));
33
void Chkpt::wt_e_labeled(const char *label, double E)
37
s = (char *) malloc((strlen(label)+3)*sizeof(char));
41
psio->write_entry(PSIF_CHKPT, s, (char *) &E, sizeof(double));
47
** chkpt_rd_e_labeled(): Reads in an energy with a given label
50
** \param char * label
52
** returns: double E, the energy
55
double chkpt_rd_e_labeled(const char *label)
58
E = _default_chkpt_lib_->rd_e_labeled(label);
63
** chkpt_wt_e_labeled(): Write an energy along with a label
66
** \param char *label, the label
67
** \param double E, the energy
72
void chkpt_wt_e_labeled(const char *label, double E)
74
_default_chkpt_lib_->wt_e_labeled(label, E);