Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sposet input style for testset. #4730

Merged
merged 4 commits into from
Sep 15, 2023

Conversation

Hyeondeok-Shin
Copy link
Contributor

Proposed changes

The most of input styles in testsets are currently using older template which generates sposet inside determinantset.
This PR is to update its style since older one will be deprecated in the future.
Still some tests using older input styple exist (eg. periodic LCAO, converter, etc.), but the updates for those will be followed up.

What type(s) of changes does this code introduce?

  • Other (please describe): Add test

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

Workstation

Checklist

Update the following with a yes where the items apply. If you're unsure about any of them, don't hesitate to ask. This is
simply a reminder of what we are going to look for before merging your code.

  • Yes. This PR is up to date with current the current state of 'develop'
  • No. Code added or changed in the PR has been clang-formatted
  • Yes. This PR adds tests to cover any new code, or to catch a bug that is being fixed
  • No. Documentation has been added (if appropriate)

@ye-luo ye-luo changed the title Update input style for testset. Update sposet input style for testset. Sep 14, 2023
@@ -496,6 +496,8 @@
1.25722600000000e+00 0.00000000000000e+00 0.00000000000000e+00 0.00000000000000e+00
</coefficient>
</sposet>
</sposet_builder>
<determinantset>
<slaterdeterminant>
<determinant id="det_up" sposet="spo-up" size="5"/>
<determinant id="det_down" sposet="spo-dn" size="4"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove id, group and size in determinant. Also replace sposet_builder with sposet_collection.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if we catch the case where the user specifies a particleset and a determinant with different sizes?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

determinant size is derived from particleset. size in the old input was for constructing sposet only.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, but we should catch inconsistencies in the input. Do we read size anymore? Ideally we would warn the user about unneeded/unused inputs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Not something to fix here)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once we disallow(warning->error) users creating sposet in determinants. I will issue a warning about all the outdated input.

</slaterdeterminant>
</determinantset>
</determinantset>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove trailing white spaces.

</coefficient>
</determinant>
<determinant id="downdet" size="8">
</coefficient>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that a tab was introduced.

</determinant>
<determinant id="downdet" size="2">
</sposet>
<sposet name="spo-dn" size="2">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange indents

</slaterdeterminant>
</determinantset>
</determinantset>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing white space.

@prckent prckent self-requested a review September 14, 2023 22:08
Copy link
Contributor

@prckent prckent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran all the tests with a modest timeout. After filtering for timed out runs, the list of failures is given below.
The inputs for short-H2-orb-opt-16-1, short-H4-cjs-16-1, and short-H4-orb-opt-dmc-16-1 are broken with parser errors.

