Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 27, 2024
1 parent 2c73442 commit a20f551
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/python/structurefinder/pyberny/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from simde import TotalEnergy, EnergyNuclearGradientStdVectorD
from berny import Berny, geomlib, optimize


class GeomoptViaPyberny(pp.ModuleBase):

def __init__(self):
Expand All @@ -24,7 +25,7 @@ def __init__(self):
self.description("Performs PyBerny optimization")
self.add_submodule(TotalEnergy(), "Energy")
self.add_submodule(EnergyNuclearGradientStdVectorD(), "Gradient")

def run_(self, inputs, submods):
pt = TotalEnergy()
mol, = pt.unwrap_inputs(inputs)
Expand All @@ -42,7 +43,8 @@ def run_(self, inputs, submods):

for geom in optimizer:
energy = submods["Energy"].run_as(TotalEnergy(), geom)
gradients = submods["Gradient"].run_as(EnergyNuclearGradientStdVectorD(), geom)
gradients = submods["Gradient"].run_as(
EnergyNuclearGradientStdVectorD(), geom)
optimizer.send((energy, gradients))

relaxed = geom
Expand Down

0 comments on commit a20f551

Please sign in to comment.