Skip to content

Commit

Permalink
Set default max stepsize for optimization in Gaussian
Browse files Browse the repository at this point in the history
As suggested by Duminda, setting MaxStep = 5 in Gaussian gives better TS
result. The default value in G16 is MaxStep = 30 (less rigorious)
  • Loading branch information
oscarwumit committed Mar 29, 2019
1 parent f96500f commit 58b9831
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arc/job/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,14 +420,14 @@ def write_input_file(self):
if self.job_type in ['conformer', 'opt']:
if self.software == 'gaussian':
if self.is_ts:
job_type_1 = 'opt=(ts, calcfc, noeigentest)'
job_type_1 = 'opt=(ts, calcfc, noeigentest, maxstep=5)'
else:
job_type_1 = 'opt=(calcfc, noeigentest)'
if self.fine:
# Note that the Acc2E argument is not available in Gaussian03
fine = 'scf=(tight, direct) integral=(grid=ultrafine, Acc2E=12)'
if self.is_ts:
job_type_1 = 'opt=(ts, calcfc, noeigentest, tight)'
job_type_1 = 'opt=(ts, calcfc, noeigentest, tight, maxstep=5)'
else:
job_type_1 = 'opt=(calcfc, noeigentest, tight)'
elif self.software == 'qchem':
Expand Down Expand Up @@ -467,14 +467,14 @@ def write_input_file(self):
elif self.job_type == 'optfreq':
if self.software == 'gaussian':
if self.is_ts:
job_type_1 = 'opt=(ts, calcfc, noeigentest)'
job_type_1 = 'opt=(ts, calcfc, noeigentest, maxstep=5)'
else:
job_type_1 = 'opt=(calcfc, noeigentest)'
job_type_2 = 'freq iop(7/33=1)'
if self.fine:
fine = 'scf=(tight, direct) integral=(grid=ultrafine, Acc2E=12)'
if self.is_ts:
job_type_1 = 'opt=(ts, calcfc, noeigentest, tight)'
job_type_1 = 'opt=(ts, calcfc, noeigentest, tight, maxstep=5)'
else:
job_type_1 = 'opt=(calcfc, noeigentest, tight)'
elif self.software == 'qchem':
Expand Down Expand Up @@ -520,7 +520,7 @@ def write_input_file(self):
if self.fine:
fine = 'scf=(tight, direct) integral=(grid=ultrafine, Acc2E=12)'
if self.is_ts:
job_type_1 = 'opt=(ts, calcfc, noeigentest, tight)'
job_type_1 = 'opt=(ts, calcfc, noeigentest, tight, maxstep=5)'
else:
if self.level_of_theory in ['rocbs-qb3']:
# No analytic 2nd derivatives (FC) for these methods
Expand Down

0 comments on commit 58b9831

Please sign in to comment.