8 #include "Perturbation.h"      35       read<int>(in, 
"mode", 
mode_);
    46       } 
else if (
mode_ == 1) {
    53            for (j= 1; j < 
size_-1; ++j) {
    71       loadParameter<int>(ar, 
"mode", 
mode_);
    79       } 
else if (
mode_ == 1) {
    97       } 
else if (mode_ == 1) {
 DArray< double > parameter_
Value of the perturbation parameter for the associated System. 
 
void allocate(int capacity1, int capacity2)
Allocate memory for a matrix. 
 
int mode_
mode 0: parameters of all replica systems are specified. 
 
virtual void loadParameters(Serializable::IArchive &ar)
Load internal state from an archive. 
 
int rank_
Index for this system (e.g., communicator size) 
 
Saving / output archive for binary ostream. 
 
double parameter(int i, int id)
Get parameter i of system id. 
 
DArray< double > finalParameter_
Value of the perturbation parameter for the last replica System. 
 
Perturbation(int size, int rank)
Constructor. 
 
int getNParameters() const 
Gets the number of parameters per system. 
 
virtual void setParameter()=0
Sets the perturbation parameter in the associated system. 
 
DMatrix< double > parameters_
Value of the perturbation parameter for all the replica Systems. 
 
int nParameters_
Number of perturbation parameters associated with a System. 
 
Saving archive for binary istream. 
 
Single-processor Monte Carlo (MC) and molecular dynamics (MD). 
 
virtual ~Perturbation()
Destructor. 
 
void setClassName(const char *className)
Set class name string. 
 
virtual void save(Serializable::OArchive &ar)
Save internal state to an archive. 
 
void allocate(int capacity)
Allocate the underlying C array. 
 
int size_
Number of systems (e.g., communicator size) 
 
An object that can read multiple parameters from file. 
 
void readParameters(std::istream &in)
Read perturbation parameter(s) from file. 
 
DArray< double > initialParameter_
Value of the perturbation parameter for the first replica System.