********> bugfix.38 Author: Bill Ross Date: 9/5/95 Programs: leap Severity: slight Problem: Can't saveamberpampert when no atom perturbation is defined. Affects: Prevents setting up a pure PMF perturbation in leap. Cause: Overzealous attempt to prevent users from shooting feet. Fix: Make the following change to unitio.c (line #s may not be exact): ------------------------------------------------------------------------- *** OLD unitio.c --- NEW unitio.c *************** *** 3595,3606 } if ( bPert && iCountPerturbed == 0 ) { ! VP0(( "%s %s\n\tSave aborted.", ! " No pert atoms defined", ! " (PERTURB 'true' in 'Edit selected atoms')" )); ! VarArrayDestroy( &vaExcludedAtoms ); ! VarArrayDestroy( &vaExcludedCount ); ! RETURNV; } --- 3620,3627 ----- VarArrayAdd( vaExcludedCount, &iCount ); } if ( bPert && iCountPerturbed == 0 ) { ! VP0(( " (No pert atoms defined - %s\n", ! "this 'pert' topology file is only good for PMF.)")); } /* Build the NON-BOND arrays that AMBER needs */ ------------------------------------------------------------------------- Temporary workarounds: One could try perturbing an atom to itself to work around this restriction. Routines affected: saveamberparmpert --