Appearance
adam_prism_fnl_fWLayer_object
ADAM, PRISM (Plasma Research usIng Simulation Methods) fWLayer class definition, FNL backend.
Source: src/app/prism/fnl/adam_prism_fnl_fWLayer_object.F90
Dependencies
Contents
Derived Types
prism_fnl_fwlayer_object
PRISM fWLayer class definition.
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
mpih_gpu | type(mpih_object) | MPI handler, FNL backend. | |
fwlayer | type(prism_fWLayer_object) | pointer | Fwlayer common handler. |
f_gpu | real(kind=R8P) | pointer | fWLayer function. |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
copy_cpu_gpu | pass(self) | Copy data from CPU to GPU. |
copy_gpu_cpu | pass(self) | Copy data from GPU to CPU. |
initialize | pass(self) | Initialize object. |
Subroutines
copy_cpu_gpu
Copy data from CPU to GPU.
fortran
subroutine copy_cpu_gpu(self, verbose)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_fnl_fwlayer_object) | inout | The field. | |
verbose | logical | in | optional | Flag to activate verbose mode. |
Call graph
copy_gpu_cpu
Copy data from GPU to CPU.
fortran
subroutine copy_gpu_cpu(self, verbose)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_fnl_fwlayer_object) | inout | The field. | |
verbose | logical | in | optional | Flag to activate verbose mode. |
Call graph
initialize
Initialize the fWLayer.
fortran
subroutine initialize(self, field, fwlayer)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_fnl_fwlayer_object) | inout | fWLayer. | |
field | type(field_object) | in | Field. | |
fwlayer | type(prism_fWLayer_object) | in | target | Fwlayer common handler. |
Call graph
apply_fwl_correction_dev
Applay FWL correction, direction agnostic, device kernel.
fortran
subroutine apply_fwl_correction_dev(blocks_number, ngc, ni1, ni2, nj1, nj2, nk1, nk2, n, s2, alfa_D, beta_D, alfa_B, beta_B, f_gpu, q_gpu)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
blocks_number | integer(kind=I4P) | in | Blocks number. | |
ngc | integer(kind=I4P) | in | Number of ghost cells. | |
ni1 | integer(kind=I4P) | in | Dimensions of FWL domain. | |
ni2 | integer(kind=I4P) | in | Dimensions of FWL domain. | |
nj1 | integer(kind=I4P) | in | Dimensions of FWL domain. | |
nj2 | integer(kind=I4P) | in | Dimensions of FWL domain. | |
nk1 | integer(kind=I4P) | in | Dimensions of FWL domain. | |
nk2 | integer(kind=I4P) | in | Dimensions of FWL domain. | |
n | integer(kind=I4P) | in | f component. | |
s2 | real(kind=R8P) | in | Side coefficient. | |
alfa_D | integer(kind=I4P) | in | Corrected var index of D (Barbas' notation). | |
beta_D | integer(kind=I4P) | in | Corrected var index of D (Barbas' notation). | |
alfa_B | integer(kind=I4P) | in | Corrected var index of D (Barbas' notation). | |
beta_B | integer(kind=I4P) | in | Corrected var index of D (Barbas' notation). | |
f_gpu | real(kind=R8P) | in | fWLayer function values. | |
q_gpu | real(kind=R8P) | inout | Field variables. |
Call graph