My Project
Public Member Functions | List of all members
mod_ncll::delete_att_link Interface Reference

Public Member Functions

subroutine delete_ncf_attp_byname (LIST, NAME, FOUND)
 
subroutine delete_ncf_attp_byattid (LIST, ATTID, FOUND)
 
subroutine delete_var_attp_byname (LIST, NAME, FOUND)
 
subroutine delete_var_attp_byattid (LIST, ATTID, FOUND)
 

Detailed Description

Definition at line 242 of file mod_ncll.f90.

Member Function/Subroutine Documentation

◆ delete_ncf_attp_byattid()

subroutine mod_ncll::delete_att_link::delete_ncf_attp_byattid ( type(ncfile), intent(inout)  LIST,
integer, intent(in)  ATTID,
logical, intent(out)  FOUND 
)

Definition at line 1615 of file mod_ncll.f90.

1615  IMPLICIT NONE
1616  TYPE(NCFILE), INTENT(INOUT):: LIST
1617  INTEGER, INTENT(IN) :: ATTID
1618  LOGICAL, INTENT(OUT) :: FOUND
1619  TYPE(NCATTP) ,POINTER :: CURRENT, PREVIOUS
1620 
1621  previous => list%ATTS
1622  current => previous%NEXT
1623  found = .false.
1624 
1625  DO
1626  IF(.NOT. ASSOCIATED(current)) RETURN !END OF LIST
1627 
1628  IF( attid == current%ATT%ATTID ) THEN ! FOUND THE FILE LINK
1629  found = .true.
1630  EXIT
1631  ELSE
1632  previous => previous%NEXT
1633  current => current%NEXT
1634  END IF
1635  END DO
1636 
1637  ! IF FOUND DELETE IT
1638  previous%NEXT => current%NEXT
1639  CALL kill_att(current%ATT)
1640  DEALLOCATE(current)
1641 

◆ delete_ncf_attp_byname()

subroutine mod_ncll::delete_att_link::delete_ncf_attp_byname ( type(ncfile), intent(inout)  LIST,
character(len=*), intent(in)  NAME,
logical, intent(out)  FOUND 
)

Definition at line 1584 of file mod_ncll.f90.

1584  IMPLICIT NONE
1585  TYPE(NCFILE), INTENT(INOUT):: LIST
1586  CHARACTER(LEN=*),INTENT(IN) :: NAME
1587  LOGICAL, INTENT(OUT) :: FOUND
1588  TYPE(NCATTP) ,POINTER :: CURRENT, PREVIOUS
1589 
1590  previous => list%ATTS
1591  current => previous%NEXT
1592  found = .false.
1593 
1594  DO
1595  IF(.NOT. ASSOCIATED(current)) RETURN !END OF LIST
1596 
1597  IF( name == current%ATT%ATTNAME ) THEN ! FOUND THE FILE LINK
1598  found = .true.
1599  EXIT
1600  ELSE
1601  previous => previous%NEXT
1602  current => current%NEXT
1603  END IF
1604  END DO
1605 
1606  ! IF FOUND DELETE IT
1607  previous%NEXT => current%NEXT
1608  CALL kill_att(current%ATT)
1609  DEALLOCATE(current)
1610 

◆ delete_var_attp_byattid()

subroutine mod_ncll::delete_att_link::delete_var_attp_byattid ( type(ncvar), intent(inout)  LIST,
integer, intent(in)  ATTID,
logical, intent(out)  FOUND 
)

Definition at line 1699 of file mod_ncll.f90.

1699  IMPLICIT NONE
1700  TYPE(NCVAR), INTENT(INOUT):: LIST
1701  INTEGER, INTENT(IN) :: ATTID
1702  LOGICAL, INTENT(OUT) :: FOUND
1703  TYPE(NCATTP), POINTER :: CURRENT, PREVIOUS
1704 
1705  previous => list%ATTS
1706  current => previous%NEXT
1707  found = .false.
1708 
1709  DO
1710  IF(.NOT. ASSOCIATED(current)) RETURN !END OF LIST
1711 
1712  IF( attid == current%ATT%ATTID ) THEN ! FOUND THE FILE LINK
1713  found = .true.
1714  EXIT
1715  ELSE
1716  previous => previous%NEXT
1717  current => current%NEXT
1718  END IF
1719  END DO
1720 
1721  ! IF FOUND DELETE IT
1722  previous%NEXT => current%NEXT
1723  CALL kill_att(current%ATT)
1724  DEALLOCATE(current)
1725 

◆ delete_var_attp_byname()

subroutine mod_ncll::delete_att_link::delete_var_attp_byname ( type(ncvar), intent(inout)  LIST,
character(len=*), intent(in)  NAME,
logical, intent(out)  FOUND 
)

Definition at line 1667 of file mod_ncll.f90.

1667  IMPLICIT NONE
1668  TYPE(NCVAR), INTENT(INOUT):: LIST
1669 ! CHARACTER(LEN=NF90_MAX_NAME+1),INTENT(IN) :: NAME
1670  CHARACTER(LEN=*),INTENT(IN) :: NAME
1671  LOGICAL, INTENT(OUT) :: FOUND
1672  TYPE(NCATTP) ,POINTER :: CURRENT, PREVIOUS
1673 
1674  previous => list%ATTS
1675  current => previous%NEXT
1676  found = .false.
1677 
1678  DO
1679  IF(.NOT. ASSOCIATED(current)) RETURN !END OF LIST
1680 
1681  IF( name == current%ATT%ATTNAME ) THEN ! FOUND THE FILE LINK
1682  found = .true.
1683  EXIT
1684  ELSE
1685  previous => previous%NEXT
1686  current => current%NEXT
1687  END IF
1688  END DO
1689 
1690  ! IF FOUND DELETE IT
1691  previous%NEXT => current%NEXT
1692  CALL kill_att(current%ATT)
1693  DEALLOCATE(current)
1694 

The documentation for this interface was generated from the following file: