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

Public Member Functions

subroutine delete_ncf_dimp_list (LIST)
 
subroutine delete_var_dimp_list (LIST)
 

Detailed Description

Definition at line 290 of file mod_ncll.f90.

Member Function/Subroutine Documentation

◆ delete_ncf_dimp_list()

subroutine mod_ncll::delete_dim_list::delete_ncf_dimp_list ( type(ncfile), intent(inout)  LIST)

Definition at line 2396 of file mod_ncll.f90.

2396  IMPLICIT NONE
2397  TYPE(NCFILE), INTENT(INOUT):: LIST
2398  TYPE(NCDIMP) ,POINTER :: CURRENT, PREVIOUS
2399 
2400  previous => list%DIMS
2401  current => previous%NEXT
2402  DO
2403  IF(.NOT. ASSOCIATED(current)) RETURN !END OF LIST
2404 
2405  ! IF FOUND DELETE IT
2406  previous%NEXT => current%NEXT
2407  CALL kill_dim(current%DIM)
2408  DEALLOCATE(current)
2409  current => previous%NEXT
2410 
2411  END DO
2412 

◆ delete_var_dimp_list()

subroutine mod_ncll::delete_dim_list::delete_var_dimp_list ( type(ncvar), intent(inout)  LIST)

Definition at line 2506 of file mod_ncll.f90.

2506  IMPLICIT NONE
2507  TYPE(NCVAR), INTENT(INOUT):: LIST
2508  TYPE(NCDIMP) ,POINTER :: CURRENT, PREVIOUS
2509 
2510  previous => list%DIMS
2511  current => previous%NEXT
2512 
2513  DO
2514  IF(.NOT. ASSOCIATED(current)) RETURN !END OF LIST
2515 
2516  previous%NEXT => current%NEXT
2517  IF(.NOT. ASSOCIATED(current%DIM))THEN
2518 ! CALL PRINT_VAR(LIST)
2519  CALL fatal_error("VARIABLE HAS UNASSOCIATED DIMENSION IN LIST?")
2520  END IF
2521 
2522  IF(current%DIM%DIMID==-1) THEN
2523  call kill_dim(current%DIM) ! IT BELONGS TO THE VAR ONLY, NOT PART
2524  ! OF A FILE
2525  ELSE
2526  NULLIFY(current%DIM) ! DO NOT DEALLOCATE POINTER, IT
2527  ! BELONGS TO A FILE
2528  END IF
2529 
2530  DEALLOCATE(current)
2531  current => previous%NEXT
2532 
2533  END DO
2534 

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