********>Bugfix 1:
Author: Dave Case
Date: 04/21/2006

Programs: ptraj

Description: ptraj.c has a executable statement before declarations inside a
             block.  This is not correct, but most compilers allow it.

Fix:  apply the following patch to amber9/src/ptraj/ptraj.c

------------------------------------------------------------------------------
*** ptraj.c	3 Apr 2006 23:35:48 -0000	9.0
--- ptraj.c	21 Apr 2006 15:08:09 -0000
***************
*** 4033,4044 ****
       *  Do recursive calls as necessary for outputing LES trajectories
       */
    if ( outInfo->les_action != LES_NONE && outInfo->les_status == LES_READY ) {
-     outInfo->les_status = LES_DONE;
      int natomCL = lesSize( atoms );
    
      double* xrep = safe_malloc( sizeof( double ) * natomCL );
      double* yrep = safe_malloc( sizeof( double ) * natomCL );
      double* zrep = safe_malloc( sizeof( double ) * natomCL );
  
      if ( outInfo->les_action == LES_SPLIT ) {
        int icopy=0;
--- 4033,4045 ----
       *  Do recursive calls as necessary for outputing LES trajectories
       */
    if ( outInfo->les_action != LES_NONE && outInfo->les_status == LES_READY ) {
      int natomCL = lesSize( atoms );
    
      double* xrep = safe_malloc( sizeof( double ) * natomCL );
      double* yrep = safe_malloc( sizeof( double ) * natomCL );
      double* zrep = safe_malloc( sizeof( double ) * natomCL );
+ 
+     outInfo->les_status = LES_DONE;
  
      if ( outInfo->les_action == LES_SPLIT ) {
        int icopy=0;
------------------------------------------------------------------------------

Temporary workarounds: none