Neko 1.99.11
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
vector Module Reference

Defines a vector.

Data Types

type  vector_t
type  vector_ptr_t

Functions/Subroutines

subroutine vector_init (v, n, name)
 Initialise a vector of size n.
subroutine vector_allocate (a, n)
 Vector allocation without initialisation.
subroutine vector_free (v)
 Deallocate a vector.
pure integer function vector_size (v)
 Return the number of entries in the vector.
subroutine vector_copy_from (v, memdir, sync)
 Easy way to copy between host and device.
subroutine vector_assign_vector (v, w)
 Assignment \( v = w \).
subroutine vector_assign_scalar (v, s)
 Assignment \( v = s \).
subroutine vector_assign_array (v, array)
 Assignment \( v = array \).
subroutine vector_ptr_init (this, ptr)
subroutine vector_ptr_free (this)

Function/Subroutine Documentation

◆ vector_allocate()

subroutine vector::vector_allocate ( class(vector_t), intent(inout) a,
integer, intent(in) n )
private

Definition at line 115 of file vector.f90.

◆ vector_assign_array()

subroutine vector::vector_assign_array ( class(vector_t), intent(inout) v,
real(kind=rp), dimension(:), intent(in) array )
private

Definition at line 200 of file vector.f90.

Here is the caller graph for this function:

◆ vector_assign_scalar()

subroutine vector::vector_assign_scalar ( class(vector_t), intent(inout) v,
real(kind=rp), intent(in) s )
private

Definition at line 187 of file vector.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vector_assign_vector()

subroutine vector::vector_assign_vector ( class(vector_t), intent(inout) v,
type(vector_t), intent(in) w )
private

Definition at line 171 of file vector.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vector_copy_from()

subroutine vector::vector_copy_from ( class(vector_t), intent(inout) v,
integer, intent(in) memdir,
logical, intent(in) sync )
private
Parameters
vvector 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 158 of file vector.f90.

◆ vector_free()

subroutine vector::vector_free ( class(vector_t), intent(inout) v)
private

Definition at line 132 of file vector.f90.

◆ vector_init()

subroutine vector::vector_init ( class(vector_t), intent(inout) v,
integer, intent(in) n,
character(len=*), intent(in), optional name )

Definition at line 93 of file vector.f90.

Here is the call graph for this function:

◆ vector_ptr_free()

subroutine vector::vector_ptr_free ( class(vector_ptr_t), intent(inout) this)
private

Definition at line 224 of file vector.f90.

◆ vector_ptr_init()

subroutine vector::vector_ptr_init ( class(vector_ptr_t), intent(inout) this,
type(vector_t), intent(in), target ptr )
private

Definition at line 216 of file vector.f90.

◆ vector_size()

pure integer function vector::vector_size ( class(vector_t), intent(in) v)
private

Definition at line 148 of file vector.f90.