Skip to content

Commit

Permalink
Merge pull request #282 from OpenBioSim/release_2024.4.0
Browse files Browse the repository at this point in the history
Release 2024.4.0
  • Loading branch information
lohedges authored Feb 5, 2025
2 parents 2f671a7 + cb9f92d commit 14bcc19
Show file tree
Hide file tree
Showing 70 changed files with 4,189 additions and 2,253 deletions.
8 changes: 6 additions & 2 deletions corelib/src/libs/SireCAS/lambdaschedule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1032,8 +1032,12 @@ bool LambdaSchedule::hasForceSpecificEquation(const QString &stage,

if (force == "*")
return false;
else
return this->stage_equations[idx].contains(_get_lever_name(force, lever));

// If there is a default equation for this force, always return true
if (this->stage_equations[idx].contains(_get_lever_name(force, "*")))
return true;

return this->stage_equations[idx].contains(_get_lever_name(force, lever));
}

SireCAS::Expression LambdaSchedule::_getEquation(int stage,
Expand Down
7 changes: 7 additions & 0 deletions corelib/src/libs/SireIO/sdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,13 @@ SDFMolecule parseMolecule(const Molecule &molecule, QStringList &errors, const P
sdfmol.addProperty("CHG", i + 1, QString::number(charge));
charge = 0;
}
else if (charge > 0)
{
if (charge < 4)
{
charge = 4 - charge;
}
}
else if (charge < 0)
{
switch (charge)
Expand Down
8 changes: 4 additions & 4 deletions corelib/src/libs/SireMM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ include_directories(${TBB_INCLUDE_DIR})
# Define the headers in SireMM
set ( SIREMM_HEADERS
amberparams.h
anglerestraint.h
anglerestraints.h
angle.h
atomfunctions.h
atomljs.h
Expand All @@ -43,7 +43,7 @@ set ( SIREMM_HEADERS
cljworkspace.h
coulombpotential.h
dihedral.h
dihedralrestraint.h
dihedralrestraints.h
distancerestraint.h
errors.h
excludedpairs.h
Expand Down Expand Up @@ -110,7 +110,7 @@ set ( SIREMM_SOURCES

amberparams.cpp
angle.cpp
anglerestraint.cpp
anglerestraints.cpp
atomfunctions.cpp
atomljs.cpp
bond.cpp
Expand All @@ -135,7 +135,7 @@ set ( SIREMM_SOURCES
cljworkspace.cpp
coulombpotential.cpp
dihedral.cpp
dihedralrestraint.cpp
dihedralrestraints.cpp
distancerestraint.cpp
errors.cpp
excludedpairs.cpp
Expand Down
Loading

0 comments on commit 14bcc19

Please sign in to comment.