Repository navigation
Examples geometry optimization
On the GPU each optimization cycle starts from the orbitals of the previous one, already in device memory: a cycle of crambin (642 atoms) takes about 0.27 s on an A100, one of adenylate kinase (6 689 atoms) about 1.7 s.
New keyword. The line searches of the default L-BFGS-B fail on the small noise of the MOZYME SCF. TRUST is a trust-region L-BFGS: the step radius is halved when a step went past the minimum along its direction, doubled when a limited step was still downhill, and no step is ever undone, so the localized orbitals of the last SCF stay valid for the next one. Give enough CYCLES: TRUST writes no restart file, and at the cycle limit no ARC or PDB file either (see example 23). Full description: TRUST.
Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb
PM7 MOZYME TRUST CYCLES=200 GEO_DAT="1UAO_opt.pdb" PDBOUT
Chignolin, optimization
Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=3.
GNORM=n (standard MOPAC) ends the optimization when the gradient norm falls below n kcal/mol/Å.
Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb
PM7 MOZYME TRUST GNORM=5 CYCLES=500 GEO_DAT="1UAO_opt.pdb" PDBOUT
Chignolin, optimization to GNORM 5
Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=3.
New keyword. The PM6-DH+ / PM7 hydrogen-bond correction has kinks in its angular terms; an optimizer or a dynamics run can get stuck on them. HB-SMOOTH replaces them by smooth functions (the QM/MM driver always uses it).
Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb
PM7 MOZYME TRUST HB-SMOOTH CYCLES=200 GEO_DAT="1UAO_opt.pdb" PDBOUT
Chignolin, optimization with smooth H-bond terms
Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=3.
With the default optimizer (no TRUST), MOPAC leaves a restart file <input>.res when it stops at the cycle limit. Run the same input with RESTART; CYCLES then counts the further cycles (the GPU starts a fresh SCF, the geometry and Hessian come from the file).
Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb
PM7 MOZYME CYCLES=200 RESTART GEO_DAT="1UAO_opt.pdb" PDBOUT
Chignolin, optimization continued
TRUST writes no restart file (RESTART then stops with RESTART file '<input>.res' does not exist.), and at the cycle limit no ARC or PDB file either. The output of a TRUST run that stopped at the cycle limit ends with the last geometry as a complete MOPAC data set, after CURRENT VALUE OF HEAT OF FORMATION: copy it, from its keyword line to its last atom, into a new input file and run that.
Checked: with the CPU build of release v1.2-gpu (commit 323b6076): an optimization without TRUST stopped at CYCLES=3 and continued with RESTART for 6 more cycles; a TRUST run stopped at CYCLES=3 and continued from the data set copied from its output.
After an optimization with the default optimizer, a 1SCF RESTART job reads the last geometry from the restart file and writes it with PDBOUT.
Copy next to the input: tests/data/mozyme_gpu_reference/1UAO_opt.pdb
PM7 MOZYME 1SCF RESTART PDBOUT GEO_DAT="1UAO_opt.pdb"
Final geometry of the optimization
Checked: with the CPU build of release v1.2-gpu (commit 323b6076), after the runs of example 23; it wrote <input>.pdb.
OPT("label"=d) (standard MOPAC) optimizes only the atoms within d Å of the atoms whose PDB label contains the text; the rest stays fixed. Here: within 4 Å of residue 46 of crambin.
Copy next to the input: tests/data/mozyme_gpu_reference/1CRN_opt.pdb
PM7 MOZYME TRUST CYCLES=100 OPT("A46"=4) GEO_DAT="1CRN_opt.pdb" PDBOUT
Crambin, around residue 46
Checked: runs with the CPU build of release v1.2-gpu (commit 323b6076, 2026-11-20), shortened to CYCLES=1.
Barranquilla MOPAC is an independent derivative of MOPAC (Apache License 2.0), not affiliated with or endorsed by MolSSI or Virginia Tech. Repository · Releases
Examples