Skip to content

Commit a9a4ef6

Browse files
committed
Silently repair intrascale entries that conflict with connectivity.
1 parent ca6e7da commit a9a4ef6

1 file changed

Lines changed: 6 additions & 18 deletions

File tree

corelib/src/libs/SireMM/amberparams.cpp

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,24 +1539,12 @@ QStringList AmberParams::validateAndFix()
15391539
}
15401540
if (has_short_path)
15411541
{
1542-
if (not is_perturbable)
1543-
{
1544-
QMutexLocker lkr(&mutex);
1545-
qWarning().noquote()
1546-
<< QObject::tr(
1547-
"WARNING: Have a 1-4 scaling factor "
1548-
"(%1/%2) between atoms %3:%4 and %5:%6 "
1549-
"that are fewer than 4 bonds apart. "
1550-
"Skipping — connectivity will enforce "
1551-
"their exclusion. This may indicate a "
1552-
"topology issue.")
1553-
.arg(s.coulomb())
1554-
.arg(s.lj())
1555-
.arg(molinfo.name(atm0).value())
1556-
.arg(atm0.value())
1557-
.arg(molinfo.name(atm3).value())
1558-
.arg(atm3.value());
1559-
}
1542+
// These atoms are fewer than 4 bonds apart so
1543+
// connectivity will enforce their exclusion
1544+
// regardless of what the intrascale says. Repair
1545+
// the entry so exc_atoms is self-consistent.
1546+
QMutexLocker lkr(&mutex);
1547+
new_exc.set(atm0, atm3, CLJScaleFactor(0, 0));
15601548
continue;
15611549
}
15621550
}

0 commit comments

Comments
 (0)