ASCOT5
Loading...
Searching...
No Matches
copytogpu.c
Go to the documentation of this file.
1
5
#include "
simulate.h
"
6
#include "
particle.h
"
7
#include "
B_field.h
"
8
#include "
E_field.h
"
9
#include "
copytogpu.h
"
10
14
void
simulate_copy_to_gpu
(
sim_data
* sim) {
15
GPU_MAP_TO_DEVICE(sim[0:1])
16
17
switch
(sim->
wall_data
.
type
) {
18
case
wall_type_2D
:
19
GPU_MAP_TO_DEVICE(
20
sim->
wall_data
.
w2d
.
wall_r
[0:sim->
wall_data
.
w2d
.
n
],sim->
wall_data
.
w2d
.
wall_z
[0:sim->
wall_data
.
w2d
.
n
] )
21
break
;
22
case
wall_type_3D
:
23
GPU_MAP_TO_DEVICE(
24
sim->
wall_data
.
w3d
.
wall_tris
[0:sim->
wall_data
.
w3d
.
n
*9+9],sim->
wall_data
.
w3d
.
tree_array
[0:sim->
wall_data
.
w3d
.
tree_array_size
] )
25
break
;
26
default
:
27
break
;
28
}
29
30
if
(sim->
diag_data
.
dist5D_collect
) {
31
GPU_MAP_TO_DEVICE(
32
sim->
diag_data
.
dist5D
.
histogram
[0:sim->
diag_data
.
dist5D
.
n_r
* sim->
diag_data
.
dist5D
.
n_phi
* sim->
diag_data
.
dist5D
.
n_z
* sim->
diag_data
.
dist5D
.
n_ppara
* sim->
diag_data
.
dist5D
.
n_pperp
* sim->
diag_data
.
dist5D
.
n_time
* sim->
diag_data
.
dist5D
.
n_q
] )
33
}
34
35
if
(sim->
diag_data
.
dist6D_collect
) {
36
GPU_MAP_TO_DEVICE(
37
sim->
diag_data
.
dist6D
.
histogram
[0:sim->
diag_data
.
dist6D
.
n_r
* sim->
diag_data
.
dist6D
.
n_phi
* sim->
diag_data
.
dist6D
.
n_z
* sim->
diag_data
.
dist6D
.
n_pr
* sim->
diag_data
.
dist6D
.
n_pphi
* sim->
diag_data
.
dist6D
.
n_pz
* sim->
diag_data
.
dist6D
.
n_time
* sim->
diag_data
.
dist6D
.
n_q
] )
38
}
39
40
if
(sim->
diag_data
.
distrho5D_collect
) {
41
GPU_MAP_TO_DEVICE(
42
sim->
diag_data
.
distrho5D
.
histogram
[0:sim->
diag_data
.
distrho5D
.
n_rho
* sim->
diag_data
.
distrho5D
.
n_theta
* sim->
diag_data
.
distrho5D
.
n_phi
* sim->
diag_data
.
distrho5D
.
n_ppara
* sim->
diag_data
.
distrho5D
.
n_pperp
* sim->
diag_data
.
distrho5D
.
n_time
* sim->
diag_data
.
distrho5D
.
n_q
] )
43
}
44
45
if
(sim->
diag_data
.
distrho6D_collect
) {
46
GPU_MAP_TO_DEVICE(
47
sim->
diag_data
.
distrho6D
.
histogram
[0:sim->
diag_data
.
distrho6D
.
n_rho
*sim->
diag_data
.
distrho6D
.
n_theta
*sim->
diag_data
.
distrho6D
.
n_phi
*sim->
diag_data
.
distrho6D
.
n_pr
*sim->
diag_data
.
distrho6D
.
n_pphi
*sim->
diag_data
.
distrho6D
.
n_pz
*sim->
diag_data
.
distrho6D
.
n_time
*sim->
diag_data
.
distrho6D
.
n_q
] )
48
}
49
50
if
(sim->
diag_data
.
distCOM_collect
) {
51
GPU_MAP_TO_DEVICE(
52
sim->
diag_data
.
distCOM
.
histogram
[0:sim->
diag_data
.
distCOM
.
n_mu
*sim->
diag_data
.
distCOM
.
n_Ekin
*sim->
diag_data
.
distCOM
.
n_Ptor
] )
53
}
54
55
56
switch
(sim->
E_data
.
type
) {
57
58
case
E_field_type_1DS
:
59
GPU_MAP_TO_DEVICE(
60
sim->
E_data
.
E1DS
,sim->
E_data
.
E1DS
.
dV
,sim->
E_data
.
E1DS
.
dV
.
c
[0:sim->
E_data
.
E1DS
.
dV
.
n_x
*NSIZE_COMP1D] )
61
break
;
62
case
E_field_type_TC
:
63
GPU_MAP_TO_DEVICE(
64
sim->
E_data
.
ETC
,sim->
E_data
.
ETC
.
Exyz
[0:1] )
65
break
;
66
default
:
67
break
;
68
}
69
70
switch
(sim->
plasma_data
.
type
) {
71
72
case
plasma_type_1D
:
73
GPU_MAP_TO_DEVICE(
74
sim->
plasma_data
.
plasma_1D
.
mass
[0:
MAX_SPECIES
],\
75
sim->
plasma_data
.
plasma_1D
.
charge
[0:
MAX_SPECIES
],\
76
sim->
plasma_data
.
plasma_1D
.
anum
[0:
MAX_SPECIES
],\
77
sim->
plasma_data
.
plasma_1D
.
znum
[0:
MAX_SPECIES
],\
78
sim->
plasma_data
.
plasma_1D
.
rho
[0:sim->
plasma_data
.
plasma_1D
.
n_rho
],\
79
sim->
plasma_data
.
plasma_1D
.
temp
[0:sim->
plasma_data
.
plasma_1D
.
n_rho
*sim->
plasma_data
.
plasma_1D
.
n_species
], \
80
sim->
plasma_data
.
plasma_1D
.
dens
[0:sim->
plasma_data
.
plasma_1D
.
n_rho
*sim->
plasma_data
.
plasma_1D
.
n_species
] )
81
break
;
82
83
case
plasma_type_1Dt
:
84
GPU_MAP_TO_DEVICE(
85
sim->
plasma_data
.
plasma_1Dt
.
mass
[0:
MAX_SPECIES
],\
86
sim->
plasma_data
.
plasma_1Dt
.
charge
[0:
MAX_SPECIES
],\
87
sim->
plasma_data
.
plasma_1Dt
.
anum
[0:
MAX_SPECIES
],\
88
sim->
plasma_data
.
plasma_1Dt
.
znum
[0:
MAX_SPECIES
],\
89
sim->
plasma_data
.
plasma_1Dt
.
rho
[0:sim->
plasma_data
.
plasma_1Dt
.
n_rho
],\
90
sim->
plasma_data
.
plasma_1Dt
.
temp
[0:sim->
plasma_data
.
plasma_1Dt
.
n_time
*sim->
plasma_data
.
plasma_1Dt
.
n_rho
*sim->
plasma_data
.
plasma_1Dt
.
n_species
],\
91
sim->
plasma_data
.
plasma_1Dt
.
dens
[0:sim->
plasma_data
.
plasma_1Dt
.
n_rho
*sim->
plasma_data
.
plasma_1Dt
.
n_species
*sim->
plasma_data
.
plasma_1Dt
.
n_time
],\
92
sim->
plasma_data
.
plasma_1Dt
.
time
[0:sim->
plasma_data
.
plasma_1Dt
.
n_time
] )
93
break
;
94
95
case
plasma_type_1DS
:
96
GPU_MAP_TO_DEVICE(
97
sim->
plasma_data
.
plasma_1DS
.
mass
[0:
MAX_SPECIES
],\
98
sim->
plasma_data
.
plasma_1DS
.
charge
[0:
MAX_SPECIES
],\
99
sim->
plasma_data
.
plasma_1DS
.
anum
[0:
MAX_SPECIES
],\
100
sim->
plasma_data
.
plasma_1DS
.
znum
[0:
MAX_SPECIES
],\
101
sim->
plasma_data
.
plasma_1DS
.
temp
[0:2],\
102
sim->
plasma_data
.
plasma_1DS
.
dens
[0:
MAX_SPECIES
],\
103
sim->
plasma_data
.
plasma_1DS
.
temp
[0].
c
[0:sim->
plasma_data
.
plasma_1DS
.
temp
[0].
n_x
*NSIZE_COMP1D],\
104
sim->
plasma_data
.
plasma_1DS
.
temp
[1].
c
[0:sim->
plasma_data
.
plasma_1DS
.
temp
[1].
n_x
*NSIZE_COMP1D] )
105
for
(
int
i=0;i<
MAX_SPECIES
;i++) {
106
GPU_MAP_TO_DEVICE(
107
sim->
plasma_data
.
plasma_1DS
.
dens
[i].
c
[0:sim->
plasma_data
.
plasma_1DS
.
dens
[i].
n_x
*NSIZE_COMP1D] )
108
}
109
break
;
110
111
default
:
112
break
;
113
}
114
115
switch
(sim->
B_data
.
type
) {
116
117
case
B_field_type_GS
:
118
GPU_MAP_TO_DEVICE(
119
sim->
B_data
.
BGS
.
psi_coeff
[0:13] )
120
break
;
121
case
B_field_type_2DS
:
122
GPU_MAP_TO_DEVICE(
123
sim->
B_data
.
B2DS
.
psi
, sim->
B_data
.
B2DS
.
psi
.
c
[0:sim->
B_data
.
B2DS
.
psi
.
n_x
*sim->
B_data
.
B2DS
.
psi
.
n_y
*NSIZE_COMP2D],\
124
sim->
B_data
.
B2DS
.
B_r
, sim->
B_data
.
B2DS
.
B_r
.
c
[0:sim->
B_data
.
B2DS
.
B_r
.
n_x
*sim->
B_data
.
B2DS
.
B_r
.
n_y
*NSIZE_COMP2D],\
125
sim->
B_data
.
B2DS
.
B_phi
, sim->
B_data
.
B2DS
.
B_phi
.
c
[0:sim->
B_data
.
B2DS
.
B_phi
.
n_x
*sim->
B_data
.
B2DS
.
B_phi
.
n_y
*NSIZE_COMP2D],\
126
sim->
B_data
.
B2DS
.
B_z
, sim->
B_data
.
B2DS
.
B_z
.
c
[0:sim->
B_data
.
B2DS
.
B_z
.
n_x
*sim->
B_data
.
B2DS
.
B_z
.
n_y
*NSIZE_COMP2D] )
127
break
;
128
case
B_field_type_3DS
:
129
GPU_MAP_TO_DEVICE(
130
sim->
B_data
.
B3DS
.
psi
, sim->
B_data
.
B3DS
.
psi
.
c
[0:sim->
B_data
.
B3DS
.
psi
.
n_x
*sim->
B_data
.
B3DS
.
psi
.
n_y
*NSIZE_COMP2D], \
131
sim->
B_data
.
B3DS
.
B_r
, sim->
B_data
.
B3DS
.
B_r
.
c
[0:sim->
B_data
.
B3DS
.
B_r
.
n_x
*sim->
B_data
.
B3DS
.
B_r
.
n_y
*sim->
B_data
.
B3DS
.
B_r
.
n_z
*NSIZE_COMP3D], \
132
sim->
B_data
.
B3DS
.
B_phi
, sim->
B_data
.
B3DS
.
B_phi
.
c
[0:sim->
B_data
.
B3DS
.
B_phi
.
n_x
*sim->
B_data
.
B3DS
.
B_phi
.
n_y
*sim->
B_data
.
B3DS
.
B_phi
.
n_z
*NSIZE_COMP3D], \
133
sim->
B_data
.
B3DS
.
B_z
, sim->
B_data
.
B3DS
.
B_z
.
c
[0:sim->
B_data
.
B3DS
.
B_z
.
n_x
*sim->
B_data
.
B3DS
.
B_z
.
n_y
*sim->
B_data
.
B3DS
.
B_z
.
n_z
*NSIZE_COMP3D] )
134
135
break
;
136
case
B_field_type_STS
:
137
GPU_MAP_TO_DEVICE(
138
sim->
B_data
.
BSTS
.
axis_r
, sim->
B_data
.
BSTS
.
axis_r
.
c
[0:sim->
B_data
.
BSTS
.
axis_r
.
n_x
], \
139
sim->
B_data
.
BSTS
.
axis_z
, sim->
B_data
.
BSTS
.
axis_z
.
c
[0:sim->
B_data
.
BSTS
.
axis_z
.
n_x
], \
140
sim->
B_data
.
BSTS
.
psi
, sim->
B_data
.
BSTS
.
psi
.
c
[0:sim->
B_data
.
BSTS
.
psi
.
n_x
*sim->
B_data
.
BSTS
.
psi
.
n_y
*sim->
B_data
.
BSTS
.
psi
.
n_z
*NSIZE_COMP3D], \
141
sim->
B_data
.
BSTS
.
B_r
, sim->
B_data
.
BSTS
.
B_r
.
c
[0:sim->
B_data
.
BSTS
.
B_r
.
n_x
*sim->
B_data
.
BSTS
.
B_r
.
n_y
*sim->
B_data
.
BSTS
.
B_r
.
n_z
*NSIZE_COMP3D], \
142
sim->
B_data
.
BSTS
.
B_z
, sim->
B_data
.
BSTS
.
B_z
.
c
[0:sim->
B_data
.
BSTS
.
B_z
.
n_x
*sim->
B_data
.
BSTS
.
B_z
.
n_y
*sim->
B_data
.
BSTS
.
B_z
.
n_z
*NSIZE_COMP3D], \
143
sim->
B_data
.
BSTS
.
B_phi
, sim->
B_data
.
BSTS
.
B_phi
.
c
[0:sim->
B_data
.
BSTS
.
B_phi
.
n_x
*sim->
B_data
.
BSTS
.
B_phi
.
n_y
*sim->
B_data
.
BSTS
.
B_phi
.
n_z
*NSIZE_COMP3D] )
144
break
;
145
case
B_field_type_TC
:
146
GPU_MAP_TO_DEVICE(
147
sim->
B_data
.
BTC
.
B
[0:3],sim->
B_data
.
BTC
.
dB
[0:9] )
148
break
;
149
default
:
150
break
;
151
}
152
}
153
157
void
simulate_fo_fixed_copy_from_gpu
(
sim_data
* sim,
particle_simd_fo
*p_ptr){
158
159
GPU_UPDATE_FROM_DEVICE(
160
p_ptr->
running
[0:p_ptr->
n_mrk
],p_ptr->
r
[0:p_ptr->
n_mrk
],p_ptr->
phi
[0:p_ptr->
n_mrk
],p_ptr->
p_r
[0:p_ptr->
n_mrk
],p_ptr->
p_phi
[0:p_ptr->
n_mrk
],p_ptr->
p_z
[0:p_ptr->
n_mrk
],p_ptr->
mileage
[0:p_ptr->
n_mrk
], \
161
p_ptr->
z
[0:p_ptr->
n_mrk
],p_ptr->
charge
[0:p_ptr->
n_mrk
],p_ptr->
mass
[0:p_ptr->
n_mrk
],p_ptr->
B_r
[0:p_ptr->
n_mrk
],p_ptr->
B_r_dr
[0:p_ptr->
n_mrk
],p_ptr->
B_r_dphi
[0:p_ptr->
n_mrk
],p_ptr->
B_r_dz
[0:p_ptr->
n_mrk
], \
162
p_ptr->
B_phi
[0:p_ptr->
n_mrk
],p_ptr->
B_phi_dr
[0:p_ptr->
n_mrk
],p_ptr->
B_phi_dphi
[0:p_ptr->
n_mrk
],p_ptr->
B_phi_dz
[0:p_ptr->
n_mrk
],p_ptr->
B_z
[0:p_ptr->
n_mrk
],p_ptr->
B_z_dr
[0:p_ptr->
n_mrk
],p_ptr->
B_z_dphi
[0:p_ptr->
n_mrk
], \
163
p_ptr->
B_z_dz
[0:p_ptr->
n_mrk
],p_ptr->
rho
[0:p_ptr->
n_mrk
],p_ptr->
theta
[0:p_ptr->
n_mrk
],p_ptr->
err
[0:p_ptr->
n_mrk
],p_ptr->
time
[0:p_ptr->
n_mrk
],p_ptr->
weight
[0:p_ptr->
n_mrk
],p_ptr->
cputime
[0:p_ptr->
n_mrk
], \
164
p_ptr->
id
[0:p_ptr->
n_mrk
],p_ptr->
endcond
[0:p_ptr->
n_mrk
],p_ptr->
walltile
[0:p_ptr->
n_mrk
],p_ptr->
index
[0:p_ptr->
n_mrk
],p_ptr->
znum
[0:p_ptr->
n_mrk
],p_ptr->
anum
[0:p_ptr->
n_mrk
],p_ptr->
bounces
[0:p_ptr->
n_mrk
] )
165
166
GPU_MAP_FROM_DEVICE(
167
sim[0:1] )
168
}
B_field.h
Header file for B_field.c.
B_field_type_2DS
@ B_field_type_2DS
Definition
B_field.h:29
B_field_type_TC
@ B_field_type_TC
Definition
B_field.h:32
B_field_type_3DS
@ B_field_type_3DS
Definition
B_field.h:30
B_field_type_STS
@ B_field_type_STS
Definition
B_field.h:31
B_field_type_GS
@ B_field_type_GS
Definition
B_field.h:28
E_field.h
Header file for E_field.c.
E_field_type_TC
@ E_field_type_TC
Definition
E_field.h:26
E_field_type_1DS
@ E_field_type_1DS
Definition
E_field.h:27
MAX_SPECIES
#define MAX_SPECIES
Maximum number of plasma species.
Definition
ascot5.h:95
simulate_fo_fixed_copy_from_gpu
void simulate_fo_fixed_copy_from_gpu(sim_data *sim, particle_simd_fo *p_ptr)
Copy data from GPU to CPU.
Definition
copytogpu.c:157
simulate_copy_to_gpu
void simulate_copy_to_gpu(sim_data *sim)
Copy data from CPU to GPU.
Definition
copytogpu.c:14
copytogpu.h
Header file for copytogpu.c.
particle.h
Header file for particle.c.
plasma_type_1D
@ plasma_type_1D
Definition
plasma.h:25
plasma_type_1Dt
@ plasma_type_1Dt
Definition
plasma.h:26
plasma_type_1DS
@ plasma_type_1DS
Definition
plasma.h:27
simulate.h
Header file for simulate.c.
B_2DS_data::psi
interp2D_data psi
Definition
B_2DS.h:39
B_2DS_data::B_phi
interp2D_data B_phi
Definition
B_2DS.h:41
B_2DS_data::B_z
interp2D_data B_z
Definition
B_2DS.h:42
B_2DS_data::B_r
interp2D_data B_r
Definition
B_2DS.h:40
B_3DS_data::psi
interp2D_data psi
Definition
B_3DS.h:48
B_3DS_data::B_r
interp3D_data B_r
Definition
B_3DS.h:49
B_3DS_data::B_phi
interp3D_data B_phi
Definition
B_3DS.h:50
B_3DS_data::B_z
interp3D_data B_z
Definition
B_3DS.h:51
B_GS_data::psi_coeff
real * psi_coeff
Definition
B_GS.h:44
B_STS_data::psi
interp3D_data psi
Definition
B_STS.h:54
B_STS_data::B_z
interp3D_data B_z
Definition
B_STS.h:57
B_STS_data::B_phi
interp3D_data B_phi
Definition
B_STS.h:56
B_STS_data::axis_z
linint1D_data axis_z
Definition
B_STS.h:53
B_STS_data::B_r
interp3D_data B_r
Definition
B_STS.h:55
B_STS_data::axis_r
linint1D_data axis_r
Definition
B_STS.h:52
B_TC_data::dB
real * dB
Definition
B_TC.h:47
B_TC_data::B
real * B
Definition
B_TC.h:46
B_field_data::BSTS
B_STS_data BSTS
Definition
B_field.h:68
B_field_data::BTC
B_TC_data BTC
Definition
B_field.h:69
B_field_data::B2DS
B_2DS_data B2DS
Definition
B_field.h:66
B_field_data::type
B_field_type type
Definition
B_field.h:64
B_field_data::BGS
B_GS_data BGS
Definition
B_field.h:65
B_field_data::B3DS
B_3DS_data B3DS
Definition
B_field.h:67
E_1DS_data::dV
interp1D_data dV
Definition
E_1DS.h:31
E_TC_data::Exyz
real * Exyz
Definition
E_TC.h:28
E_field_data::ETC
E_TC_data ETC
Definition
E_field.h:57
E_field_data::type
E_field_type type
Definition
E_field.h:56
E_field_data::E1DS
E_1DS_data E1DS
Definition
E_field.h:58
diag_data::distCOM
dist_COM_data distCOM
Definition
diag.h:68
diag_data::distrho5D_collect
int distrho5D_collect
Definition
diag.h:58
diag_data::distrho6D_collect
int distrho6D_collect
Definition
diag.h:59
diag_data::distrho6D
dist_rho6D_data distrho6D
Definition
diag.h:67
diag_data::dist5D
dist_5D_data dist5D
Definition
diag.h:64
diag_data::dist5D_collect
int dist5D_collect
Definition
diag.h:56
diag_data::dist6D_collect
int dist6D_collect
Definition
diag.h:57
diag_data::distCOM_collect
int distCOM_collect
Definition
diag.h:60
diag_data::dist6D
dist_6D_data dist6D
Definition
diag.h:65
diag_data::distrho5D
dist_rho5D_data distrho5D
Definition
diag.h:66
dist_5D_data::n_z
int n_z
Definition
dist_5D.h:57
dist_5D_data::n_q
int n_q
Definition
dist_5D.h:73
dist_5D_data::n_phi
int n_phi
Definition
dist_5D.h:53
dist_5D_data::n_time
int n_time
Definition
dist_5D.h:69
dist_5D_data::n_ppara
int n_ppara
Definition
dist_5D.h:61
dist_5D_data::n_pperp
int n_pperp
Definition
dist_5D.h:65
dist_5D_data::n_r
int n_r
Definition
dist_5D.h:49
dist_5D_data::histogram
real * histogram
Definition
dist_5D.h:84
dist_6D_data::n_q
int n_q
Definition
dist_6D.h:81
dist_6D_data::n_time
int n_time
Definition
dist_6D.h:77
dist_6D_data::histogram
real * histogram
Definition
dist_6D.h:93
dist_6D_data::n_r
int n_r
Definition
dist_6D.h:53
dist_6D_data::n_pz
int n_pz
Definition
dist_6D.h:73
dist_6D_data::n_pphi
int n_pphi
Definition
dist_6D.h:69
dist_6D_data::n_z
int n_z
Definition
dist_6D.h:61
dist_6D_data::n_pr
int n_pr
Definition
dist_6D.h:65
dist_6D_data::n_phi
int n_phi
Definition
dist_6D.h:57
dist_COM_data::n_Ptor
int n_Ptor
Definition
dist_com.h:42
dist_COM_data::histogram
real * histogram
Definition
dist_com.h:49
dist_COM_data::n_Ekin
int n_Ekin
Definition
dist_com.h:38
dist_COM_data::n_mu
int n_mu
Definition
dist_com.h:34
dist_rho5D_data::n_phi
int n_phi
Definition
dist_rho5D.h:57
dist_rho5D_data::n_ppara
int n_ppara
Definition
dist_rho5D.h:61
dist_rho5D_data::n_pperp
int n_pperp
Definition
dist_rho5D.h:65
dist_rho5D_data::histogram
real * histogram
Definition
dist_rho5D.h:84
dist_rho5D_data::n_q
int n_q
Definition
dist_rho5D.h:73
dist_rho5D_data::n_rho
int n_rho
Definition
dist_rho5D.h:49
dist_rho5D_data::n_theta
int n_theta
Definition
dist_rho5D.h:53
dist_rho5D_data::n_time
int n_time
Definition
dist_rho5D.h:69
dist_rho6D_data::n_pr
int n_pr
Definition
dist_rho6D.h:65
dist_rho6D_data::n_pphi
int n_pphi
Definition
dist_rho6D.h:69
dist_rho6D_data::n_theta
int n_theta
Definition
dist_rho6D.h:57
dist_rho6D_data::histogram
real * histogram
Definition
dist_rho6D.h:93
dist_rho6D_data::n_time
int n_time
Definition
dist_rho6D.h:77
dist_rho6D_data::n_q
int n_q
Definition
dist_rho6D.h:81
dist_rho6D_data::n_phi
int n_phi
Definition
dist_rho6D.h:61
dist_rho6D_data::n_pz
int n_pz
Definition
dist_rho6D.h:73
dist_rho6D_data::n_rho
int n_rho
Definition
dist_rho6D.h:53
interp1D_data::c
real * c
Definition
interp.h:62
interp1D_data::n_x
int n_x
Definition
interp.h:57
interp2D_data::n_y
int n_y
Definition
interp.h:70
interp2D_data::n_x
int n_x
Definition
interp.h:69
interp2D_data::c
real * c
Definition
interp.h:79
interp3D_data::c
real * c
Definition
interp.h:101
interp3D_data::n_y
int n_y
Definition
interp.h:87
interp3D_data::n_z
int n_z
Definition
interp.h:88
interp3D_data::n_x
int n_x
Definition
interp.h:86
linint1D_data::n_x
int n_x
Definition
linint.h:22
linint1D_data::c
real * c
Definition
linint.h:27
particle_simd_fo
Struct representing NSIMD particle markers.
Definition
particle.h:210
particle_simd_fo::p_phi
real * p_phi
Definition
particle.h:216
particle_simd_fo::time
real * time
Definition
particle.h:220
particle_simd_fo::charge
real * charge
Definition
particle.h:219
particle_simd_fo::r
real * r
Definition
particle.h:212
particle_simd_fo::B_phi_dphi
real * B_phi_dphi
Definition
particle.h:233
particle_simd_fo::B_r_dz
real * B_r_dz
Definition
particle.h:235
particle_simd_fo::id
integer * id
Definition
particle.h:246
particle_simd_fo::B_z_dz
real * B_z_dz
Definition
particle.h:237
particle_simd_fo::bounces
int * bounces
Definition
particle.h:240
particle_simd_fo::n_mrk
size_t n_mrk
Definition
particle.h:256
particle_simd_fo::znum
int * znum
Definition
particle.h:221
particle_simd_fo::weight
real * weight
Definition
particle.h:241
particle_simd_fo::B_r_dphi
real * B_r_dphi
Definition
particle.h:232
particle_simd_fo::rho
real * rho
Definition
particle.h:243
particle_simd_fo::B_phi_dr
real * B_phi_dr
Definition
particle.h:230
particle_simd_fo::mileage
real * mileage
Definition
particle.h:251
particle_simd_fo::endcond
integer * endcond
Definition
particle.h:247
particle_simd_fo::B_phi
real * B_phi
Definition
particle.h:226
particle_simd_fo::index
integer * index
Definition
particle.h:255
particle_simd_fo::B_z_dr
real * B_z_dr
Definition
particle.h:231
particle_simd_fo::p_z
real * p_z
Definition
particle.h:217
particle_simd_fo::B_z
real * B_z
Definition
particle.h:227
particle_simd_fo::err
a5err * err
Definition
particle.h:254
particle_simd_fo::B_z_dphi
real * B_z_dphi
Definition
particle.h:234
particle_simd_fo::walltile
integer * walltile
Definition
particle.h:248
particle_simd_fo::B_r
real * B_r
Definition
particle.h:225
particle_simd_fo::theta
real * theta
Definition
particle.h:244
particle_simd_fo::p_r
real * p_r
Definition
particle.h:215
particle_simd_fo::running
integer * running
Definition
particle.h:252
particle_simd_fo::mass
real * mass
Definition
particle.h:218
particle_simd_fo::B_r_dr
real * B_r_dr
Definition
particle.h:229
particle_simd_fo::B_phi_dz
real * B_phi_dz
Definition
particle.h:236
particle_simd_fo::phi
real * phi
Definition
particle.h:213
particle_simd_fo::z
real * z
Definition
particle.h:214
particle_simd_fo::anum
int * anum
Definition
particle.h:222
particle_simd_fo::cputime
real * cputime
Definition
particle.h:242
plasma_1DS_data::mass
real mass[MAX_SPECIES]
Definition
plasma_1DS.h:33
plasma_1DS_data::dens
interp1D_data dens[MAX_SPECIES]
Definition
plasma_1DS.h:39
plasma_1DS_data::charge
real charge[MAX_SPECIES]
Definition
plasma_1DS.h:34
plasma_1DS_data::temp
interp1D_data temp[2]
Definition
plasma_1DS.h:37
plasma_1DS_data::anum
int anum[MAX_SPECIES]
Definition
plasma_1DS.h:35
plasma_1DS_data::znum
int znum[MAX_SPECIES]
Definition
plasma_1DS.h:36
plasma_1D_data::temp
real * temp
Definition
plasma_1D.h:37
plasma_1D_data::dens
real * dens
Definition
plasma_1D.h:38
plasma_1D_data::charge
real charge[MAX_SPECIES]
Definition
plasma_1D.h:32
plasma_1D_data::anum
int anum[MAX_SPECIES]
Definition
plasma_1D.h:33
plasma_1D_data::n_species
int n_species
Definition
plasma_1D.h:29
plasma_1D_data::n_rho
int n_rho
Definition
plasma_1D.h:28
plasma_1D_data::mass
real mass[MAX_SPECIES]
Definition
plasma_1D.h:31
plasma_1D_data::rho
real * rho
Definition
plasma_1D.h:35
plasma_1D_data::znum
int znum[MAX_SPECIES]
Definition
plasma_1D.h:34
plasma_1Dt_data::temp
real * temp
Definition
plasma_1Dt.h:40
plasma_1Dt_data::time
real * time
Definition
plasma_1Dt.h:39
plasma_1Dt_data::dens
real * dens
Definition
plasma_1Dt.h:41
plasma_1Dt_data::rho
real * rho
Definition
plasma_1Dt.h:37
plasma_1Dt_data::charge
real charge[MAX_SPECIES]
Definition
plasma_1Dt.h:34
plasma_1Dt_data::znum
int znum[MAX_SPECIES]
Definition
plasma_1Dt.h:36
plasma_1Dt_data::n_species
int n_species
Definition
plasma_1Dt.h:31
plasma_1Dt_data::n_rho
int n_rho
Definition
plasma_1Dt.h:29
plasma_1Dt_data::n_time
int n_time
Definition
plasma_1Dt.h:30
plasma_1Dt_data::anum
int anum[MAX_SPECIES]
Definition
plasma_1Dt.h:35
plasma_1Dt_data::mass
real mass[MAX_SPECIES]
Definition
plasma_1Dt.h:33
plasma_data::plasma_1D
plasma_1D_data plasma_1D
Definition
plasma.h:59
plasma_data::plasma_1Dt
plasma_1Dt_data plasma_1Dt
Definition
plasma.h:60
plasma_data::plasma_1DS
plasma_1DS_data plasma_1DS
Definition
plasma.h:61
plasma_data::type
plasma_type type
Definition
plasma.h:58
sim_data
Simulation data struct.
Definition
simulate.h:154
sim_data::plasma_data
plasma_data plasma_data
Definition
simulate.h:158
sim_data::E_data
E_field_data E_data
Definition
simulate.h:157
sim_data::B_data
B_field_data B_data
Definition
simulate.h:156
sim_data::wall_data
wall_data wall_data
Definition
simulate.h:160
sim_data::diag_data
diag_data diag_data
Definition
simulate.h:165
wall_2d_data::n
int n
Definition
wall_2d.h:24
wall_2d_data::wall_z
real * wall_z
Definition
wall_2d.h:26
wall_2d_data::wall_r
real * wall_r
Definition
wall_2d.h:25
wall_3d_data::tree_array
int * tree_array
Array storing information what triangles given octree cell stores.
Definition
wall_3d.h:63
wall_3d_data::tree_array_size
int tree_array_size
Definition
wall_3d.h:53
wall_3d_data::wall_tris
real * wall_tris
Definition
wall_3d.h:52
wall_3d_data::n
int n
Definition
wall_3d.h:39
wall_data::type
wall_type type
Definition
wall.h:56
wall_data::w3d
wall_3d_data w3d
Definition
wall.h:58
wall_data::w2d
wall_2d_data w2d
Definition
wall.h:57
wall_type_2D
@ wall_type_2D
Definition
wall.h:25
wall_type_3D
@ wall_type_3D
Definition
wall.h:26
Generated on Wed Oct 9 2024 17:13:56 for ASCOT5 by
1.10.0