struct rgpot::CP2KPot::ImplΒΆ

struct Impl {
    // fields
 
    EngineBundle bundle;
    std::vector<::capnp::word> params_words;
    std::string engine_path;
    std::string params_error;
    uint64_t params_key = 0;
    std::size_t serial = g_instance_serial.fetch_add(1);
    CP2KCSession* session = nullptr;
    std::vector<int> session_numbers;
    std::filesystem::path run_dir;
    bool keep_run_dir = false;
    bool has_orbital_key = false;
    int64_t orbital_key = 0;
    std::vector<double> pos_bohr;
    std::vector<double> forces;
 
    // methods
 
    kj::ArrayPtr<const ::capnp::word> words() const;
    void recomputeParamsKey();
    void destroySession();
    void store(const ::CP2KParams::Reader& params);
    bool load();
    void createSession(const ForceInput& in);
};