--- ptraj.c 2010-04-19 08:24:36.125000000 -0400 +++ ptraj.c 2010-04-19 08:12:45.609375000 -0400 @@ -7398,8 +7398,12 @@ if (action->type != TRANSFORM_NOOP && action->type != TRANSFORM_TRANSFORM) { - // Update maxFrames of each action with # sets actually processed - action->state->maxFrames = processed; + /* Update maxFrames of each action with # sets actually processed + * Only do this if unable to calculate the total number of frames, + * by definition this means this is not an MPI run. + */ + if (action->state->maxFrames<0) + action->state->maxFrames = processed; for (i=0; i<6; i++) boxnew[i] = box[i]; action->fxn(action, X, Y, Z, boxnew, PTRAJ_PRINT);