********> bugfix.64 Correction Author: David A. Pearlman Correction Date: 06/13/94 Programs: Sander Severity: slight Problem: Although the documentation describes the availability of the option NTT <= -2, an attempt to set NTT<-2 would result in SANDER stopping with the error message NTT (ntt_value) must be in -2..5. Affects: Program would terminate immediately with NTT<-2. Cause: An inappropriate bounds check on the value of NTT was being performed. Fix: Make the following changes to routine MDREAD in sander ---Sander: Module mdread.f ----------------------------- *** OLD mdread.f --- NEW mdread.f *************** *** 575,582 **** write(6,'(/2x,a,i3,a)') 'NRUN (',nrun,') must be >= 0.' inerr = 1 endif ! if (ntt.lt.-2 .or. ntt.gt.5) then ! write(6,'(/2x,a,i3,a)') 'NTT (',ntt,') must be in -2..5.' inerr = 1 endif c --- 576,583 ---- write(6,'(/2x,a,i3,a)') 'NRUN (',nrun,') must be >= 0.' inerr = 1 endif ! if (ntt.gt.5) then ! write(6,'(/2x,a,i3,a)') 'NTT (',ntt,') must be <=5' inerr = 1 endif c ------------------------------------------------------------------------------ Temporary workarounds: None. Routines affected: SANDER file amber4/src/sander/mdread.f --