Neko 1.99.9
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
tensor4.f90 File Reference

Go to the source code of this file.

Data Types

type  tensor4::tensor4_t
 
type  tensor4::tensor4_ptr_t
 

Modules

module  tensor4
 Defines a rank-4 tensor.
 

Functions/Subroutines

subroutine tensor4::tensor4_init (t, n1, n2, n3, n4, name)
 Initialise a tensor of size n1*n2*n3*n4.
 
subroutine tensor4::tensor4_allocate (t, n1, n2, n3, n4)
 Allocate a tensor of size n1*n2*n3*n4.
 
subroutine tensor4::tensor4_free (t)
 Deallocate a tensor.
 
pure integer function tensor4::tensor4_size (t)
 Returns the number of entries in the tensor.
 
subroutine tensor4::tensor4_copy_from (t, memdir, sync)
 Easy way to copy between host and device.
 
pure integer function tensor4::tensor4_n1 (t)
 Returns the size of the first dimension.
 
pure integer function tensor4::tensor4_n2 (t)
 Returns the size of the second dimension.
 
pure integer function tensor4::tensor4_n3 (t)
 Returns the size of the third dimension.
 
pure integer function tensor4::tensor4_n4 (t)
 Returns the size of the fourth dimension.
 
subroutine tensor4::tensor4_assign_tensor4 (t, w)
 Assignment \( t = w \).
 
subroutine tensor4::tensor4_assign_scalar (t, s)
 Assignment \( t = s \).
 
subroutine tensor4::tensor4_ptr_init (this, ptr)
 Constructor. Just assigns the pointer.
 
subroutine tensor4::tensor4_ptr_free (this)
 Destructor. Just nullifies the pointer.