Skip to content

nexus rmg updates #4747

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

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
NSCF handled properly. Misisng get_result
  • Loading branch information
anbenali committed Sep 27, 2023
commit f951ae9778326b3f3917c3deccb7c6152da35fc5
27 changes: 12 additions & 15 deletions nexus/lib/rmg_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -3355,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 @@ -3387,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 Expand Up @@ -3554,9 +3557,3 @@ def generate_any_rmg_input(**kwargs):

return ri
#end def generate_any_rmg_input