Skip to content

Commit 14bcc19

Browse files
authored
Merge pull request #282 from OpenBioSim/release_2024.4.0
Release 2024.4.0
2 parents 2f671a7 + cb9f92d commit 14bcc19

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+4189
-2253
lines changed

corelib/src/libs/SireCAS/lambdaschedule.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -1032,8 +1032,12 @@ bool LambdaSchedule::hasForceSpecificEquation(const QString &stage,
10321032

10331033
if (force == "*")
10341034
return false;
1035-
else
1036-
return this->stage_equations[idx].contains(_get_lever_name(force, lever));
1035+
1036+
// If there is a default equation for this force, always return true
1037+
if (this->stage_equations[idx].contains(_get_lever_name(force, "*")))
1038+
return true;
1039+
1040+
return this->stage_equations[idx].contains(_get_lever_name(force, lever));
10371041
}
10381042

10391043
SireCAS::Expression LambdaSchedule::_getEquation(int stage,

corelib/src/libs/SireIO/sdf.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,13 @@ SDFMolecule parseMolecule(const Molecule &molecule, QStringList &errors, const P
959959
sdfmol.addProperty("CHG", i + 1, QString::number(charge));
960960
charge = 0;
961961
}
962+
else if (charge > 0)
963+
{
964+
if (charge < 4)
965+
{
966+
charge = 4 - charge;
967+
}
968+
}
962969
else if (charge < 0)
963970
{
964971
switch (charge)

corelib/src/libs/SireMM/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ include_directories(${TBB_INCLUDE_DIR})
1616
# Define the headers in SireMM
1717
set ( SIREMM_HEADERS
1818
amberparams.h
19-
anglerestraint.h
19+
anglerestraints.h
2020
angle.h
2121
atomfunctions.h
2222
atomljs.h
@@ -43,7 +43,7 @@ set ( SIREMM_HEADERS
4343
cljworkspace.h
4444
coulombpotential.h
4545
dihedral.h
46-
dihedralrestraint.h
46+
dihedralrestraints.h
4747
distancerestraint.h
4848
errors.h
4949
excludedpairs.h
@@ -110,7 +110,7 @@ set ( SIREMM_SOURCES
110110

111111
amberparams.cpp
112112
angle.cpp
113-
anglerestraint.cpp
113+
anglerestraints.cpp
114114
atomfunctions.cpp
115115
atomljs.cpp
116116
bond.cpp
@@ -135,7 +135,7 @@ set ( SIREMM_SOURCES
135135
cljworkspace.cpp
136136
coulombpotential.cpp
137137
dihedral.cpp
138-
dihedralrestraint.cpp
138+
dihedralrestraints.cpp
139139
distancerestraint.cpp
140140
errors.cpp
141141
excludedpairs.cpp

0 commit comments

Comments
 (0)