// // BAGEL - Brilliantly Advanced General Electronic Structure Library // Filename: rhf_london.h // Copyright (C) 2014 Toru Shiozaki // // Author: Ryan D. Reynolds // Maintainer: Shiozaki group // // This file is part of the BAGEL package. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . // #ifndef __BAGEL_SRC_LONDON_RHF_LONDON_H #define __BAGEL_SRC_LONDON_RHF_LONDON_H #include #include #include #include #include namespace bagel { class RHF_London : public SCF_base_London { protected: double lshift_; std::shared_ptr> levelshift_; bool dodf_; bool restarted_; std::shared_ptr> diis_; private: // serialization friend class boost::serialization::access; template void save(Archive& ar, const unsigned int) const { ar << boost::serialization::base_object(*this); ar << lshift_ << dodf_ << diis_; } template void load(Archive& ar, const unsigned int) { ar >> boost::serialization::base_object(*this); ar >> lshift_ >> dodf_ >> diis_; if (lshift_ != 0.0) levelshift_ = std::make_shared>(nocc_, lshift_); restarted_ = true; } template void serialize(Archive& ar, const unsigned int file_version) { boost::serialization::split_member(ar, *this, file_version); } public: RHF_London() { } RHF_London(const std::shared_ptr idata_, const std::shared_ptr geom, const std::shared_ptr re = nullptr); virtual ~RHF_London() { } void compute() override; std::shared_ptr conv_to_ref() const override; bool dodf() const { return dodf_; } }; } #include BOOST_CLASS_EXPORT_KEY(bagel::RHF_London) #endif