PerturbSiteType

class PerturbSiteType : public feasst::Perturb

Change the type of a site.

Public Functions

PerturbSiteType(argtype args = argtype())

args:

  • type: type to set for site.

void set_site_type(System *system, const TrialSelect &select, const int type)

Set the site type.

void perturb(System *system, TrialSelect *select, Random *random, const bool is_position_held = false, Acceptance *acceptance = NULL)

Perturb the selection of the system.

param is_position_held:

If position is held, all but perform the actual perturbation, as typically required for calculations of old configurations and Rosenbluth

void revert(System *system)

Revert the system for an unaccepted perturbation.

void finalize(System *system)

Finalize the system for an accepted perturbation.

std::string status_header() const

Print status header.

std::string status() const

Print status.