|
Neko 1.99.9
A portable framework for high-order spectral element flow simulations
|
Defines a rank-4 tensor.
Data Types | |
| type | tensor4_ptr_t |
| type | tensor4_t |
Functions/Subroutines | |
| subroutine | tensor4_init (t, n1, n2, n3, n4, name) |
Initialise a tensor of size n1*n2*n3*n4. | |
| subroutine | tensor4_allocate (t, n1, n2, n3, n4) |
Allocate a tensor of size n1*n2*n3*n4. | |
| subroutine | tensor4_free (t) |
| Deallocate a tensor. | |
| pure integer function | tensor4_size (t) |
| Returns the number of entries in the tensor. | |
| subroutine | tensor4_copy_from (t, memdir, sync) |
| Easy way to copy between host and device. | |
| pure integer function | tensor4_n1 (t) |
| Returns the size of the first dimension. | |
| pure integer function | tensor4_n2 (t) |
| Returns the size of the second dimension. | |
| pure integer function | tensor4_n3 (t) |
| Returns the size of the third dimension. | |
| pure integer function | tensor4_n4 (t) |
| Returns the size of the fourth dimension. | |
| subroutine | tensor4_assign_tensor4 (t, w) |
| Assignment \( t = w \). | |
| subroutine | tensor4_assign_scalar (t, s) |
| Assignment \( t = s \). | |
| subroutine | tensor4_ptr_init (this, ptr) |
| Constructor. Just assigns the pointer. | |
| subroutine | tensor4_ptr_free (this) |
| Destructor. Just nullifies the pointer. | |
|
private |
| t | Tensor to allocate. |
| n1 | Size of the first dimension. |
| n2 | Size of the second dimension. |
| n3 | Size of the third dimension. |
| n4 | Size of the fourth dimension. |
Definition at line 134 of file tensor4.f90.

|
private |
| t | Tensor to assign to. |
| s | Scalar to fill the tensor with. |
Definition at line 274 of file tensor4.f90.


|
private |
| t | Tensor to assign to. |
| w | Tensor to assign from. |
Definition at line 238 of file tensor4.f90.


|
private |
| t | Tensor to copy to/from device/host. |
| memdir | Direction to copy (HOST_TO_DEVICE or DEVICE_TO_HOST). |
| sync | Whether the memcopy is to be blocking or not. |
Definition at line 192 of file tensor4.f90.
|
private |
| t | Tensor to deallocate. |
Definition at line 161 of file tensor4.f90.
| subroutine tensor4::tensor4_init | ( | class(tensor4_t), intent(inout) | t, |
| integer, intent(in) | n1, | ||
| integer, intent(in) | n2, | ||
| integer, intent(in) | n3, | ||
| integer, intent(in) | n4, | ||
| character(len=*), intent(in), optional | name | ||
| ) |
| t | Tensor to initialise. |
| n1 | Size of the first dimension. |
| n2 | Size of the second dimension. |
| n3 | Size of the third dimension. |
| n4 | Size of the fourth dimension. |
| name | Optional name of the tensor. |
Definition at line 107 of file tensor4.f90.
| t | Tensor to query. |
Definition at line 205 of file tensor4.f90.
| t | Tensor to query. |
Definition at line 213 of file tensor4.f90.
| t | Tensor to query. |
Definition at line 221 of file tensor4.f90.
| t | Tensor to query. |
Definition at line 229 of file tensor4.f90.
|
private |
| this | Pointer wrapper to destroy. |
Definition at line 306 of file tensor4.f90.
|
private |
| this | Pointer wrapper to initialise. |
| ptr | Tensor to point to. |
Definition at line 296 of file tensor4.f90.