Skip to content

Commit c51040c

Browse files
shazj99Zhengju Sha
authored andcommitted
init_bulk: skip relax if skip_relax is true (deepmodeling#594)
Change-Id: I12cc467e5956a5deb29ac4bd43719db1c0ef8942 Co-authored-by: Zhengju Sha <[email protected]>
1 parent dc204a8 commit c51040c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dpgen/data/gen.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -769,13 +769,14 @@ def gen_init_bulk(args) :
769769
dlog.info("Current stage is 1, relax")
770770
create_path(out_dir)
771771
shutil.copy2(args.PARAM, os.path.join(out_dir, 'param.json'))
772+
skip_relax = jdata['skip_relax']
772773
if from_poscar :
773774
make_super_cell_poscar(jdata)
774775
else :
775776
make_unit_cell(jdata)
776777
make_super_cell(jdata)
777778
place_element(jdata)
778-
if args.MACHINE is not None:
779+
if args.MACHINE is not None and not skip_relax:
779780
make_vasp_relax(jdata, mdata)
780781
run_vasp_relax(jdata, mdata)
781782
else:

0 commit comments

Comments
 (0)