Type representing the \(\mathrm{ID}\) on a 3D lattice
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
double precision, | public, | DIMENSION(:,:,:,:), ALLOCATABLE | :: | coords | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | g_xx | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | g_xy | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | g_xz | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | g_yy | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | g_yz | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | g_zz | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | k_xx | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | k_xy | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | k_xz | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | k_yy | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | k_yz | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | k_zz | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | lapse | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | mass_density | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | pressure | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | shift_x | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | shift_y | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | shift_z | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | specific_energy | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | v_eul_x | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | v_eul_y | |||
double precision, | public, | DIMENSION(:,:,:), ALLOCATABLE | :: | v_eul_z |
Allocates memory for all the member arrays
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(id_lattice), | intent(inout) | :: | this | |||
integer, | intent(in) | :: | nx | |||
integer, | intent(in) | :: | ny | |||
integer, | intent(in) | :: | nz |
Deallocates memory for all the member arrays
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(id_lattice), | intent(inout) | :: | this |
TYPE id_lattice
!! Type representing the |id| on a 3D lattice
DOUBLE PRECISION, DIMENSION(:,:,:,:), ALLOCATABLE:: coords
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: lapse
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: shift_x
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: shift_y
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: shift_z
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: g_xx
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: g_xy
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: g_xz
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: g_yy
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: g_yz
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: g_zz
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: k_xx
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: k_xy
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: k_xz
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: k_yy
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: k_yz
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: k_zz
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: mass_density
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: specific_energy
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: pressure
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: v_eul_x
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: v_eul_y
DOUBLE PRECISION, DIMENSION(:,:,:), ALLOCATABLE:: v_eul_z
CONTAINS
PROCEDURE:: allocate_lattice_memory
!! Allocates memory for all the member arrays
PROCEDURE:: deallocate_lattice_memory
!! Deallocates memory for all the member arrays
END TYPE id_lattice