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

nstates != MSTATES #78

Open
NicoRenaud opened this issue Oct 15, 2020 · 3 comments
Open

nstates != MSTATES #78

NicoRenaud opened this issue Oct 15, 2020 · 3 comments
Labels
bug Something isn't working.

Comments

@NicoRenaud
Copy link
Collaborator

NicoRenaud commented Oct 15, 2020

if nstates is not set equal to MSTATES I get a SEGFAULT.
The SEG FAULT seems to appear in the sampling (line number might change)

vmc.f  -> line124 metro6(l,0)
metrop_mov1_slat.f -> line 335 psie( )
hpsie.f -> line 37 determinate()
determinante.f -> line29 orbitalse()
orbitals.f -> line295 basis_fnse_vg()
basis_fnse_vg.f -> split.f line 77 ....

Nothing there depends on MSTATES or nstates so I'm puzzled

@NicoRenaud NicoRenaud added the bug Something isn't working. label Oct 15, 2020
@NicoRenaud
Copy link
Collaborator Author

As a temporary solution I will leave nstates=MSTATES in read_data.f90

@NicoRenaud
Copy link
Collaborator Author

NicoRenaud commented Feb 3, 2021

The first issue encountered with nstates with h2/qmc_1det/vmc.inp is in read_determinants in read_data'f90 where if nstates is undefined we can't read the det from the file. However nstates is defined later in read_csf or by inputcsf in set_input_data.f90.

@NicoRenaud
Copy link
Collaborator Author

NicoRenaud commented Feb 4, 2021

The parser really makes it difficult to disentangle the reading of the dets and of nstates. Since we will replace the parser the best solution is to simply use MSTATE to allocate arrays until we have a better way of reading the input files. I've reverted to use MSTATES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant