field_cpu Module


Uses


Contents


Interfaces

public interface field_cpu_type

  • public function field_cpu_constructor(initial, dx) result(afield)

    Arguments

    Type IntentOptional Attributes Name
    real, intent(in) :: initial(:,:,:)

    Initial state

    real, intent(in) :: dx

    Spatial mesh spacing

    Return Value type(field_cpu_type)


Derived Types

type, public, extends(field_type) ::  field_cpu_type

Components

Type Visibility Attributes Name Initial
real, public, allocatable :: data(:,:,:)
real, public :: dx

Discrete mesh spacing

Constructor

public function field_cpu_constructor (initial, dx)

Type-Bound Procedures

procedure , public :: nz Function
procedure , public :: ny Function
procedure , public :: nx Function
procedure , public :: dump Subroutine
procedure , public :: is_equal Function
generic, public :: operator(+) => field_add_field, field_add_real
generic, public :: operator(-) => field_sub_field
generic, public :: operator(*) => field_mul_real
procedure , public :: rhs Function

Functions

public function field_cpu_constructor(initial, dx) result(afield)

Arguments

Type IntentOptional Attributes Name
real, intent(in) :: initial(:,:,:)

Initial state

real, intent(in) :: dx

Spatial mesh spacing

Return Value type(field_cpu_type)

public pure function rhs(self)

Evaluates right hand side of heat equation on a field instance.

Arguments

Type IntentOptional Attributes Name
class(field_cpu_type), intent(in) :: self

Return Value real, allocatable, (:,:,:)