Skip to content

Commit

Permalink
Merge pull request #4894 from ye-luo/fix-MP
Browse files Browse the repository at this point in the history
Fix MP compilation with Clang.
  • Loading branch information
prckent committed Jan 5, 2024
2 parents 65d5f9f + c9ca0e4 commit ce1c0be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/QMCHamiltonians/tests/test_ewald2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,11 @@ TEST_CASE("Coulomb PBC A-A Ewald2D honeycomb", "[hamiltonian]")

TEST_CASE("Coulomb PBC A-A Ewald2D tri. in rect.", "[hamiltonian]")
{
using RealType = QMCTraits::RealType;
LRCoulombSingleton::CoulombHandler = 0; // !!!! crucial if not first test
LRCoulombSingleton::this_lr_type = LRCoulombSingleton::STRICT2D;
const double vmad_tri = -1.1061025865191676;
const double alat = std::sqrt(2.0*M_PI/std::sqrt(3));
const RealType alat = std::sqrt(2.0*M_PI/std::sqrt(3));

CrystalLattice<OHMMS_PRECISION, OHMMS_DIM> lattice;
lattice.BoxBConds = true; // periodic
Expand All @@ -204,7 +205,7 @@ TEST_CASE("Coulomb PBC A-A Ewald2D tri. in rect.", "[hamiltonian]")
elec.setName("e");
elec.create({2});
elec.R[0] = {0.0, 0.0, 0.0};
elec.R[1] = {alat/2, std::sqrt(3.0)*alat/2, 0.0};
elec.R[1] = {alat/2, static_cast<RealType>(std::sqrt(3))*alat/2, 0.0};

SpeciesSet& tspecies = elec.getSpeciesSet();
int upIdx = tspecies.addSpecies("u");
Expand Down

0 comments on commit ce1c0be

Please sign in to comment.