Skip to content

Commit d05bee0

Browse files
author
Tosco, Paolo
committed
Merge remote-tracking branch 'upstream/main' into pre-release
2 parents 647ba4f + 466360b commit d05bee0

29 files changed

+118
-0
lines changed

src/main/C/common/utilities.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,6 +1584,22 @@ void MakeSomeHydrogensImplicit(struct reaccs_molecule_t *mp,
15841584
cp += 2*(1+3);
15851585
}
15861586
}
1587+
else if (0 == strncmp(hp->text, "M ISO", strlen("M ISO")))
1588+
{
1589+
int niso, iatom, ival;
1590+
sscanf(hp->text+strlen("M ISO"), "%d", &niso);
1591+
cp = hp->text+strlen("M ISO")+3;
1592+
for (ii=0; ii<niso; ii++)
1593+
{
1594+
sscanf(cp, "%d %d", &iatom, &ival);
1595+
if (iatom > hnr)
1596+
{
1597+
iatom--;
1598+
sprintf(cp, " %3d %3d", iatom, ival);
1599+
}
1600+
cp += 2*(1+3);
1601+
}
1602+
}
15871603
else if (0 != strncmp(hp->text, "M ALS", strlen("M ALS")))
15881604
{
15891605
fprintf(stderr, "need to fix line '%s'\n", hp->text);
104 KB
Binary file not shown.
880 KB
Binary file not shown.
18.7 KB
Binary file not shown.
891 KB
Binary file not shown.
976 KB
Binary file not shown.
1.03 MB
Binary file not shown.
1.05 MB
Binary file not shown.
1.05 MB
Binary file not shown.
1.05 MB
Binary file not shown.

0 commit comments

Comments
 (0)