Skip to content

Commit

Permalink
init_bulk: skip relax if skip_relax is true (#594)
Browse files Browse the repository at this point in the history
Change-Id: I12cc467e5956a5deb29ac4bd43719db1c0ef8942

Co-authored-by: Zhengju Sha <[email protected]>
  • Loading branch information
shazj99 and Zhengju Sha authored Nov 30, 2021
1 parent 08cf615 commit 58c7674
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dpgen/data/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,13 +769,14 @@ def gen_init_bulk(args) :
dlog.info("Current stage is 1, relax")
create_path(out_dir)
shutil.copy2(args.PARAM, os.path.join(out_dir, 'param.json'))
skip_relax = jdata['skip_relax']
if from_poscar :
make_super_cell_poscar(jdata)
else :
make_unit_cell(jdata)
make_super_cell(jdata)
place_element(jdata)
if args.MACHINE is not None:
if args.MACHINE is not None and not skip_relax:
make_vasp_relax(jdata, mdata)
run_vasp_relax(jdata, mdata)
else:
Expand Down

0 comments on commit 58c7674

Please sign in to comment.