Skip to content

Commit 235a4d1

Browse files
authored
Merge branch 'develop' into qmca_image
2 parents 809d5b6 + d464117 commit 235a4d1

31 files changed

Lines changed: 143 additions & 127 deletions

.github/pull_request_template.md

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
1-
Please review the [developer documentation](https://github.com/QMCPACK/qmcpack/wiki/Development-workflow)
2-
on the wiki of this project that contains help and requirements.
1+
<!--
2+
Please review the developer documentation on the wiki of this project that contains help and requirements.
33
4-
Please also follow the [GitHub Pull Request guidance](https://qmcpack.readthedocs.io/en/develop/developing.html#github-pull-request-guidance). As much as possible, try to avoid the ["Don't"s](https://qmcpack.readthedocs.io/en/develop/developing.html#don-t) to help maintain a high development velocity.
4+
https://github.com/QMCPACK/qmcpack/wiki/Development-workflow
55
6-
## Proposed changes
6+
Please also follow the GitHub Pull Request guidance.
7+
8+
https://qmcpack.readthedocs.io/en/develop/developing.html#github-pull-request-guidance
79
10+
As much as possible, try to avoid the "Don't"s to help maintain a high development velocity.
11+
12+
https://qmcpack.readthedocs.io/en/develop/developing.html#don-t
13+
-->
14+
## Proposed changes
15+
<!--
816
Describe what this PR changes and why. If it closes an issue, link to it here
9-
with [a supported keyword](https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword).
17+
with a supported keyword.
18+
19+
https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
20+
-->
21+
22+
1023

1124
## What type(s) of changes does this code introduce?
12-
_Delete the items that do not apply_
25+
<!-- Delete the items that do not apply -->
1326

1427
- Bugfix
1528
- New feature
@@ -21,16 +34,29 @@ _Delete the items that do not apply_
2134
- Other (please describe):
2235

2336
### Does this introduce a breaking change?
24-
37+
<!-- Delete one. If you are unsure, you can put "Maybe" or "Possibly" -->
2538
- Yes
2639
- No
2740

2841
## What systems has this change been tested on?
42+
<!--
43+
You can be brief here, but it is strongly recommended to provide some information.
2944
30-
## Checklist
45+
For example, if you are changing code in Nexus, list at least the following:
46+
47+
- Python w/ version (run `python --version`)
48+
- NumPy w/ version (run `python -c "import numpy; print(numpy.__version__)"`)
49+
- Pytest w/ version (run `pytest --version`)
50+
-->
3151

32-
_Update the following with an [x] where the items apply. If you're unsure about any of them, don't hesitate to ask. This is
33-
simply a reminder of what we are going to look for before merging your code._
52+
53+
54+
## Checklist
55+
<!--
56+
Update the following with an [x] where the items apply.
57+
If you're unsure about any of them, don't hesitate to ask.
58+
This is simply a reminder of what we are going to look for before merging your code.
59+
-->
3460

3561
* * [ ] I have read the pull request guidance and develop docs
3662
* * [ ] This PR is up to date with the current state of 'develop'

examples/molecules/H2O/simple-H2O.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<application name="qmcapp" role="molecu" class="serial" version="0.2">
55
Simple Example of moleculear H2O
66
</application>
7-
<parameter name="driver_version">legacy</parameter>
7+
<parameter name="driver_version">batched</parameter>
88
</project>
99

1010
<particleset name="e">
@@ -64,9 +64,7 @@
6464

6565
<qmc method="vmc" move="pbyp" gpu="yes">
6666
<estimator name="LocalEnergy" hdf5="no"/>
67-
<parameter name="walkers"> 1 </parameter>
68-
<parameter name="samplesperthread"> 64 </parameter>
69-
<parameter name="stepsbetweensamples"> 1 </parameter>
67+
<parameter name="total_walkers"> 128 </parameter>
7068
<parameter name="substeps"> 5 </parameter>
7169
<parameter name="warmupSteps"> 100 </parameter>
7270
<parameter name="blocks"> 1 </parameter>
@@ -75,8 +73,7 @@
7573
</qmc>
7674
<qmc method="dmc" move="pbyp" checkpoint="-1" gpu="yes">
7775
<estimator name="LocalEnergy" hdf5="no"/>
78-
<parameter name="minimumtargetwalkers"> 128 </parameter>
79-
<parameter name="reconfiguration"> no </parameter>
76+
<parameter name="total_walkers"> 128 </parameter>
8077
<parameter name="warmupSteps"> 100 </parameter>
8178
<parameter name="timestep"> 0.005 </parameter>
8279
<parameter name="steps"> 10 </parameter>

examples/molecules/He/he_bspline_jastrow.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<simulation>
33
<project id="He" series="0">
4-
<parameter name="driver_version">legacy</parameter>
4+
<parameter name="driver_version">batched</parameter>
55
</project>
66

77
<!-- Location of atoms -->
@@ -99,7 +99,7 @@
9999

100100
<qmc method="vmc" target="e">
101101
<parameter name="blocks">2000</parameter>
102-
<parameter name="steps">100</parameter>
102+
<parameter name="samples">200000</parameter>
103103
<parameter name="warmupsteps">100</parameter>
104104
<parameter name="timestep">0.1</parameter>
105105
</qmc>

examples/molecules/He/he_example_wf.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<simulation>
33
<project id="He" series="0">
4-
<parameter name="driver_version">legacy</parameter>
4+
<parameter name="driver_version">batched</parameter>
55
</project>
66

77
<!-- Location of atoms -->
@@ -53,9 +53,8 @@
5353

5454
<loop max="10">
5555
<qmc method="linear" move="pbyp" checkpoint="-1" gpu="no">
56-
<parameter name="blocks"> 100 </parameter>
56+
<parameter name="blocks"> 100 </parameter>
5757
<parameter name="warmupsteps"> 25 </parameter>
58-
<parameter name="steps"> 1 </parameter>
5958
<parameter name="substeps"> 20 </parameter>
6059
<parameter name="timestep"> 0.5 </parameter>
6160
<parameter name="samples"> 51200 </parameter>
@@ -77,7 +76,7 @@
7776

7877
<qmc method="vmc" target="e">
7978
<parameter name="blocks">500</parameter>
80-
<parameter name="steps">100</parameter>
79+
<parameter name="samples">50000</parameter>
8180
<parameter name="warmupsteps">100</parameter>
8281
<parameter name="timestep">0.1</parameter>
8382
</qmc>

examples/molecules/He/he_from_gamess.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<simulation>
33
<project id="He" series="0">
4-
<parameter name="driver_version">legacy</parameter>
4+
<parameter name="driver_version">batched</parameter>
55
</project>
66

77
<!-- Location of atoms -->
@@ -2068,7 +2068,6 @@
20682068
<qmc method="linear" move="pbyp" checkpoint="-1" gpu="no">
20692069
<parameter name="blocks"> 100 </parameter>
20702070
<parameter name="warmupsteps"> 25 </parameter>
2071-
<parameter name="steps"> 1 </parameter>
20722071
<parameter name="substeps"> 20 </parameter>
20732072
<parameter name="timestep"> 0.5 </parameter>
20742073
<parameter name="samples"> 51200 </parameter>
@@ -2090,7 +2089,7 @@
20902089

20912090
<qmc method="vmc" target="e">
20922091
<parameter name="blocks">2000</parameter>
2093-
<parameter name="steps">100</parameter>
2092+
<parameter name="samples">200000</parameter>
20942093
<parameter name="warmupsteps">100</parameter>
20952094
<parameter name="timestep">0.1</parameter>
20962095
</qmc>

examples/molecules/He/he_simple.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<simulation>
33
<project id="He" series="0">
4-
<parameter name="driver_version">legacy</parameter>
4+
<parameter name="driver_version">batched</parameter>
55
</project>
66

77
<!-- Location of atoms -->
@@ -71,7 +71,7 @@
7171

7272
<qmc method="vmc" target="e">
7373
<parameter name="blocks">500</parameter>
74-
<parameter name="steps">100</parameter>
74+
<parameter name="samples">50000</parameter>
7575
<parameter name="warmupsteps">100</parameter>
7676
<parameter name="timestep">0.1</parameter>
7777
</qmc>

examples/molecules/He/he_simple_dmc.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<simulation>
33
<project id="He" series="0">
4-
<parameter name="driver_version">legacy</parameter>
4+
<parameter name="driver_version">batched</parameter>
55
</project>
66

77
<!-- Location of atoms -->

examples/molecules/He/he_simple_opt.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<simulation>
33
<project id="He" series="0">
4-
<parameter name="driver_version">legacy</parameter>
4+
<parameter name="driver_version">batched</parameter>
55
</project>
66

77
<!-- Location of atoms -->
@@ -73,9 +73,8 @@
7373

7474
<loop max="10">
7575
<qmc method="linear" move="pbyp" checkpoint="-1" gpu="no">
76-
<parameter name="blocks"> 100 </parameter>
76+
<parameter name="blocks"> 100 </parameter>
7777
<parameter name="warmupsteps"> 25 </parameter>
78-
<parameter name="steps"> 1 </parameter>
7978
<parameter name="substeps"> 20 </parameter>
8079
<parameter name="timestep"> 0.5 </parameter>
8180
<parameter name="samples"> 51200 </parameter>
@@ -97,7 +96,7 @@
9796

9897
<qmc method="vmc" target="e">
9998
<parameter name="blocks">500</parameter>
100-
<parameter name="steps">100</parameter>
99+
<parameter name="samples">50000</parameter>
101100
<parameter name="warmupsteps">100</parameter>
102101
<parameter name="timestep">0.1</parameter>
103102
</qmc>

examples/solids/simple-LiH.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<application name="qmcapp" role="molecu" class="serial" version="0.2">
55
Simple Example of solid LiH
66
</application>
7-
<parameter name="driver_version">legacy</parameter>
7+
<parameter name="driver_version">batched</parameter>
88
</project>
99

1010
<random seed="49154"/>
@@ -87,9 +87,7 @@
8787

8888
<qmc method="vmc" move="pbyp" gpu="yes">
8989
<estimator name="LocalEnergy" hdf5="no"/>
90-
<parameter name="walkers"> 1 </parameter>
91-
<parameter name="samplesperthread"> 64 </parameter>
92-
<parameter name="stepsbetweensamples"> 1 </parameter>
90+
<parameter name="total_walkers"> 128 </parameter>
9391
<parameter name="substeps"> 5 </parameter>
9492
<parameter name="warmupSteps"> 100 </parameter>
9593
<parameter name="blocks"> 1 </parameter>
@@ -98,8 +96,7 @@
9896
</qmc>
9997
<qmc method="dmc" move="pbyp" checkpoint="-1" gpu="yes">
10098
<estimator name="LocalEnergy" hdf5="no"/>
101-
<parameter name="minimumtargetwalkers"> 128 </parameter>
102-
<parameter name="reconfiguration"> no </parameter>
99+
<parameter name="total_walkers"> 128 </parameter>
103100
<parameter name="warmupSteps"> 100 </parameter>
104101
<parameter name="timestep"> 0.005 </parameter>
105102
<parameter name="steps"> 10 </parameter>

src/Particle/ParticleSetPool.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ bool ParticleSetPool::readSimulationCellXML(xmlNodePtr cur)
101101
return lattice_defined;
102102
}
103103

104+
void ParticleSetPool::createSimulationCellByLattice(const Lattice& lattice)
105+
{
106+
simulation_cell_ = std::make_unique<SimulationCell>(lattice);
107+
}
108+
104109
/** process an xml element
105110
* @param cur current xmlNodePtr
106111
* @return true, if successful.

0 commit comments

Comments
 (0)