********> bugfix.24 Author: Bill Ross Date: 3/22/98 Programs: Carnal Severity: Moderate Description: In TORSION BACKBONE, if the last molecule has <4 main-chain atoms and the previous molecule with >4 main-chain atoms formed a cycle, the program may exit with the message, "programming error." (This is because the "cycle flag" on the previous molecule was being overwritten by the "end of molecule" flag on the last molecule, due to an index error.) Fix: Make the following change to pointax.c: -------------------------------------------------------------------------- *** OLD pointax.c --- NEW pointax.c *************** *** 533,539 * not enough 4 torsion - back up */ smallmol++; ! iarr = iarr_first-1; if (iarr < 0) iarr = 0; iarr_last = iarr; } else { --- 533,539 ----- * not enough 4 torsion - back up */ smallmol++; ! iarr = iarr_first; if (iarr < 0) iarr = 0; iarr_last = iarr; } else { --------------------------------------------------------------------------