Octopus
double_grid_oct_m::double_grid_cache_t Type Reference

Persistent, function-independent geometry of the double-grid transpose scatter for one submesh. Everything here depends only on the submesh geometry and the double-grid parameters (divisor, order, coordinate system), NOT on the functions being transformed, so it can be built once with double_grid_cache_init and reused by every double_grid_transform on that submesh. The integer keys are the periodicity/replica-correct rel_x-based keys (relative to the first LOCAL submesh point), so the cache is per-domain under domain decomposition, exactly like the on-the-fly path. More...

Detailed Description

Persistent, function-independent geometry of the double-grid transpose scatter for one submesh. Everything here depends only on the submesh geometry and the double-grid parameters (divisor, order, coordinate system), NOT on the functions being transformed, so it can be built once with double_grid_cache_init and reused by every double_grid_transform on that submesh. The integer keys are the periodicity/replica-correct rel_x-based keys (relative to the first LOCAL submesh point), so the cache is per-domain under domain decomposition, exactly like the on-the-fly path.

Definition at line 168 of file double_grid.F90.

Private Attributes

logical valid = .false.
 
integer np = 0
 submesh point count this cache was built for (validation) More...
 
integer divisor = 0
 double-grid divisor it was built for (validation) More...
 
integer order = 0
 double-grid order it was built for (validation) More...
 
integer noff = 0
 number of fine offsets (divisor^3) More...
 
integer, dimension(3) kmin = 0
 lower corner of the integer key bounding box More...
 
integer, dimension(3) kmax = 0
 upper corner of the integer key bounding box More...
 
real(real64), dimension(3) rel_ref = M_ZERO
 reference position (first local submesh point) More...
 
real(real64), dimension(:, :), allocatable xstep
 (3,3) Cartesian step of one cell per axis More...
 
integer, dimension(:, :), allocatable offs
 (3,noff) integer fine offsets More...
 
real(real64), dimension(:, :), allocatable xoff
 (3,noff) Cartesian fine offsets More...
 
integer, dimension(:, :, :), allocatable isub
 dense key -> local submesh point map More...
 
integer, dimension(:, :), allocatable tgt
 (order+1,-nn:nn) per-axis scatter targets More...
 
real(real64), dimension(:, :), allocatable wgt
 (order+1,-nn:nn) per-axis scatter weights More...
 
integer, dimension(:), allocatable ntgt
 (-nn:nn) number of targets per axis offset More...
 
type(dg_axis_kernel_t), dimension(3) ax
 separable 1D transpose-interpolation kernels More...
 

Member Data Documentation

◆ valid

logical double_grid_oct_m::double_grid_cache_t::valid = .false.
private

Definition at line 170 of file double_grid.F90.

◆ np

integer double_grid_oct_m::double_grid_cache_t::np = 0
private

submesh point count this cache was built for (validation)

Definition at line 171 of file double_grid.F90.

◆ divisor

integer double_grid_oct_m::double_grid_cache_t::divisor = 0
private

double-grid divisor it was built for (validation)

Definition at line 172 of file double_grid.F90.

◆ order

integer double_grid_oct_m::double_grid_cache_t::order = 0
private

double-grid order it was built for (validation)

Definition at line 173 of file double_grid.F90.

◆ noff

integer double_grid_oct_m::double_grid_cache_t::noff = 0
private

number of fine offsets (divisor^3)

Definition at line 174 of file double_grid.F90.

◆ kmin

integer, dimension(3) double_grid_oct_m::double_grid_cache_t::kmin = 0
private

lower corner of the integer key bounding box

Definition at line 175 of file double_grid.F90.

◆ kmax

integer, dimension(3) double_grid_oct_m::double_grid_cache_t::kmax = 0
private

upper corner of the integer key bounding box

Definition at line 176 of file double_grid.F90.

◆ rel_ref

real(real64), dimension(3) double_grid_oct_m::double_grid_cache_t::rel_ref = M_ZERO
private

reference position (first local submesh point)

Definition at line 177 of file double_grid.F90.

◆ xstep

real(real64), dimension(:, :), allocatable double_grid_oct_m::double_grid_cache_t::xstep
private

(3,3) Cartesian step of one cell per axis

Definition at line 178 of file double_grid.F90.

◆ offs

integer, dimension(:, :), allocatable double_grid_oct_m::double_grid_cache_t::offs
private

(3,noff) integer fine offsets

Definition at line 179 of file double_grid.F90.

◆ xoff

real(real64), dimension(:, :), allocatable double_grid_oct_m::double_grid_cache_t::xoff
private

(3,noff) Cartesian fine offsets

Definition at line 180 of file double_grid.F90.

◆ isub

integer, dimension(:, :, :), allocatable double_grid_oct_m::double_grid_cache_t::isub
private

dense key -> local submesh point map

Definition at line 181 of file double_grid.F90.

◆ tgt

integer, dimension(:, :), allocatable double_grid_oct_m::double_grid_cache_t::tgt
private

(order+1,-nn:nn) per-axis scatter targets

Definition at line 182 of file double_grid.F90.

◆ wgt

real(real64), dimension(:, :), allocatable double_grid_oct_m::double_grid_cache_t::wgt
private

(order+1,-nn:nn) per-axis scatter weights

Definition at line 183 of file double_grid.F90.

◆ ntgt

integer, dimension(:), allocatable double_grid_oct_m::double_grid_cache_t::ntgt
private

(-nn:nn) number of targets per axis offset

Definition at line 184 of file double_grid.F90.

◆ ax

type(dg_axis_kernel_t), dimension(3) double_grid_oct_m::double_grid_cache_t::ax
private

separable 1D transpose-interpolation kernels

Definition at line 185 of file double_grid.F90.


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