Appearance
adam_prism_fnl_plasma_frequencies_object
Source: src/app/prism/fnl/adam_prism_fnl_plasma_frequencies_object.F90
Dependencies
Contents
- prism_fnl_plasma_frequencies_object
- initialize
- destroy
- compute
- plasma_frequencies_block_fields
- allocated_bytes
Derived Types
prism_fnl_plasma_frequencies_object
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
wp2_gpu | real(kind=R8P) | pointer | omega_p^2 per interior cell [nb,ni,nj,nk,2] (1 electrons, 2 ions). |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
allocated_bytes | pass(self) | Device bytes of wp2_gpu allocated now (issue #130, 8-bis). |
initialize | pass(self) | Allocate the work array on the block slots. |
compute | pass(self) | Local maxima of this rank (the caller reduces them, prism_plasma_frequencies_object%set_particle_maxima and set_cell_maxima). particles (Omega_c, transit) and cells (omega_p) select the terms, both by default (issue #129, R7); the terms not selected return 0. |
destroy | pass(self) | Free the work array. |
Subroutines
initialize
Allocate the work array on the block slots.
fortran
subroutine initialize(self, nb, ni, nj, nk)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_fnl_plasma_frequencies_object) | inout | Device helper. | |
nb | integer(kind=I4P) | in | Block slots. | |
ni | integer(kind=I4P) | in | Block cells. | |
nj | integer(kind=I4P) | in | Block cells. | |
nk | integer(kind=I4P) | in | Block cells. |
Call graph
destroy
Free the work array.
fortran
subroutine destroy(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_fnl_plasma_frequencies_object) | inout | Device helper. |
Call graph
compute
Local maxima of this rank (the caller reduces them, prism_plasma_frequencies_object%set_particle_maxima and set_cell_maxima). particles (Omega_c, transit) and cells (omega_p) select the terms, both by default (issue #129, R7); the terms not selected return 0.
fortran
subroutine compute(self, pic_fnl, field_fnl, grid, inv_eps, wpe2, wpi2, wce, wci, transit, particles, cells)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_fnl_plasma_frequencies_object) | inout | Device helper. | |
pic_fnl | type(prism_fnl_pic_object) | in | Particles on device. | |
field_fnl | type(field_fnl_object) | in | Device field helper. | |
grid | type(grid_object) | in | Grid. | |
inv_eps | real(kind=R8P) | in | 1/eps0 (1 for the non-dimensional models). | |
wpe2 | real(kind=R8P) | out | Max omega_pe^2. | |
wpi2 | real(kind=R8P) | out | Max omega_pi^2. | |
wce | real(kind=R8P) | out | Max Omega_ce. | |
wci | real(kind=R8P) | out | Max Omega_ci. | |
transit | real(kind=R8P) | out | Max |v_d|/dx_d. | |
particles | logical | in | optional | Particle terms (default true). |
cells | logical | in | optional | Cell term (default true). |
Call graph
Functions
plasma_frequencies_block_fields
Block fields (ghosts included, the unit of the blocks budget) taken by wp2_gpu, two interior fields per block slot, rounded up (issue #130, 8-bis): the budget reserves them, the end of the initialization checks them.
Attributes: pure
Returns: integer(kind=I4P)
fortran
function plasma_frequencies_block_fields(ni, nj, nk, ngc) result(fields)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
ni | integer(kind=I4P) | in | Block cells. | |
nj | integer(kind=I4P) | in | Block cells. | |
nk | integer(kind=I4P) | in | Block cells. | |
ngc | integer(kind=I4P) | in | Ghost cells. |
Call graph
allocated_bytes
Device bytes of wp2_gpu allocated now (issue #130, 8-bis).
Returns: integer(kind=I8P)
fortran
function allocated_bytes(self) result(bytes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_fnl_plasma_frequencies_object) | in | Device helper. |