********> bugfix 2.
Author: Dave Case
Date:   8 April 2008

Programs: NAB

Severity: major for MPI 

Description:  The readparm() routine also doesn't work correctly for MPI

Fix:  Apply the following fix to amber10/src/nab/prm.c

diff -c -r5.20 prm.c
*** prm.c	17 Mar 2008 20:43:16 -0000	5.20
--- prm.c	8 Apr 2008 21:09:43 -0000
***************
*** 819,829 ****
  #else
           fscanf(file, " %f", &prm->Pn[i]);
  #endif
!       }
!       if( prm->Pn[i] == 0 ){
!          fprintf( stderr, 
!             "Found an invalid periodicity in the prmtop file: %d\n", i );
!          exit(1);
        }
     }
  
--- 819,829 ----
  #else
           fscanf(file, " %f", &prm->Pn[i]);
  #endif
!          if( prm->Pn[i] == 0 ){
!             fprintf( stderr, 
!                "Found an invalid periodicity in the prmtop file: %d\n", i );
!             exit(1);
!          }
        }
     }
  

---------------------------------------------------------------------------
Workarounds:  none.