Path Integral Quantum Monte Carlo
Functions
setup.cpp File Reference

Implements the setup stage of the simulation. More...

#include "setup.h"
#include "container.h"
#include "constants.h"
#include "communicator.h"
#include "potential.h"
#include "wavefunction.h"
#include "action.h"
#include "move.h"
#include "estimator.h"
+ Include dependency graph for setup.cpp:

Go to the source code of this file.

Functions

string getList (const vector< string > &options)
 Create a comma separated list from a vector of strings. More...
 
ostream & operator<< (ostream &os, const vector< string > &vals)
 Overload << to print a vector of strings to the terminal.
 

Detailed Description

Implements the setup stage of the simulation.

Author
Adrian Del Maestro
Date
04.06.2011

Definition in file setup.cpp.

Function Documentation

◆ getList()

string getList ( const vector< string > &  options)

Create a comma separated list from a vector of strings.

Parameters
optionthe stl vector of options
Returns
a comma separated list of options

Definition at line 25 of file setup.cpp.

25  {
26 
27  ostringstream optionList;
28  std::copy(options.begin(),options.end()-1,
29  std::ostream_iterator<string>(optionList, ", "));
30  optionList << options.back();
31  return optionList.str();
32 }
+ Here is the caller graph for this function: