Skip to content

adam_prism_fnl_plasma_frequencies_object ​

Source: src/app/prism/fnl/adam_prism_fnl_plasma_frequencies_object.F90

Dependencies

Contents ​

Derived Types ​

prism_fnl_plasma_frequencies_object ​

Components

NameTypeAttributesDescription
wp2_gpureal(kind=R8P)pointeromega_p^2 per interior cell [nb,ni,nj,nk,2] (1 electrons, 2 ions).

Type-Bound Procedures

NameAttributesDescription
allocated_bytespass(self)Device bytes of wp2_gpu allocated now (issue #130, 8-bis).
initializepass(self)Allocate the work array on the block slots.
computepass(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.
destroypass(self)Free the work array.

Subroutines ​

initialize ​

Allocate the work array on the block slots.

fortran
subroutine initialize(self, nb, ni, nj, nk)

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_fnl_plasma_frequencies_object)inoutDevice helper.
nbinteger(kind=I4P)inBlock slots.
niinteger(kind=I4P)inBlock cells.
njinteger(kind=I4P)inBlock cells.
nkinteger(kind=I4P)inBlock cells.

Call graph

destroy ​

Free the work array.

fortran
subroutine destroy(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_fnl_plasma_frequencies_object)inoutDevice 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

NameTypeIntentAttributesDescription
selfclass(prism_fnl_plasma_frequencies_object)inoutDevice helper.
pic_fnltype(prism_fnl_pic_object)inParticles on device.
field_fnltype(field_fnl_object)inDevice field helper.
gridtype(grid_object)inGrid.
inv_epsreal(kind=R8P)in1/eps0 (1 for the non-dimensional models).
wpe2real(kind=R8P)outMax omega_pe^2.
wpi2real(kind=R8P)outMax omega_pi^2.
wcereal(kind=R8P)outMax Omega_ce.
wcireal(kind=R8P)outMax Omega_ci.
transitreal(kind=R8P)outMax |v_d|/dx_d.
particleslogicalinoptionalParticle terms (default true).
cellslogicalinoptionalCell 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

NameTypeIntentAttributesDescription
niinteger(kind=I4P)inBlock cells.
njinteger(kind=I4P)inBlock cells.
nkinteger(kind=I4P)inBlock cells.
ngcinteger(kind=I4P)inGhost 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

NameTypeIntentAttributesDescription
selfclass(prism_fnl_plasma_frequencies_object)inDevice helper.