anchor.diff:                 CALL CleanUp()
                  RETURN
               END IF
  -
  +            
  +         ELSE
  +            
  +            p%WAMIT2%NumOuts = 0  !This doesn't get initialized if we don't call WAMIT2_Init
   
            ENDIF
   
  
positive.code: 
           ! The acceleration, velocity, and dynamic pressures will get added to the parts passed to the morrison module later...
  
        ENDIF
  
  
  
negative.code: 
           InitLocal%Waves2%WaveElevC0   = Waves_InitOut%WaveElevC0
           InitLocal%Waves2%WaveDirArr   = Waves_InitOut%WaveDirArr
  !bjj: note that this doesn't get called if .not. (InitLocal%Waves2%WvDiffQTFF .OR. InitLocal%Waves2%WvSumQTFF), so p%waves2%* never get set
  ! however, they get queried later in the code!!!!
  
           CALL Waves2_Init(InitLocal%Waves2, u%Waves2, p%Waves2, x%Waves2, xd%Waves2, Waves2_z, OtherState%Waves2, &
                                   y%Waves2, Interval, InitOut%Waves2, ErrStat2, ErrMsg2 )
  