|
Neko 1.99.2
A portable framework for high-order spectral element flow simulations
|

Public Member Functions | |
| procedure, pass(v) | init (v, n) |
Initialise a vector of size n. | |
| procedure, pass(v) | free (v) |
| Deallocate a vector. | |
| procedure, pass(v) | copy_from (v, memdir, sync) |
| Copy data between host and device. | |
| procedure, pass(v) | size (v) |
| Returns the number of entries in the vector. | |
| procedure, pass(v) | vector_assign_vector (v, w) |
| Assignment \( v = w \). | |
| procedure, pass(v) | vector_assign_scalar (v, s) |
| Assignment \( v = s \). | |
| generic | assignment (v, w) |
| Assignments. | |
| generic | assignment (v, s) |
| Assignments. | |
Public Attributes | |
| real(kind=rp), dimension(:), allocatable | x |
| Vector entries. | |
| type(c_ptr) | x_d = C_NULL_PTR |
| Device pointer. | |
Private Member Functions | |
| procedure, pass, private | alloc (a, n) |
| Vector allocation without initialisation. | |
Private Attributes | |
| integer, private | n = 0 |
| Size of vector. | |
Definition at line 48 of file vector.f90.
|
private |
Definition at line 74 of file vector.f90.
| generic vector::vector_t::assignment | ( | class(vector_t), intent(inout) | v, |
| real(kind=rp), intent(in) | s | ||
| ) |
Definition at line 70 of file vector.f90.
| procedure, pass(v) vector::vector_t::copy_from | ( | class(vector_t), intent(inout) | v, |
| integer, intent(in) | memdir, | ||
| logical, intent(in) | sync | ||
| ) |
| v | vector to copy to/from device/host @memdir direction to copy (HOST_TO_DEVICE or DEVICE_TO_HOST) @sync whether the memcopy to be blocking or not |
Definition at line 61 of file vector.f90.
Definition at line 59 of file vector.f90.
| procedure, pass(v) vector::vector_t::init | ( | class(vector_t), intent(inout) | v, |
| integer, intent(in) | n | ||
| ) |
Definition at line 57 of file vector.f90.
Definition at line 63 of file vector.f90.
| procedure, pass(v) vector::vector_t::vector_assign_scalar | ( | class(vector_t), intent(inout) | v, |
| real(kind=rp), intent(in) | s | ||
| ) |
Definition at line 67 of file vector.f90.
| procedure, pass(v) vector::vector_t::vector_assign_vector | ( | class(vector_t), intent(inout) | v, |
| type(vector_t), intent(in) | w | ||
| ) |
Definition at line 65 of file vector.f90.
Definition at line 54 of file vector.f90.
| real(kind=rp), dimension(:), allocatable vector::vector_t::x |
Definition at line 50 of file vector.f90.
| type(c_ptr) vector::vector_t::x_d = C_NULL_PTR |
Definition at line 52 of file vector.f90.