Loading include/dca/phys/models/analytic_hamiltonians/triangular_lattice.hpp +5 −3 Original line number Diff line number Diff line Loading @@ -156,6 +156,8 @@ void triangular_lattice<point_group_type>::initializeH0( throw std::logic_error("Triangular lattice has one band."); if (SpinDmn::dmn_size() != 2) throw std::logic_error("Spin domain size must be 2."); if (parameters.get_t_prime() != 0.0) throw std::runtime_error("Triangular lattice does not support the t prime parameter!"); const auto& k_vecs = KDmn::get_elements(); Loading @@ -173,8 +175,8 @@ void triangular_lattice<point_group_type>::initializeH0( } } } // models } // phys } // dca } // namespace models } // namespace phys } // namespace dca #endif // DCA_PHYS_MODELS_ANALYTIC_HAMILTONIANS_TRIANGULAR_LATTICE_HPP include/dca/phys/parameters/model_parameters_Kagome_hubbard.inc +8 −3 Original line number Diff line number Diff line Loading @@ -75,6 +75,10 @@ void ModelParameters<models::TightBindingModel<models::KagomeHubbard<PointGroup> ReaderOrWriter& reader_or_writer) { try { reader_or_writer.open_group("Kagome-Hubbard-model"); } catch (...) { throw std::runtime_error("You must specify a Kagome-Hubbard-model seciton in input!"); } try { reader_or_writer.execute("t", t_); } Loading @@ -85,8 +89,9 @@ void ModelParameters<models::TightBindingModel<models::KagomeHubbard<PointGroup> } catch (const std::exception& r_e) { } if (std::abs(U_) <= 1e-3) throw std::runtime_error("For Kagome model abs(U) must be greater than 1e-3"); reader_or_writer.close_group(); } catch (const std::exception& r_e) { } } include/dca/phys/parameters/model_parameters_single_band_hubbard.inc +28 −27 Original line number Diff line number Diff line Loading @@ -111,6 +111,10 @@ template <typename ReaderOrWriter> void ModelParameters<models::TightBindingModel<Lattice>>::readWrite(ReaderOrWriter& reader_or_writer) { try { reader_or_writer.open_group("single-band-Hubbard-model"); } catch (...) { throw std::runtime_error("You must specify a single-band-Hubbard-model in input!"); } try { reader_or_writer.execute("t", t_); Loading Loading @@ -140,6 +144,3 @@ void ModelParameters<models::TightBindingModel<Lattice>>::readWrite(ReaderOrWrit reader_or_writer.close_group(); } catch (const std::exception& r_e) { } } Loading
include/dca/phys/models/analytic_hamiltonians/triangular_lattice.hpp +5 −3 Original line number Diff line number Diff line Loading @@ -156,6 +156,8 @@ void triangular_lattice<point_group_type>::initializeH0( throw std::logic_error("Triangular lattice has one band."); if (SpinDmn::dmn_size() != 2) throw std::logic_error("Spin domain size must be 2."); if (parameters.get_t_prime() != 0.0) throw std::runtime_error("Triangular lattice does not support the t prime parameter!"); const auto& k_vecs = KDmn::get_elements(); Loading @@ -173,8 +175,8 @@ void triangular_lattice<point_group_type>::initializeH0( } } } // models } // phys } // dca } // namespace models } // namespace phys } // namespace dca #endif // DCA_PHYS_MODELS_ANALYTIC_HAMILTONIANS_TRIANGULAR_LATTICE_HPP
include/dca/phys/parameters/model_parameters_Kagome_hubbard.inc +8 −3 Original line number Diff line number Diff line Loading @@ -75,6 +75,10 @@ void ModelParameters<models::TightBindingModel<models::KagomeHubbard<PointGroup> ReaderOrWriter& reader_or_writer) { try { reader_or_writer.open_group("Kagome-Hubbard-model"); } catch (...) { throw std::runtime_error("You must specify a Kagome-Hubbard-model seciton in input!"); } try { reader_or_writer.execute("t", t_); } Loading @@ -85,8 +89,9 @@ void ModelParameters<models::TightBindingModel<models::KagomeHubbard<PointGroup> } catch (const std::exception& r_e) { } if (std::abs(U_) <= 1e-3) throw std::runtime_error("For Kagome model abs(U) must be greater than 1e-3"); reader_or_writer.close_group(); } catch (const std::exception& r_e) { } }
include/dca/phys/parameters/model_parameters_single_band_hubbard.inc +28 −27 Original line number Diff line number Diff line Loading @@ -111,6 +111,10 @@ template <typename ReaderOrWriter> void ModelParameters<models::TightBindingModel<Lattice>>::readWrite(ReaderOrWriter& reader_or_writer) { try { reader_or_writer.open_group("single-band-Hubbard-model"); } catch (...) { throw std::runtime_error("You must specify a single-band-Hubbard-model in input!"); } try { reader_or_writer.execute("t", t_); Loading Loading @@ -140,6 +144,3 @@ void ModelParameters<models::TightBindingModel<Lattice>>::readWrite(ReaderOrWrit reader_or_writer.close_group(); } catch (const std::exception& r_e) { } }