grep "^[0-9].* Test  #.*.\*" ctest.out |grep -v Timeout|grep -v -- -time
1478/2601 Test  #571: short-LiH_ae-vmc_hf_noj_estimator_energydensity_voronoi-4-4 ..............................................***Failed  Required regular expression not found. Regex=[QMCPACK execution completed successfully
1479/2601 Test  #573: long-LiH_ae-vmc_hf_noj_estimator_energydensity_voronoi-4-4 ...............................................***Failed  Required regular expression not found. Regex=[QMCPACK execution completed successfully
1494/2601 Test  #683: short-LiH_pp-vmc_hf_sdj_estimator_spindensity-4-4 ........................................................***Failed  Required regular expression not found. Regex=[QMCPACK execution completed successfully
1495/2601 Test  #685: long-LiH_pp-vmc_hf_sdj_estimator_spindensity-4-4 .........................................................***Failed  Required regular expression not found. Regex=[QMCPACK execution completed successfully
1497/2601 Test  #691: short-H2-orb-opt-16-1 ....................................................................................***Failed  Error regular expression found in output. Regex=[ERROR]  0.91 sec
1507/2601 Test  #711: short-H4-orb-opt-dmc-16-1 ................................................................................***Failed  Error regular expression found in output. Regex=[ERROR]  5.76 sec
1509/2601 Test  #715: short-H4-cjs-16-1 ........................................................................................***Failed  Error regular expression found in output. Regex=[ERROR]  0.78 sec
1907/2601 Test  #594: long-O_ae_uhf_pyscf-vmc_hf_noj-1-16-samples ..............................................................***Failed    0.04 sec
1926/2601 Test  #619: short-LiH_pp-vmc_hf_sdj_xml-16-1-totenergy ...............................................................***Failed    0.05 sec
1936/2601 Test  #574: long-LiH_ae-vmc_hf_noj_estimator_energydensity_voronoi-4-4-check .........................................***Failed    0.24 sec
1945/2601 Test  #572: short-LiH_ae-vmc_hf_noj_estimator_energydensity_voronoi-4-4-check ........................................***Failed    0.28 sec
1960/2601 Test  #692: short-H2-orb-opt-16-1-totenergy ..........................................................................***Failed    0.04 sec
1967/2601 Test  #712: short-H4-orb-opt-dmc-16-1-totenergy ......................................................................***Failed    0.05 sec
1970/2601 Test  #706: short-H4-RHF-orb-opt-16-1-totenergy ......................................................................***Failed    0.07 sec
1972/2601 Test  #716: short-H4-cjs-16-1-totenergy ..............................................................................***Failed    0.05 sec
1973/2601 Test  #710: short-H4-orb-opt-1-16-totenergy ..........................................................................***Failed    0.07 sec
1976/2601 Test  #722: short-H4-target-descent-16-1-totenergy ...................................................................***Failed    0.05 sec
1979/2601 Test  #730: short-H4-batched-hybrid-16-1-totenergy ...................................................................***Failed    0.04 sec
1980/2601 Test  #732: short-H4-batched-hybrid-1-16-totenergy ...................................................................***Failed    0.05 sec
1984/2601 Test  #686: long-LiH_pp-vmc_hf_sdj_estimator_spindensity-4-4-check ...................................................***Failed    0.17 sec
1992/2601 Test  #749: short-H4-msd-orb-opt-16-1-totenergy ......................................................................***Failed    0.07 sec
1995/2601 Test  #684: short-LiH_pp-vmc_hf_sdj_estimator_spindensity-4-4-check ..................................................***Failed    0.22 sec
1996/2601 Test  #688: short-LiH_pp-vmc_hf_sdj_estimator_energydensity_voronoi-4-4-check ........................................***Failed    0.22 sec
2020/2601 Test  #690: long-LiH_pp-vmc_hf_sdj_estimator_energydensity_voronoi-4-4-check .........................................***Failed    0.33 sec
2043/2601 Test  #852: short-LiH_ae-vmc_msdj_optCI-1-16-variance ................................................................***Failed    0.06 sec

@prckent
Copy link
Contributor

prckent commented Sep 15, 2023

Thanks Hyeondeok. Fixed the obvious parse errors:

 ctest -j 48 -R 'short-H2-orb-opt|short-H4-cjs|short-H4-orb-opt' --output-on-failure 
...
79% tests passed, 3 tests failed out of 14

Label Time Summary:
QMCPACK                     = 14254.79 sec*proc (7 tests)
QMCPACK-checking-results    =   0.23 sec*proc (7 tests)
abort                       = 13925.79 sec*proc (10 tests)
bug                         = 13925.79 sec*proc (10 tests)
quality_unknown             = 14255.01 sec*proc (14 tests)
unstable                    =   0.23 sec*proc (7 tests)

Total Test time (real) = 762.07 sec

The following tests FAILED:
        694 - short-H4-orb-opt-1-16-totenergy (Failed)
        695 - short-H4-orb-opt-dmc-16-1 (Failed)
        696 - short-H4-orb-opt-dmc-16-1-totenergy (Failed)
Errors while running CTest

The orb-opt-dmc test fails with a bad DMC run. Unfortunately that is "normal" and consistent with before.

@prckent
Copy link
Contributor

prckent commented Sep 15, 2023

Test this please

@Hyeondeok-Shin
Copy link
Contributor Author

@prckent Yes, I'm getting same failure with older input style. It seems need to be revisited later. I'll take a look more when I work for remaining style update.

@ye-luo ye-luo enabled auto-merge September 15, 2023 19:53
@ye-luo ye-luo merged commit e284ec8 into QMCPACK:develop Sep 15, 2023
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants