Unverified Commit f6572193 authored by Peter Doak's avatar Peter Doak Committed by GitHub
Browse files

Merge pull request #302 from PDoakORNL/debugging_input_error

Debugging input error
parents c17bb7db fba116de
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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();

@@ -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
+8 −3
Original line number Diff line number Diff line
@@ -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_);
    }
@@ -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) {
  }
}
+28 −27
Original line number Diff line number Diff line
@@ -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_);
@@ -140,6 +144,3 @@ void ModelParameters<models::TightBindingModel<Lattice>>::readWrite(ReaderOrWrit

  reader_or_writer.close_group();
}
  catch (const std::exception& r_e) {
  }
}
+1 −1
Original line number Diff line number Diff line
@@ -14,8 +14,8 @@
#define DCA_GTEST_H_W_WARNING_BLOCKING_H

#pragma GCC diagnostic push
#include "gtest/gtest.h"
#pragma GCC diagnostic ignored "-Wsuggest-override"
#include "gtest/gtest.h"
#pragma GCC diagnostic_pop

#endif
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ case "$1" in
    esac

    # Path to QMC_DATA in self-hosted CI system and point at minimum gcc-9
    if [[ "$HOST_NAME" =~ (volta-cidev-node) ]]
    if [[ "$HOST_NAME" =~ (v100-ci) ]]
    then
	# use gcc-12
      export PATH=/home/epd/spack/opt/spack/linux-ubuntu20.04-cascadelake/gcc-12.2.0/gcc-12.2.0-cx7pjxgmemcce4tohlmsekuo5qvgjqbl/bin:/home/epd/spack/opt/spack/linux-ubuntu20.04-cascadelake/gcc-12.2.0/ninja-1.11.1-plzpokehn3kdbcviteppqntkqun5752f/bin:/home/epd/spack/opt/spack/linux-ubuntu20.04-cascadelake/gcc-12.2.0/cmake-3.25.0-xlxorwhfz5jxpyx65ypsh2horyo7n3ef/bin:$PATH
Loading