Virtual run; used solely for dynamic dispatch.
24 {
25 std::vector<std::string> returnFiles;
27 std::string resultsFilename("results.dat");
28
31 QUILL_LOG_CRITICAL(
log,
"Failed to load {}", posInFilename);
32 throw std::runtime_error("failed to load " + posInFilename);
33 }
34
35
36
37 pos->setPositions(pos->getPositions());
38 QUILL_LOG_DEBUG(
log,
"Energy: {:.12f}", pos->getPotentialEnergy());
39 std::stringstream freeForcesStream;
40 freeForcesStream << pos->getForcesFree();
41 QUILL_LOG_DEBUG(
log,
"(free) Forces:\n{}", freeForcesStream.str());
42 QUILL_LOG_DEBUG(
log,
"Max atom force: {:.12f}", pos->maxForce());
43
44
45
46
49 pots().total_force_calls(),
true, pos->getPotentialEnergy());
51 env.job_type = "point";
52 env.extras.emplace_back("Energy", pos->getPotentialEnergy());
53 env.extras.emplace_back("Max_Force", pos->maxForce());
54 env.writeResultsDat(resultsFilename);
55 returnFiles.push_back(resultsFilename);
56
57 return returnFiles;
58}
PotRegistry & pots() noexcept
std::unique_ptr< Potential > ownedPot
Exclusive until a multi-owner job promotes it in the public constructor.
std::string getRelevantFile(std::string filename)
constexpr bool io_ok(IoStatus s) noexcept
JobResultProvenance provenanceForJob(const Parameters ¶ms)
Optimizer backend, engine identity, rgpot pin, and xts ABI from a job.
static JobResultEnvelope fromMinimization(RunStatus status, PotType pot, std::uint64_t fcalls, bool hasE, double energy)