class rgpot::IPIPot¶
Overview¶
Server-side i-PI socket potential. More…
#include <IPIPot.hpp>
class IPIPot: public rgpot::Potential< IPIPot > {
public:
// construction
IPIPot(const IPIConfig& config);
IPIPot(const IPIPot&);
~IPIPot();
// methods
IPIPot& operator=(const IPIPot&);
void forceImpl(const ForceInput& in, ForceOut* out) const;
virtual PotCaps caps() const;
virtual uint64_t paramsKey() const;
const IPIConfig& config() const;
const std::string& endpoint() const;
bool hasStress() const;
bool copyStress(double out[9]) const;
};
Detailed Documentation¶
Server-side i-PI socket potential.
Methods¶
virtual PotCaps caps() const
One connection and one driver. Stress is the Cauchy tensor.
virtual uint64_t paramsKey() const
Fingerprint of the potential’s parameter set.
Mixed into the result-cache key so results never cross parameter sets. Implementations hash their config field by field (see ParamHash.hpp) plus a kernel-version salt that changes whenever the numerics change. The default (0) suits parameter-free potentials whose numerics never changed.
const std::string& endpoint() const
Bound address. A requested TCP port of 0 is the kernel’s choice.
bool hasStress() const
True after a force call that published Cauchy stress.
bool copyStress(double out[9]) const
Copies the last Cauchy stress, row-major. Returns false when none.