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 colvarbias_meta::colvarbias_meta().


Function Documentation

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

Definition at line 1077 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.

01078 {
01079   os.setf (std::ios::scientific, std::ios::floatfield);
01080 
01081   os << "hill {\n";
01082   os << "  step " << std::setw (cvm::it_width) << h.it << "\n";
01083   os << "  weight   "
01084      << std::setprecision (cvm::en_prec)
01085      << std::setw (cvm::en_width)
01086      << h.W << "\n";
01087 
01088   if (h.replica.size())
01089     os << "  replica   " << h.replica << "\n";
01090 
01091   os << "  centers ";
01092   for (size_t i = 0; i < (h.centers).size(); i++) {
01093     os << " "
01094        << std::setprecision (cvm::cv_prec)
01095        << std::setw (cvm::cv_width)
01096        << h.centers[i];
01097   }
01098   os << "\n";
01099 
01100   os << "  widths  ";
01101   for (size_t i = 0; i < (h.widths).size(); i++) {
01102     os << " "
01103        << std::setprecision (cvm::cv_prec)
01104        << std::setw (cvm::cv_width)
01105        << h.widths[i];
01106   }
01107   os << "\n";
01108 
01109   os << "}\n";
01110 
01111   return os;
01112 }


Generated on Sun Nov 8 04:07:18 2009 for NAMD by  doxygen 1.3.9.1