Skip to content

adam_prism_fnl_coil_object

ADAM, PRISM coil source definition, FNL backend.

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

Dependencies

Contents

Derived Types

prism_fnl_coil_object

ADAM, PRISM coil source definition, FNL (GPU) backend.

Components

NameTypeAttributesDescription
coiltype(prism_coil_object)pointerCoil common handler.
A_gpureal(kind=R8P)pointerCurrent amplitude (A)
f_gpureal(kind=R8P)pointerCurrent frequency, if AC (Hz)
phase_gpureal(kind=R8P)pointerCurrent initial phase, if AC
J_vec_gpureal(kind=R8P)pointerMatrice contenente versori corrente spire (se assente = 0)
coil_flag_gpuinteger(kind=I4P)pointerMatrice contenente informazioni su quale spira pass.

Type-Bound Procedures

NameAttributesDescription
copy_cpu_gpupass(self)Copy data from CPU to GPU.
copy_gpu_cpupass(self)Copy data from GPU to CPU.
initializepass(self)Initialize class from global singletons.

Subroutines

copy_cpu_gpu

Copy data from CPU to GPU.

fortran
subroutine copy_cpu_gpu(self, verbose)

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_fnl_coil_object)inoutThe field.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

copy_gpu_cpu

Copy data from GPU to CPU.

fortran
subroutine copy_gpu_cpu(self, verbose)

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_fnl_coil_object)inoutThe field.
verboselogicalinoptionalFlag to activate verbose mode.

Call graph

initialize

Initialize class from program-scope field (adam_field_global) and grid (adam_grid_global) singletons. Requires mpih_fnl (adam_fnl_mpih_global), field and grid singletons to be ready.

fortran
subroutine initialize(self, coil)

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_fnl_coil_object)inoutCoils.
coilclass(prism_coil_object)intargetCoils on host.

Call graph