Skip to content

Commit

Permalink
Merge pull request #60 from vanderhe/updateKeyword
Browse files Browse the repository at this point in the history
Update maximum absolute gradient element keyword
  • Loading branch information
bhourahine authored Feb 2, 2024
2 parents 93bee90 + b4b6a50 commit f72b955
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
20 changes: 20 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

version: 2

build:
os: ubuntu-22.04
tools:
python: "3.12"

sphinx:
configuration: docs/conf.py

formats:
- pdf
- epub

python:
install:
- requirements: requirements.txt
2 changes: 1 addition & 1 deletion docs/_archives/recipes/basics/firstcalc/dftb_in.hsd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Driver = GeometryOptimization {
MovedAtoms = 1:-1
MaxSteps = 100
OutputPrefix = "geom.out"
Convergence {GradAMax = 1E-4}
Convergence {GradElem = 1E-4}
}

Hamiltonian = DFTB {
Expand Down
11 changes: 5 additions & 6 deletions docs/basics/firstcalc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ looks as follows::
MovedAtoms = 1:-1
MaxSteps = 100
OutputPrefix = "geom.out"
Convergence {GradAMax = 1E-4}
Convergence {GradElem = 1E-4}
}

Hamiltonian = DFTB {
Expand Down Expand Up @@ -137,7 +137,7 @@ In the current example ::
MovedAtoms = 1:-1 # Move all atoms in the system
MaxSteps = 100 # Stop after maximal 100 steps
OutputPrefix = "geom.out" # Final geometry in geom.out.{xyz,gen}
Convergence {GradAMax = 1E-4} # Stop if maximal force below 1E-4 H/a0
Convergence {GradElem = 1E-4} # Stop if maximal force below 1E-4 H/a0
}

the molecule is relaxed using a rational function based optimiser. The
Expand All @@ -164,11 +164,11 @@ units by specifying a unit modifier before the equals sign. This is given in
square brackets. For example instead of the original atomic units, you could
have used ::

GradAMax [eV/AA] = 5.14e-3 # Force in Electronvolts/Angstrom
GradElem [eV/AA] = 5.14e-3 # Force in Electronvolts/Angstrom

or ::

GradAMax [Electronvolt/Angstrom] = 5.14e-3
GradElem [Electronvolt/Angstrom] = 5.14e-3

See the manual for the list of accepted modifiers and additional convergence
criteria supported by the ``Convergence`` block.
Expand Down Expand Up @@ -632,10 +632,9 @@ set::
MaxSteps = 100
OutputPrefix = "geom.out"
Convergence = {
GradAMax = 1E-4
GradElem = 1E-4
Energy = 1.797693134862316E+308
GradNorm = 1.797693134862316E+308
GradElem = 1.000000000000000E-004
DispNorm = 1.797693134862316E+308
DispElem = 1.797693134862316E+308
}
Expand Down

0 comments on commit f72b955

Please sign in to comment.