Virtual run; used solely for dynamic dispatch.
27 {
28 auto R = std::make_shared<Matter>(
pot,
params);
32 throw std::runtime_error("failed to load " + posFile);
33 }
34
35 auto d = std::make_unique<Dynamics>(R.get(),
params);
36 d->run();
37
38 std::string productFilename("final.con");
41 }
42
43 const std::string resultsFilename("results.dat");
46 pots().total_force_calls(),
true, R->getPotentialEnergy());
48 env.job_type = "dynamics";
49 env.writeResultsDat(resultsFilename);
50
51 std::vector<std::string> returnFiles;
52 returnFiles.push_back(productFilename);
53 returnFiles.push_back(resultsFilename);
54 return returnFiles;
55}
#define EONC_LOG_ERROR(...)
#define EONC_LOG_CRITICAL(...)
PotRegistry & pots() noexcept
std::shared_ptr< Potential > pot
Set when one Potential is shared across Matters, images, or a caller.
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)