anchor.diff:     ErrStat = ErrID_None
      ErrMsg  = ""
            
  +      
      IF(InputFileData%analysis_type .NE. 1 .AND. InputFileData%analysis_type .NE. 2) &
          CALL SetErrStat ( ErrID_Fatal, 'Analysis type must be 1 (static) or 2 (dynamic)', ErrStat, ErrMsg, RoutineName )
      IF(InputFileData%rhoinf .LT. 0.0_BDKi .OR. InputFileData%rhoinf .GT. 1.0_BDKi) &
  
positive.code:        CALL SetErrStat ( ErrID_Fatal, 'member_total must be greater than 0', ErrStat, ErrMsg, RoutineName )
     IF(InputFileData%member_total .NE. 1 .AND. InputFileData%quadrature .EQ. 2) &
         CALL SetErrStat ( ErrID_Fatal, 'Trapzoidal quadrature only allows one member (element)', ErrStat, ErrMsg, RoutineName )
     IF(InputFileData%kp_total .LT. 3 ) &
         CALL SetErrStat ( ErrID_Fatal, 'kp_total must be greater than or equal to 3', ErrStat, ErrMsg, RoutineName )
     DO i=1,InputFileData%member_total
         IF(InputFileData%kp_member(i) .LT. 3) THEN
            CALL SetErrStat(ErrID_Fatal,'There must be at least three key points in '//TRIM(Num2LStr(i))//'th member.', ErrStat, ErrMsg,RoutineName)
  
negative.code:          end if
           
     InputFileData%kp_member = 0
     temp_int = 0
     DO i=1,InputFileData%member_total
        ! bjj: we cannot read j, InputFileData%kp_member(j) because j could be outside the valid range:
  