Documentation for module pw_types

...

source: pw_types.F
Loading...

public Types:

pw_p_type
...
pw_type
...

public Subroutines/Functions:

allocates and initializes pw_type
SUBROUTINE
pw_release (pw)
releases the given pw
SUBROUTINE
pw_retain (pw)
retains a pw type

Parameters:

INTEGER
:: complexdata1d = 302
INTEGER
:: complexdata3d = 304
INTEGER
:: nodata = 305
INTEGER
:: nospace = 371
INTEGER
:: realdata1d = 301
INTEGER
:: realdata3d = 303
INTEGER
:: realspace = 372
INTEGER
:: reciprocalspace = 373
INTEGER
:: square = 391
INTEGER
:: squareroot = 392

public Types:

TYPE :: pw_p_type

...


TYPE(pw_type),
POINTER :: pw ...

TYPE :: pw_type

...


REAL(dp),
DIMENSION(:), POINTER :: cr ...
REAL(dp),
DIMENSION(:,:,:), POINTER :: cr3d ...
COMPLEX(dp),
DIMENSION(:), POINTER :: cc ...
COMPLEX(dp),
DIMENSION(:,:,:), POINTER :: cc3d ...
INTEGER
:: in_use ...
INTEGER
:: in_space ...
INTEGER
:: id_nr ...
INTEGER
:: ref_count ...
POINTER :: pw_grid ...

SUBROUTINEpw_create(pw, pw_grid, use_data, in_space, cr3d_ptr)

allocates and initializes pw_type

Arguments:
TYPE(pw_type),
POINTER
:: pw the type that will bw allocated and initialized
POINTER
:: pw_grid ...
INTEGER,
INTENT(in)
:: use_data which kind of data will be used
INTEGER,
INTENT(in),
OPTIONAL
:: in_space in which space the pw is (real or reciprocal)
REAL(dp),
OPTIONAL, POINTER
:: cr3d_ptr(:,:,:) pointer with the cr3d data (make sense only if use_data==REALDATA3D)

SUBROUTINEpw_release(pw)

releases the given pw

Arguments:
TYPE(pw_type),
POINTER
:: pw the pw to release

SUBROUTINEpw_retain(pw)

retains a pw type

Arguments:
TYPE(pw_type),
POINTER
:: pw the pw to retain