Octopus
double_grid_oct_m::dg_axis_kernel_t Type Reference

One-dimensional transpose-interpolation kernel along a single Cartesian axis. The full 3D tensor-product scatter weight factorizes as K1(c1,g1) K2(c2,g2) K3(c3,g3), so the scatter is done as three separable banded contractions instead of an (order+1)^3 tensor product per fine point. Fine index g = (ia - amin)*divisor + (o + nn) + 1 enumerates anchor ia and sub-offset o; each fine index scatters to at most order+1 coarse (submesh-box) points c in [1, nc]. More...

Detailed Description

One-dimensional transpose-interpolation kernel along a single Cartesian axis. The full 3D tensor-product scatter weight factorizes as K1(c1,g1) K2(c2,g2) K3(c3,g3), so the scatter is done as three separable banded contractions instead of an (order+1)^3 tensor product per fine point. Fine index g = (ia - amin)*divisor + (o + nn) + 1 enumerates anchor ia and sub-offset o; each fine index scatters to at most order+1 coarse (submesh-box) points c in [1, nc].

Definition at line 151 of file double_grid.F90.

Private Attributes

integer ng = 0
 number of fine indices along this axis More...
 
integer nc = 0
 number of coarse (submesh-box) points along this axis More...
 
integer amin = 0
 first anchor key along this axis More...
 
integer, dimension(:), allocatable nt
 (ng) number of coarse targets of each fine index More...
 
integer, dimension(:, :), allocatable ct
 (order+1, ng) local coarse target index (1..nc) More...
 
real(real64), dimension(:, :), allocatable wt
 (order+1, ng) scatter weight More...
 
real(real64), dimension(:, :), allocatable kd
 The same scatter weights stored densely. More...
 

Member Data Documentation

◆ ng

integer double_grid_oct_m::dg_axis_kernel_t::ng = 0
private

number of fine indices along this axis

Definition at line 153 of file double_grid.F90.

◆ nc

integer double_grid_oct_m::dg_axis_kernel_t::nc = 0
private

number of coarse (submesh-box) points along this axis

Definition at line 154 of file double_grid.F90.

◆ amin

integer double_grid_oct_m::dg_axis_kernel_t::amin = 0
private

first anchor key along this axis

Definition at line 155 of file double_grid.F90.

◆ nt

integer, dimension(:), allocatable double_grid_oct_m::dg_axis_kernel_t::nt
private

(ng) number of coarse targets of each fine index

Definition at line 156 of file double_grid.F90.

◆ ct

integer, dimension(:, :), allocatable double_grid_oct_m::dg_axis_kernel_t::ct
private

(order+1, ng) local coarse target index (1..nc)

Definition at line 157 of file double_grid.F90.

◆ wt

real(real64), dimension(:, :), allocatable double_grid_oct_m::dg_axis_kernel_t::wt
private

(order+1, ng) scatter weight

Definition at line 158 of file double_grid.F90.

◆ kd

real(real64), dimension(:, :), allocatable double_grid_oct_m::dg_axis_kernel_t::kd
private

The same scatter weights stored densely.

Definition at line 159 of file double_grid.F90.


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