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

Nexus: support QMCPACK DLA input #2061

Merged
merged 2 commits into from
Nov 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions nexus/lib/qmcpack_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -2094,9 +2094,9 @@ class constant(QIxml):

class pseudopotential(QIxml):
tag = 'pairpot'
attributes = ['type','name','source','wavefunction','format','target','forces']
attributes = ['type','name','source','wavefunction','format','target','forces','dla']
elements = ['pseudo']
write_types= obj(forces=yesno)
write_types= obj(forces=yesno,dla=yesno)
identifier = 'name'
#end class pseudopotential

Expand Down Expand Up @@ -2688,6 +2688,7 @@ class gen(QIxml):
spindependent = 'spinDependent',
l_local = 'l-local',
pbcimages = 'PBCimages',
dla = 'DLA',
)
# afqmc names
Names.set_afqmc_expanded_names(
Expand Down Expand Up @@ -4821,10 +4822,11 @@ def generate_hamiltonian(name = 'h0',
ions = 'ion0',
wavefunction = 'psi0',
pseudos = None,
dla = None,
format = 'xml',
estimators = None,
system = None,
interactions = 'default'
interactions = 'default',
):
if system is None:
QmcpackInput.class_error('generate_hamiltonian argument system must not be None')
Expand Down Expand Up @@ -4886,6 +4888,9 @@ def generate_hamiltonian(name = 'h0',
pseudos.add(pseudo(elementtype=label,href=ppfile))
#end for
pp = pseudopotential(name='PseudoPot',type='pseudo',source=iname,wavefunction=wfname,format=format,pseudos=pseudos)
if dla is not None:
pp.dla = dla
#end if
pairpots.append(pp)
#end if
#end if
Expand Down Expand Up @@ -6226,7 +6231,8 @@ def generate_qmcpack_input(**kwargs):
orbitals_h5 = 'MISSING.h5',
excitation = None,
system = 'missing',
pseudos = None,
pseudos = None,
dla = None,
jastrows = 'generateJ12',
interactions = 'all',
corrections = 'default',
Expand Down Expand Up @@ -6447,6 +6453,7 @@ def generate_basic_input(**kwargs):
hmltn = generate_hamiltonian(
system = kw.system,
pseudos = kw.pseudos,
dla = kw.dla,
interactions = kw.interactions,
estimators = kw.estimators,
)
Expand Down