Skip to content

Commit

Permalink
fix bug of no funding fp_params (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongriTianqi committed Aug 5, 2022
1 parent db6c8f1 commit 40f66fd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dpgen/generator/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3063,6 +3063,14 @@ def run_fp (iter_index,
backward_files = ['output']
run_fp_inner(iter_index, jdata, mdata, forward_files, backward_files, _qe_check_fin, log_file = 'output')
elif fp_style == "abacus/scf":
fp_params = {}
if 'user_fp_params' in jdata.keys() :
fp_params = jdata['user_fp_params']
elif 'fp_incar' in jdata.keys():
fp_input_path = jdata['fp_incar']
assert(os.path.exists(fp_input_path))
fp_input_path = os.path.abspath(fp_input_path)
fp_params = get_abacus_input_parameters(fp_input_path)
forward_files = ["INPUT", "STRU"]
if 'kspacing' not in fp_params.keys():
forward_files = ["INPUT","STRU","KPT"]
Expand Down

0 comments on commit 40f66fd

Please sign in to comment.