Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Perminder Singh <[email protected]>
  • Loading branch information
perminder-17 committed Apr 14, 2024
1 parent d050e48 commit 4041288
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions avogadro/qtplugins/forcefield/forcefield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ void Forcefield::optimize()
if (m_molecule == nullptr || m_method == nullptr)
return;

if(!m_molecule->atomCount()){
QMessageBox::information(nullptr, tr("Avogadro"),
tr("No atoms provided for optimization"));
if (!m_molecule->atomCount()) {
QMessageBox::information(nullptr, tr("Avogadro"),
tr("No atoms provided for optimization"));
return;
}

// merge all coordinate updates into one step for undo
bool isInteractive = m_molecule->undoMolecule()->isInteractive();
m_molecule->undoMolecule()->setInteractive(true);
Expand Down Expand Up @@ -359,7 +359,7 @@ void Forcefield::energy()
{
if (m_molecule == nullptr || m_method == nullptr)
return;

int n = m_molecule->atomCount();
// we have to cast the current 3d positions into a VectorXd
Core::Array<Vector3> pos = m_molecule->atomPositions3d();
Expand Down

0 comments on commit 4041288

Please sign in to comment.