53 const std::string &scfType,
int multiplicity,
54 const std::string &existing);
66 void force(
long N,
const double *R,
const int *atomicNrs,
double *F,
67 double *U,
const double *box)
const;
82 [[nodiscard]]
int worldRank() const noexcept;
104 bool shareResult(
int owner,
long N,
double *F,
double *U,
bool ok,
105 std::
string &error) const;
109 void forceEngine(
long N, const
double *R, const
int *atomicNrs,
double *F,
110 double *U, const
double *box) const;
std::string nwchemDftInputBlock(const std::string &theory, const std::string &scfType, int multiplicity, const std::string &existing)
NWChem input block for a DFT theory.
void selectOrbitals(std::int64_t key) const
Names the calculation the next force() belongs to (cpmdc: the engine keeps converged orbitals per key...
RGPotEngine(const RGPotEngineOptions &opt)
void broadcastFromDriver(void *data, std::size_t bytes) const
Collective on MPI_COMM_WORLD: every rank leaves with world rank 0's bytes.
static bool mpiAbortRequested() noexcept
True once rgpot asked for MPI_Abort at exit in this process.
RGPotEngine(const RGPotEngine &)=delete
bool keepsOrbitalsPerKey() const
True when the engine keeps converged orbitals per key.
void armGroupedExit() const
After MPI_Finalize, _Exit.
int calculatorGroups() const noexcept
Number of calculator groups the MPI world is split into (1 when ranks_per_image is off) and the group...
void forceEngine(long N, const double *R, const int *atomicNrs, double *F, double *U, const double *box) const
void shutdownModule() noexcept
Calls cpmdc_finalize while the engine is still mapped. MPI stays up.
int calculatorWorld() const noexcept
Ranks in the MPI world the groups were bound on (1 without MPI).
int calculatorIndex() const noexcept
RGPotEngine & operator=(const RGPotEngine &)=delete
const std::string & backend() const noexcept
int worldRank() const noexcept
This process's rank in that world (0 without MPI).
void finalizeMpiAtExit() const
Registers MPI_Finalize at exit (once per process) when the world has more than one rank.
std::unique_ptr< Impl > impl_
bool shareResult(int owner, long N, double *F, double *U, bool ok, std::string &error) const
Collective on MPI_COMM_WORLD: every rank leaves with the energy and the 3N forces computed by the fir...
void force(long N, const double *R, const int *atomicNrs, double *F, double *U, const double *box) const
std::string extensions_directory
std::string engine_library
double xtb_electronic_temperature
std::string permanent_dir
bool torch_determinism_strict
double uncertainty_threshold