Neko 1.99.3
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
host_array::host_array_t Type Reference

Host-only temporary array. More...

Public Member Functions

procedure, pass(thisinit (this, size)
 Initialize the array.
 
procedure, pass(thisfree (this)
 Free the array.
 
procedure, pass(thissize (this)
 Return the number of entries.
 
procedure, pass(thisis_allocated (this)
 Check whether storage is allocated.
 
procedure, pass(thisassign (this, source)
 Assignment with deep-copy ownership semantics.
 
generic assignment (this, source)
 Assignments.
 

Public Attributes

real(kind=rp), dimension(:), allocatable x
 Host values.
 

Private Member Functions

procedure, pass(this), private allocate (this, size)
 Allocate the array.
 

Private Attributes

integer, private n = 0
 Number of entries.
 

Detailed Description

Definition at line 42 of file host_array.f90.

Member Function/Subroutine Documentation

◆ allocate()

procedure, pass(this), private host_array::host_array_t::allocate ( class(host_array_t), intent(inout this,
integer, intent(in size 
)
private
Parameters
thishost array object.
sizeNumber of entries to allocate.

Definition at line 53 of file host_array.f90.

◆ assign()

procedure, pass(this) host_array::host_array_t::assign ( class(host_array_t), intent(inout this,
class(host_array_t), intent(in source 
)
Parameters
thisDestination host array object.
sourceSource host array object.

Definition at line 59 of file host_array.f90.

◆ assignment()

generic host_array::host_array_t::assignment ( class(host_array_t), intent(inout this,
class(host_array_t), intent(in source 
)
Parameters
thisDestination host array object.
sourceSource host array object.

Definition at line 62 of file host_array.f90.

◆ free()

procedure, pass(this) host_array::host_array_t::free ( class(host_array_t), intent(inout this)
Parameters
thisHost array object.

Definition at line 51 of file host_array.f90.

◆ init()

procedure, pass(this) host_array::host_array_t::init ( class(host_array_t), intent(inout this,
integer, intent(in size 
)
Parameters
thisHost array object.
sizeNumber of entries to allocate.

Definition at line 49 of file host_array.f90.

◆ is_allocated()

procedure, pass(this) host_array::host_array_t::is_allocated ( class(host_array_t), intent(in this)
Parameters
thisHost array object.

Definition at line 57 of file host_array.f90.

◆ size()

procedure, pass(this) host_array::host_array_t::size ( class(host_array_t), intent(in this)
Parameters
thisHost array object.

Definition at line 55 of file host_array.f90.

Member Data Documentation

◆ n

integer, private host_array::host_array_t::n = 0
private

Definition at line 46 of file host_array.f90.

◆ x

real(kind=rp), dimension(:), allocatable host_array::host_array_t::x

Definition at line 44 of file host_array.f90.


The documentation for this type was generated from the following file: