blob: f403aeccaf5a1ca45ff2aa0a87825195d37564fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#include "cctk.h"
#include "loopcontrol.h"
module loopcontrol_types
implicit none
! Note: These types must correspond to the corresponding C types
! declared in loopcontrol.h
type, bind(C) :: lc_vec_t
CCTK_POINTER :: v(LC_DIM)
end type lc_vec_t
type, bind(C) :: lc_ivec_t
integer :: v(LC_DIM)
end type lc_ivec_t
type, bind(C) :: lc_space_t
type(lc_vec_t) :: min, max, step, pos
type(lc_ivec_t) :: count, idx
end type lc_space_t
type, bind(C) :: lc_control_t
type(lc_vec_t) :: ash
type(lc_space_t) :: loop
type(lc_space_t) :: thread
CCTK_POINTER :: thread_idx_ptr
integer :: thread_done
type(lc_space_t) :: coarse
type(lc_space_t) :: fine
type(lc_space_t) :: fine_thread
CCTK_POINTER :: fine_thread_info_ptr
CCTK_POINTER :: selftest_array
end type lc_control_t
end module loopcontrol_types
|