Appearance
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
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
A_gpu | real(kind=R8P) | pointer | Current amplitude (A) |
f_gpu | real(kind=R8P) | pointer | Current frequency, if AC (Hz) |
phase_gpu | real(kind=R8P) | pointer | Current initial phase, if AC |
J_vec_gpu | real(kind=R8P) | pointer | Matrice contenente versori corrente spire (se assente = 0) |
coil_flag_gpu | integer(kind=I4P) | pointer | Matrice contenente informazioni su quale spira pass. |
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 class from global singletons. |
Subroutines
copy_cpu_gpu
Copy data from CPU to GPU.
fortran
subroutine copy_cpu_gpu(self, buf4D, buf6D, verbose)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_fnl_coil_object) | inout | The field. | |
buf4D | integer(kind=I4P) | inout | optional | Buffer (host memory, device shape), rank 4D. |
buf6D | real(kind=R8P) | inout | optional | Buffer (host memory, device shape), rank 6D. |
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, buf4D, buf6D, verbose)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_fnl_coil_object) | inout | The field. | |
buf4D | integer(kind=I4P) | inout | optional | Buffer (host memory, device shape), rank 4D. |
buf6D | real(kind=R8P) | inout | optional | Buffer (host memory, device shape), rank 6D. |
verbose | logical | in | optional | Flag 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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(prism_fnl_coil_object) | inout | Coils. | |
coil | class(prism_coil_object) | in | target | Coils on host. |
Call graph