Documentation for module negf_green_cache

Storage to keep precomputed surface Green's functions

source: negf_green_cache.F
Loading...

public Types:

green_functions_cache_type
Storage to keep surface Green's functions.

public Subroutines/Functions:

Reallocate storage so it can handle extra 'nnodes_extra' items for each contact.
Release storage.
Sort cached items in ascending order.

public Types:

TYPE :: green_functions_cache_type

Storage to keep surface Green's functions.


ALLOCATABLE, DIMENSION(:,:) :: g_surf_contacts ...
REAL(dp),
ALLOCATABLE, DIMENSION(:) :: tnodes ...

SUBROUTINEgreen_functions_cache_expand(cache, ncontacts, nnodes_extra)

Reallocate storage so it can handle extra 'nnodes_extra' items for each contact.

Arguments:
INTENT(inout)
:: cache storage to expand
INTEGER,
INTENT(in)
:: ncontacts number of contacts
INTEGER,
INTENT(in)
:: nnodes_extra number of items to add

SUBROUTINEgreen_functions_cache_release(cache)

Release storage.

Arguments:
INTENT(inout)
:: cache storage to release

SUBROUTINEgreen_functions_cache_reorder(cache, tnodes)

Sort cached items in ascending order.

Arguments:
INTENT(inout)
:: cache storage to reorder
REAL(dp),
INTENT(in)
:: tnodes(:) coordinate of items in storage