anchor.diff:      DEALLOCATE(mask2)
     END IF
    END SUBROUTINE NWTC_Library_UnPackMeshMapType
  +
   !*********************************************************************************************************************************
   !ENDOFREGISTRYGENERATEDFILE
   
  
positive.code: DO i1 = LBOUND(MeshMapTypeData%MapLoads,1), UBOUND(MeshMapTypeData%MapLoads,1)
    CALL NWTC_Library_Destroymaptype( MeshMapTypeData%MapLoads(i1), ErrStat, ErrMsg )
  ENDDO
     DEALLOCATE(MeshMapTypeData%MapLoads)
  ENDIF
  IF (ALLOCATED(MeshMapTypeData%MapMotions)) THEN
  DO i1 = LBOUND(MeshMapTypeData%MapMotions,1), UBOUND(MeshMapTypeData%MapMotions,1)
    CALL NWTC_Library_Destroymaptype( MeshMapTypeData%MapMotions(i1), ErrStat, ErrMsg )
  ENDDO
     DEALLOCATE(MeshMapTypeData%MapMotions)
  ENDIF
  IF (ALLOCATED(MeshMapTypeData%MapSrcToAugmt)) THEN
  DO i1 = LBOUND(MeshMapTypeData%MapSrcToAugmt,1), UBOUND(MeshMapTypeData%MapSrcToAugmt,1)
    CALL NWTC_Library_Destroymaptype( MeshMapTypeData%MapSrcToAugmt(i1), ErrStat, ErrMsg )
  ENDDO
     DEALLOCATE(MeshMapTypeData%MapSrcToAugmt)
  ENDIF
    CALL MeshDestroy( MeshMapTypeData%Augmented_Ln2_Src, ErrStat, ErrMsg )
    CALL MeshDestroy( MeshMapTypeData%Lumped_Points_Src, ErrStat, ErrMsg )
  IF (ALLOCATED(MeshMapTypeData%LoadLn2_A_Mat_Piv)) THEN
     DEALLOCATE(MeshMapTypeData%LoadLn2_A_Mat_Piv)
  ENDIF
  IF (ALLOCATED(MeshMapTypeData%DisplacedPosition)) THEN
     DEALLOCATE(MeshMapTypeData%DisplacedPosition)
  ENDIF
  IF (ALLOCATED(MeshMapTypeData%LoadLn2_F)) THEN
     DEALLOCATE(MeshMapTypeData%LoadLn2_F)
  ENDIF
  IF (ALLOCATED(MeshMapTypeData%LoadLn2_A_Mat)) THEN
     DEALLOCATE(MeshMapTypeData%LoadLn2_A_Mat)
  ENDIF
  IF (ALLOCATED(MeshMapTypeData%LoadLn2_M)) THEN
     DEALLOCATE(MeshMapTypeData%LoadLn2_M)
  ENDIF
   END SUBROUTINE NWTC_Library_DestroyMeshMapType
  
  
negative.code: END SUBROUTINE Lump_Line2_to_Point
  !==================================================================================================================================
  !bjj: these routines require the use of ModMesh.f90, thus they cannot be part of NWTC_Library_Types.f90:
  !STARTOFREGISTRYGENERATEDFILE 'NWTC_Library_Types.f90'
  !
  ! WARNING This file is generated automatically by the FAST registry
  ! Do not edit.  Your changes to this file will be lost.
  !
  ! FAST Registry (v2.08.03, 2-Oct-2015)
  !*********************************************************************************************************************************
   SUBROUTINE NWTC_Library_CopyMapType( SrcMapTypeData, DstMapTypeData, CtrlCode, ErrStat, ErrMsg )
     TYPE(MapType), INTENT(IN) :: SrcMapTypeData
  