Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

colvarbias_meta.C File Reference

#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <unistd.h>
#include "colvar.h"
#include "colvarbias_meta.h"

Go to the source code of this file.

Defines

#define CHDIR   ::chdir
#define GETCWD   ::getcwd
#define PATHSEP   "/"

Functions

std::ostream & operator<< (std::ostream &os, colvarbias_meta::hill const &h)


Define Documentation

#define CHDIR   ::chdir
 

Definition at line 16 of file colvarbias_meta.C.

Referenced by after_backend_init().

#define GETCWD   ::getcwd
 

Definition at line 17 of file colvarbias_meta.C.

Referenced by after_backend_init(), and colvarbias_meta::colvarbias_meta().

#define PATHSEP   "/"
 

Definition at line 18 of file colvarbias_meta.C.

Referenced by after_backend_init(), and colvarbias_meta::colvarbias_meta().


Function Documentation

std::ostream& operator<< std::ostream &  os,
colvarbias_meta::hill const &  h
 

Definition at line 1562 of file colvarbias_meta.C.

References colvarbias_meta::hill::centers, colvarbias_meta::hill::it, colvarbias_meta::hill::replica, colvarbias_meta::hill::W, and colvarbias_meta::hill::widths.

01563 {
01564   os.setf (std::ios::scientific, std::ios::floatfield);
01565 
01566   os << "hill {\n";
01567   os << "  step " << std::setw (cvm::it_width) << h.it << "\n";
01568   os << "  weight   "
01569      << std::setprecision (cvm::en_prec)
01570      << std::setw (cvm::en_width)
01571      << h.W << "\n";
01572 
01573   if (h.replica.size())
01574     os << "  replicaID  " << h.replica << "\n";
01575 
01576   os << "  centers ";
01577   for (size_t i = 0; i < (h.centers).size(); i++) {
01578     os << " "
01579        << std::setprecision (cvm::cv_prec)
01580        << std::setw (cvm::cv_width)
01581        << h.centers[i];
01582   }
01583   os << "\n";
01584 
01585   os << "  widths  ";
01586   for (size_t i = 0; i < (h.widths).size(); i++) {
01587     os << " "
01588        << std::setprecision (cvm::cv_prec)
01589        << std::setw (cvm::cv_width)
01590        << h.widths[i];
01591   }
01592   os << "\n";
01593 
01594   os << "}\n";
01595 
01596   return os;
01597 }


Generated on Sun Feb 12 04:07:57 2012 for NAMD by  doxygen 1.3.9.1