Skip to content

Commit

Permalink
Merge pull request #6 from anbenali/kgasperich/nexus-rmg-pptype
Browse files Browse the repository at this point in the history
Kgasperich/nexus rmg pptype
  • Loading branch information
kgasperich authored Sep 28, 2023
2 parents d169944 + f951ae9 commit 3c00702
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions nexus/lib/rmg_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class RmgInputSettings(DevBase):
Allowed: "Exx Only" "NEB Relax" "Band Structure Only" "Psi Plot" "Plot"
"Constant Pressure And Energy" "TDDFT" "Dimer Relax" "Constant
Temperature And Energy" "Constant Volume And Energy" "Relax
Structure" "Quench Electrons"
Structure" "Quench Electrons" "NSCF"
Description: Type of calculation to perform.
Key name: cell_relax
Expand Down Expand Up @@ -3059,6 +3059,7 @@ class RmgCalcModes(DevBase):
def __init__(self):
self.full_calc = obj(
scf = 'Quench Electrons',
nscf = 'NSCF',
exx = 'Exx Only',
neb = 'NEB Relax',
band = 'Band Structure Only',
Expand Down Expand Up @@ -3354,15 +3355,15 @@ def generate_any_rmg_input(**kwargs):
kw.set_optional(generate_any_defaults[defaults])

# extract keywords not appearing in RMG input file
text = kw.delete_optional('text' , None )
wf_grid_spacing = kw.delete_optional('wf_grid_spacing', None )
pseudos = kw.delete_optional('pseudos' , None )
system = kw.delete_optional('system' , None )
copy_system = kw.delete_optional('copy_system' , True )
use_folded = kw.delete_optional('use_folded' , False )
virtual_frac = kw.delete_optional('virtual_frac' , None )
spin_polarized = kw.delete_optional('spin_polarized' , None )
default_units = kw.delete_optional('default_units' , 'bohr' )
text = kw.delete_optional('text' , None )
wf_grid_spacing = kw.delete_optional('wf_grid_spacing' , None )
pseudos = kw.delete_optional('pseudos' , None )
system = kw.delete_optional('system' , None )
copy_system = kw.delete_optional('copy_system' , True )
use_folded = kw.delete_optional('use_folded' , False )
virtual_frac = kw.delete_optional('virtual_frac' , None )
spin_polarized = kw.delete_optional('spin_polarized' , None )
default_units = kw.delete_optional('default_units' , 'bohr' )

default_units = dict(
a = 'angstrom',
Expand All @@ -3386,6 +3387,9 @@ def generate_any_rmg_input(**kwargs):
#end if
ri.assign(**kw)

if ri.calculation_mode is 'NSCF' and 'input_wave_function_file' not in ri:
ri.input_wave_function_file='Waves/wave.out'

# incorporate pseudopotentials details provided via "pseudos"
if pseudos is not None:
species = []
Expand Down

0 comments on commit 3c00702

Please sign in to comment.