Documentation for module lgrid_types

Scratch space for multiple threads writing to rs grids (see qs_collocate_density.F for an example)

source: lgrid_types.F
Loading...

public Types:

lgrid_type
...

public Subroutines/Functions:

allocates the lgrid for a given number of threads
creates an lgrid, ldim set based on the rs_grid_descriptors. The grid is not allocated
SUBROUTINE
lgrid_release (lgrid)
releases the given lgrid (see doc/ReferenceCounting.html)

public Types:

TYPE :: lgrid_type

...


INTEGER
:: ldim ...
INTEGER
:: ref_count ...
REAL(dp),
DIMENSION(:,:), POINTER :: r ...

SUBROUTINElgrid_allocate_grid(lgrid, nthreads)

allocates the lgrid for a given number of threads

Arguments:
TYPE(lgrid_type),
POINTER
:: lgrid the lgrid_type for which the grid will be allocated
INTEGER,
INTENT(in)
:: nthreads how many threads to allocate for

SUBROUTINElgrid_create(lgrid, rs_descs)

creates an lgrid, ldim set based on the rs_grid_descriptors. The grid is not allocated

Arguments:
TYPE(lgrid_type),
POINTER
:: lgrid the lgrid that gets created
POINTER
:: rs_descs(:) the rs grid descriptors used to set the lgrid size

SUBROUTINElgrid_release(lgrid)

releases the given lgrid (see doc/ReferenceCounting.html)

Arguments:
TYPE(lgrid_type),
POINTER
:: lgrid the lgrid_type to release