-
Notifications
You must be signed in to change notification settings - Fork 144
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
PBC gaussian #706
PBC gaussian #706
Conversation
…Warning PyscfToQMCPACK broken
…c/QMCTools/PyscfToQmcpack.py .. I think
…der for SPO. No implementation for H5 multidets; Decision is needed
…on. Need piping from XML
Can one of the maintainers verify this patch? |
1 similar comment
Can one of the maintainers verify this patch? |
…ely read from XML input
…ut imagnary part is 0
Merge branch 'PBC-Gaussian' of https://github.com/anbenali/qmcpack into PBC-Gaussian
OK to test |
Initial trivial comment about the files: can you use a link to C.BFD.xml instead of duplicating the file? Or is this file somehow different from the other C potentials we have used? |
LIST(APPEND LONG_DIAMOND_SCALARS "totenergy" "-10.4951 0.0017") | ||
LIST(APPEND LONG_DIAMOND_SCALARS "samples" "192640 0.0") | ||
|
||
# Reference VMC run in qmc-ref "-10.496089 0.000159" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this line before all the two lines of LIST and update the value
|
||
|
||
# Reference DMC run in qmc-ref "-10.531770 0.000937" | ||
LIST(APPEND LONG_DIAMOND_DMC_SCALARS "totenergy" "-10.544774 0.014408") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put consistent value.
) | ||
|
||
# Reference DMC run in qmc-ref "-21.845935 +/- 0.003098" | ||
LIST(APPEND DIAMOND_DMC_SCALARS "totenergy" "-21.807657 0.095185") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put consistent value
Found many inconsistency in CMakeLists.txt for tests. |
This is what I generally do for test creation:
|
@jtkrogel gives the appropriate procedure |
I added a How to add tests wikipage to collect our requirements for tests. Let us update that one. |
I currently plan to approve this after the tests are updated and the "Master list of required changes:" is then completed, probably this evening. If people have significant concerns that need to be addressed now (vs later updates) then comment soon. |
following @prckent comment, the tests are important but they are not needed to check the code.. so reviewers can/should let me know if something in the code seems fishy.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to prevent merging, I have doubts in the code.
//check the basis set | ||
cur = curRoot->children; | ||
while (cur != NULL)//check the basis set | ||
{ | ||
getNodeName(cname,cur); | ||
if (cname == basisset_tag) | ||
if (cname == basisset_tag || H5ReadOnce==true ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anbenali could you send me by email the case that the code will crash without this part of change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
*/ | ||
void setPBCImages(std::vector<int> PBCImages) | ||
{ | ||
for(int c=0; c<NumCenters; c++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to loop directly LOBasisSet.size(). Similar to the makeClone routine above.
Loop over NumCenters is redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -89,8 +90,14 @@ namespace qmcplusplus | |||
{ | |||
return BasisSetSize; | |||
}//=NL.size(); | |||
// Set the number of periodic image for the evaluation of the orbitals. | |||
void setPBCImages(std::vector <int> PBCImages) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the naming inconsistency between PBCImages and MaxCell. Choose one.
std::vector is not a good type.
TinyVector<int,3> is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
It will not crash... tested it again. It was crashing for another reason
that was debugged in the process.. if you call it inside (same way you
tried it first) it will still work.
…On Wed, Mar 28, 2018 at 9:19 PM, Ye Luo ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/QMCWaveFunctions/Fermion/SlaterDetBuilder.cpp
<#706 (comment)>:
> //check the basis set
cur = curRoot->children;
while (cur != NULL)//check the basis set
{
getNodeName(cname,cur);
- if (cname == basisset_tag)
+ if (cname == basisset_tag || H5ReadOnce==true )
@anbenali <https://github.com/anbenali> could you send me by email the
case that the code will crash without this part of change.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#706 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXl6w1SxnjkdDR_z0aViYCWZlOJv8beSks5tjESlgaJpZM4S6Niy>
.
--
-----------------------
Anouar Benali, PhD
Leadership Computing Facility
Argonne National Laboratory
Building 240 Office - 2127
9700 S Cass Av., Argonne Il, 60439
(630) 252-0058
|
Can you put it in an example. I tried multiple approaches to reduce
redundancies but was not successful.
…On Wed, Mar 28, 2018 at 9:27 PM, Ye Luo ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/QMCWaveFunctions/lcao/SoaLocalizedBasisSet.h
<#706 (comment)>:
> @@ -88,8 +88,17 @@ struct SoaLocalizedBasisSet: public RealBasisSetBase<typename COT::value_type>
myclone->LOBasisSet[i]=LOBasisSet[i]->makeClone();
return myclone;
}
+ /** set Number of periodic Images to evaluate the orbitals.
+ Set to 0 for non-PBC, and set manually in the input.
+ */
+ void setPBCImages(std::vector<int> PBCImages)
+ {
+ for(int c=0; c<NumCenters; c++)
Better to loop directly LOBasisSet.size().
Loop over NumCenters is redundant.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#706 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXl6w6K3x5ILHPnJUdfMmI_0mvIcFmbCks5tjEZ9gaJpZM4S6Niy>
.
--
-----------------------
Anouar Benali, PhD
Leadership Computing Facility
Argonne National Laboratory
Building 240 Office - 2127
9700 S Cass Av., Argonne Il, 60439
(630) 252-0058
|
In this PR, some SPOSetBase routines are copied over to LCAOSetBuilder file and modified for PBC. This is "wrong" in principle. The reason for this situation is that these methods introduced for AoS should not be in the base class but in the builder. This will be fixed after this PR. |
binpad can hold 64 states at maximum and 64 is hard-coded. Need to be replaced. |
binpad will be replaced in a subsequent PR as it only concerns the
multideterminant storage in the converter. There is no read of it QMCPACK.
…On Wed, Mar 28, 2018 at 10:34 PM, Ye Luo ***@***.***> wrote:
binpad can hold 64 states at maximum and 64 is hard-coded. Need to be
replaced.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#706 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AXl6wwGE7h0h3aFLE_s8pzCYmg-1HX2vks5tjFYqgaJpZM4S6Niy>
.
--
-----------------------
Anouar Benali, PhD
Leadership Computing Facility
Argonne National Laboratory
Building 240 Office - 2127
9700 S Cass Av., Argonne Il, 60439
(630) 252-0058
|
For "do later" items, please create GitHub issues as I have just done so that they are not "forgotten" |
This is a fully working version with tests. I am still creating tests specially for Real Kpoints different than Gamma.