Skip to content

Commit

Permalink
Merge pull request #5278 from prckent/nexus_inputs_legacy
Browse files Browse the repository at this point in the history
Update Nexus inputs to specify legacy drivers
  • Loading branch information
ye-luo authored Jan 14, 2025
2 parents 7086c88 + 4bdf82a commit 90ef815
Show file tree
Hide file tree
Showing 51 changed files with 88 additions and 0 deletions.
2 changes: 2 additions & 0 deletions labs/lab2_qmc_basics/oxygen_dimer/O_dimer.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
# describe optimization run
if scale==1.00: # use eqm. Jastrow for all bond lengths
opt = generate_qmcpack(
driver = 'legacy',
identifier = 'opt',
path = directory,
job = qmcjob,
Expand Down Expand Up @@ -126,6 +127,7 @@

# describe DMC run
qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'qmc',
path = directory,
job = qmcjob,
Expand Down
2 changes: 2 additions & 0 deletions labs/lab2_qmc_basics/oxygen_dimer/reference/O_dimer.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
# describe optimization run
if scale==1.00: # use eqm. Jastrow for all bond lengths
opt = generate_qmcpack(
driver = 'legacy',
identifier = 'opt',
path = directory,
job = qmcjob,
Expand Down Expand Up @@ -126,6 +127,7 @@

# describe DMC run
qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'qmc',
path = directory,
job = qmcjob,
Expand Down
3 changes: 3 additions & 0 deletions labs/lab2_qmc_basics/your_system/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@

# vmc run with qmcpack
qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'vmc',
path = my_project_name,
job = qmcjob,
Expand Down Expand Up @@ -168,6 +169,7 @@
#linopt2.samples = 20480
#
#opt = generate_qmcpack(
# driver = 'legacy',
# identifier = 'opt',
# path = my_project_name,
# job = qmcjob,
Expand All @@ -184,6 +186,7 @@
#sims.append(opt)
#
#qmc = generate_qmcpack(
# driver = 'legacy',
# identifier = 'qmc',
# path = my_project_name,
# job = qmcjob,
Expand Down
2 changes: 2 additions & 0 deletions labs/lab4_condensed_matter/Be-16at-qmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@

# optimization run
opt = generate_qmcpack(
driver = 'legacy',
identifier = 'opt',
path = directory+'/opt-16at',
job = qmc_job,
Expand All @@ -166,6 +167,7 @@
# DMC run
ntwists = kgrid[0]*kgrid[1]*kgrid[2]
qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'dmc',
path = directory+'/dmc-16at_'+ks,
job = job(nodes=ntwists,minutes=20,threads=16,queue="qmcpack",app=qmcpack,queue="R.qmc"),
Expand Down
2 changes: 2 additions & 0 deletions labs/lab4_condensed_matter/Be-2at-qmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@

# optimization run
opt = generate_qmcpack(
driver = 'legacy',
identifier = 'opt',
path = directory+'/opt',
job = qmc_job,
Expand All @@ -123,6 +124,7 @@
# DMC run
ntwists = kgrid[0]*kgrid[1]*kgrid[2]
qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'dmc',
path = directory+'/dmc_'+ks,
job = job(nodes=ntwists,hours=2,threads=16,queue="qmcpack",app=qmcpack,queue="R.qmc"),
Expand Down
3 changes: 3 additions & 0 deletions labs/lab4_condensed_matter/graphene-final.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@

# optimization run
opt = generate_qmcpack(
driver = 'legacy',
identifier = 'opt',
path = directory+'/opt',
job = qmc_job,
Expand All @@ -160,6 +161,7 @@

# DMC run
qmc1 = generate_qmcpack(
driver = 'legacy',
identifier = 'dmc',
path = directory+'/dmc-smallmem',
job = qmc_job,
Expand Down Expand Up @@ -194,6 +196,7 @@

# DMC run
qmc2 = generate_qmcpack(
driver = 'legacy',
identifier = 'dmc',
path = directory+'/dmc-largemem',
job = qmc_job,
Expand Down
2 changes: 2 additions & 0 deletions labs/lab4_condensed_matter/graphene-loop-mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@

# optimization run
opt = generate_qmcpack(
driver = 'legacy',
identifier = 'opt',
path = directory+'/opt',
job = qmc_job,
Expand All @@ -164,6 +165,7 @@
for factor in factors:
fc = '{0:.2f}'.format(factor)
qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'vmc',
path = directory+'/vmc-factor-'+fc,
job = qmc_job,
Expand Down
1 change: 1 addition & 0 deletions labs/lab4_condensed_matter/graphene-setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@

# optimization run
opt = generate_qmcpack(
driver = 'legacy',
identifier = 'opt',
path = directory+'/opt',
job = qmc_job,
Expand Down
3 changes: 3 additions & 0 deletions labs/lab5_excited_states/optical.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
)

opt = generate_qmcpack(
driver = 'legacy',
det_format = 'old',
identifier = 'opt',
path = 'opt',
Expand Down Expand Up @@ -119,6 +120,7 @@
)

qmc_ground = generate_qmcpack(
driver = 'legacy',
det_format = 'old',
identifier = 'vmc',
path = 'vmc_ground',
Expand All @@ -142,6 +144,7 @@
)

qmc_optical = generate_qmcpack(
driver = 'legacy',
det_format = 'old',
identifier = 'vmc',
path = 'vmc_optical',
Expand Down
4 changes: 4 additions & 0 deletions labs/lab5_excited_states/quasiparticle.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
)

opt = generate_qmcpack(
driver = 'legacy',
det_format = 'old',
identifier = 'opt',
path = 'opt',
Expand Down Expand Up @@ -116,6 +117,7 @@
)

qmc_ground = generate_qmcpack(
driver = 'legacy',
det_format = 'old',
identifier = 'vmc',
path = 'vmc_ground',
Expand All @@ -139,6 +141,7 @@
)

qmc_minus = generate_qmcpack(
driver = 'legacy',
det_format = 'old',
identifier = 'vmc',
path = 'vmc_-e',
Expand Down Expand Up @@ -166,6 +169,7 @@
updet.size-=1

qmc_plus = generate_qmcpack(
driver = 'legacy',
det_format = 'old',
identifier = 'vmc',
path = 'vmc_+e',
Expand Down
Empty file modified nexus/examples/pyscf/01_h2o_hf/scf_template.py
100644 → 100755
Empty file.
Empty file modified nexus/examples/pyscf/02_diamond_hf/scf_template.py
100644 → 100755
Empty file.
Empty file modified nexus/examples/pyscf/H2O/scf_template.py
100644 → 100755
Empty file.
Empty file modified nexus/examples/pyscf/diamond/dft_template.py
100644 → 100755
Empty file.
Empty file modified nexus/examples/qmcpack/afqmc_pyscf/01_neon_atom/scf_template.py
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions nexus/examples/qmcpack/rsqmc_misc/H2O/H2O.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

# QMC Optimization
opt = generate_qmcpack(
driver = 'legacy',
identifier = 'opt',
path = '.',
job = opt_job,
Expand All @@ -126,6 +127,7 @@

# QMC VMC/DMC With Optimized Jastrow Parameters
qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'dmc',
path = '.',
job = dmc_job,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
)

qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'vmc',
path = 'h2o_ae_hf',
job = job(cores=10),
Expand Down
Empty file modified nexus/examples/qmcpack/rsqmc_misc/H2O_pyscf/scf_template.py
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions nexus/examples/qmcpack/rsqmc_misc/LiH/LiH.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@

# QMC Optimization
opt = generate_qmcpack(
driver = 'legacy',
identifier = 'opt',
path = '.',
job = opt_job,
Expand Down Expand Up @@ -157,6 +158,7 @@

# QMC VMC/DMC With Optimized Jastrow Parameters
qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'dmc',
path = '.',
job = dmc_job,
Expand Down
4 changes: 4 additions & 0 deletions nexus/examples/qmcpack/rsqmc_misc/O2_qp/o2_selci_vmc_dmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@

# optimize 2-body Jastrow
optJ2 = generate_qmcpack(
driver = 'legacy',
identifier = 'opt',
path = 'O_dimer/optJ2',
job = qmc_job,
Expand All @@ -105,6 +106,7 @@

# optimize 3-body Jastrow
optJ3 = generate_qmcpack(
driver = 'legacy',
identifier = 'opt',
path = 'O_dimer/optJ3',
job = qmc_job,
Expand All @@ -123,6 +125,7 @@

# run VMC with QMCPACK
qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'vmc',
path = 'O_dimer/vmc',
job = qmc_job,
Expand All @@ -136,6 +139,7 @@

# run DMC with QMCPACK
qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'dmc',
path = 'O_dimer/dmc',
job = qmc_job,
Expand Down
2 changes: 2 additions & 0 deletions nexus/examples/qmcpack/rsqmc_misc/c20/c20.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
# input format selector
input_type = 'basic',
# qmcpack input parameters
driver = 'legacy',
corrections = [],
jastrows = [('J1','bspline',8,6), # 1 body bspline jastrow
('J2','bspline',8,8)], # 2 body bspline jastrow
Expand Down Expand Up @@ -119,6 +120,7 @@
# input format selector
input_type = 'basic',
# qmcpack input parameters
driver = 'legacy',
corrections = [], # no finite size corrections
jastrows = [], # overwritten from opt
calculations = [ # qmcpack input parameters for qmc
Expand Down
1 change: 1 addition & 0 deletions nexus/examples/qmcpack/rsqmc_misc/diamond/diamond.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
)

qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'vmc',
path = 'diamond/vmc',
job = job(cores=16,threads=4,app='qmcpack'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
)

qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'vmc_1rdm_noJ',
path = 'vmc_1rdm_noJ',
job = job(cores=3,app='qmcpack_complex',hours=1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@


qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'vmc_1rdm_noJ',
path = 'vmc_1rdm_noJ',
job = job(cores=3,app='qmcpack_complex',hours=1),
Expand All @@ -157,6 +158,7 @@
)

qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'vmc_1rdm_down_noJ',
path = 'vmc_1rdm_down_noJ',
job = job(cores=3,app='qmcpack_complex',hours=1),
Expand Down
Empty file modified nexus/examples/qmcpack/rsqmc_misc/diamond_pyscf/dft_template.py
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
)

qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'vmc',
path = 'diamond_pp_dft_gamma',
job = job(cores=16),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@


qmc = generate_qmcpack(
driver = 'legacy',
identifier = 'vmc',
path = 'vmc',
job = job(cores=3,app='qmcpack_complex',hours=1),
Expand Down
3 changes: 3 additions & 0 deletions nexus/examples/qmcpack/rsqmc_misc/estimators/iron_ldaU_dmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
)

optJ12 = generate_qmcpack(
driver = 'legacy',
identifier = 'optJ12',
path = basepath + 'optJ12',
job = job(cores=16,threads=4,app='qmcpack'),
Expand All @@ -116,6 +117,7 @@

J3_rcut = system.structure.rwigner()
optJ123 = generate_qmcpack(
driver = 'legacy',
identifier = 'optJ123',
path = basepath + 'optJ123',
job = job(cores=16,threads=4,app='qmcpack'),
Expand Down Expand Up @@ -182,6 +184,7 @@
# Finally, note that for large numbers of blocks, the stat.h5 file's disk footprint can get considerably large.
# This is especially true for dense grids, say spindensity with (300x300x300).
qmc = generate_qmcpack(
driver = 'legacy',
#skip_submit = True,
identifier = 'qmc',
path = basepath + 'qmc',
Expand Down
2 changes: 2 additions & 0 deletions nexus/examples/qmcpack/rsqmc_misc/excited/vmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
)

qmc = generate_qmcpack(
driver = 'legacy',
det_format = 'old',
identifier = 'vmc',
path = 'diamond/vmc',
Expand All @@ -107,6 +108,7 @@
)

qmc_optical = generate_qmcpack(
driver = 'legacy',
det_format = 'old',
identifier = 'vmc',
path = 'diamond/vmc_optical',
Expand Down
Loading

0 comments on commit 90ef815

Please sign in to comment.