|
Neko 1.99.9
A portable framework for high-order spectral element flow simulations
|
Defines a rank-3 tensor.
Data Types | |
| type | tensor3_ptr_t |
| type | tensor3_t |
Functions/Subroutines | |
| subroutine | tensor3_init (t, n1, n2, n3, name) |
Initialise a tensor of size n1*n2*n3. | |
| subroutine | tensor3_allocate (t, n1, n2, n3) |
Allocate a tensor of size n1*n2*n3. | |
| subroutine | tensor3_free (t) |
| Deallocate a tensor. | |
| pure integer function | tensor3_size (t) |
| Returns the number of entries in the tensor. | |
| subroutine | tensor3_copy_from (t, memdir, sync) |
| Easy way to copy between host and device. | |
| pure integer function | tensor3_n1 (t) |
| Returns the size of the first dimension. | |
| pure integer function | tensor3_n2 (t) |
| Returns the size of the second dimension. | |
| pure integer function | tensor3_n3 (t) |
| Returns the size of the third dimension. | |
| subroutine | tensor3_assign_tensor3 (t, w) |
| Assignment \( t = w \). | |
| subroutine | tensor3_assign_scalar (t, s) |
| Assignment \( t = s \). | |
| subroutine | tensor3_ptr_init (this, ptr) |
| Constructor. Just assigns the pointer. | |
| subroutine | tensor3_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. |
Definition at line 122 of file tensor3.f90.

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


|
private |
| t | Tensor to assign to. |
| w | Tensor to assign from. |
Definition at line 215 of file tensor3.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 177 of file tensor3.f90.
|
private |
| t | Tensor to deallocate. |
Definition at line 147 of file tensor3.f90.
| subroutine tensor3::tensor3_init | ( | class(tensor3_t), intent(inout) | t, |
| integer, intent(in) | n1, | ||
| integer, intent(in) | n2, | ||
| integer, intent(in) | n3, | ||
| 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. |
| name | Optional name of the tensor. |
Definition at line 97 of file tensor3.f90.
| t | Tensor to query. |
Definition at line 190 of file tensor3.f90.
| t | Tensor to query. |
Definition at line 198 of file tensor3.f90.
| t | Tensor to query. |
Definition at line 206 of file tensor3.f90.
|
private |
| this | Pointer wrapper to destroy. |
Definition at line 282 of file tensor3.f90.
|
private |
| this | Pointer wrapper to initialise. |
| ptr | Tensor to point to. |
Definition at line 272 of file tensor3.f90.