Skip to content

Commit

Permalink
Merge branch 'develop' into fix_hybridrep_builder_spinor
Browse files Browse the repository at this point in the history
  • Loading branch information
ye-luo authored Jan 20, 2025
2 parents 5c5fcfb + f28d436 commit 1c32747
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Notable changes to QMCPACK are documented in this file.

## [Unreleased]

* IMPORTANT: the default drivers are now the batched versions in both QMCPACK and NEXUS. To recover legacy v3 behavior in QMCPACK,
set the driver_version parameter to legacy https://qmcpack.readthedocs.io/en/develop/input_overview.html#driver-version-parameter
. For NEXUS put driver = 'legacy' within generate_qmcpack sections.

* Support for backflow optimization has been removed as part of refactoring and cleaning the codebase. QMC runs using backflow
wavefunctions are still supported. This feature is expected to eventually be reimplemented in v4. Users needing
backflow optimization can use previously released versions of QMCPACK or work towards its reimplementation in the modern code.
Expand All @@ -25,6 +29,7 @@ This minor release is recommended for all users and includes a couple of build f
### NEXUS

* NEXUS: Support for spinor inputs. [#4707](https://github.com/QMCPACK/qmcpack/pull/4707)

## [3.17.0] - 2023-08-18

This is a recommended release for all users. Thanks to everyone who contributed directly, reported an issue, or suggested an
Expand Down
2 changes: 1 addition & 1 deletion nexus/lib/qmcpack_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -7364,7 +7364,7 @@ def read_jastrows(filepath):
J3_rcut = 5.0,
J1_rcut_open = 5.0,
J2_rcut_open = 10.0,
driver = 'legacy', # legacy,batched
driver = 'batched', # legacy,batched
# batched driver inputs
orbitals_cpu = None, # place/evaluate orbitals on cpu if on gpu
matrix_inv_cpu = None, # evaluate matrix inverse on cpu if on gpu
Expand Down
2 changes: 2 additions & 0 deletions nexus/tests/unit/test_qmcpack_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,7 @@ def test_generate():
# legacy drivers
qi = generate_qmcpack_input(
input_type = 'basic',
driver = 'legacy',
system = system,
randomsrc = False,
pseudos = ['V.opt.xml','O.opt.xml'],
Expand Down Expand Up @@ -1826,6 +1827,7 @@ def test_incorporate_system():

qi = generate_qmcpack_input(
input_type = 'basic',
driver = 'legacy',
system = system,
pseudos = ['V.opt.xml','O.opt.xml'],
spin_polarized = True,
Expand Down
6 changes: 4 additions & 2 deletions src/QMCDrivers/tests/test_QMCDriverFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ TEST_CASE("QMCDriverFactory create VMC Driver", "[qmcapp]")
Communicate* comm;
comm = OHMMS::Controller;

ProjectData test_project;
using DV = ProjectData::DriverVersion;
ProjectData test_project("testing", DV::LEGACY);
QMCDriverFactory driver_factory(test_project);

Libxml2Document doc;
Expand Down Expand Up @@ -141,7 +142,8 @@ TEST_CASE("QMCDriverFactory create DMC driver", "[qmcapp]")
Communicate* comm;
comm = OHMMS::Controller;

ProjectData test_project;
using DV = ProjectData::DriverVersion;
ProjectData test_project("testing", DV::LEGACY);
QMCDriverFactory driver_factory(test_project);

Libxml2Document doc;
Expand Down
2 changes: 1 addition & 1 deletion src/Utilities/ProjectData.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ProjectData

public:
/// constructor
ProjectData(const std::string& atitle = "", DriverVersion de = DriverVersion::LEGACY);
ProjectData(const std::string& atitle = "", DriverVersion de = DriverVersion::BATCH);

bool get(std::ostream& os) const;
bool put(std::istream& is);
Expand Down
2 changes: 1 addition & 1 deletion src/Utilities/tests/test_project_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ TEST_CASE("ProjectData::TestDriverVersion", "[ohmmsapp]")
SECTION("driver version batch")
{
ProjectData proj;
REQUIRE(proj.getDriverVersion() == DV::BATCH);

const char* xml_input = R"(
<project id="test1" series="1">
Expand All @@ -109,7 +110,6 @@ TEST_CASE("ProjectData::TestDriverVersion", "[ohmmsapp]")
SECTION("driver version legacy")
{
ProjectData proj;
REQUIRE(proj.getDriverVersion() == DV::LEGACY);

const char* xml_input = R"(
<project id="test1" series="1">
Expand Down

0 comments on commit 1c32747

Please sign in to comment.