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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
|
! $Header$
#include "cctk.h"
module cactus
implicit none
public
interface
! from Cactus:
subroutine cctk_barrier (ierr, cctkgh)
implicit none
integer ierr
CCTK_POINTER cctkgh
end subroutine cctk_barrier
subroutine cctk_coordrange (ierr, cctkgh, lower, upper, dir, name, &
& systemname)
implicit none
integer ierr
CCTK_POINTER cctkgh
CCTK_REAL lower
CCTK_REAL upper
integer dir
character*(*) name
character*(*) systemname
end subroutine cctk_coordrange
subroutine cctk_coordsystemhandle (handle, coordsystem)
implicit none
integer handle
character*(*) coordsystem
end subroutine cctk_coordsystemhandle
function cctk_equals (arg1, arg2)
implicit none
integer cctk_equals
CCTK_POINTER arg1
character*(*) arg2
end function cctk_equals
subroutine cctk_fortranstring (clength, cstring, fortstring)
implicit none
CCTK_INT clength ! intent(out)
CCTK_POINTER cstring
character*(*) fortstring
end subroutine cctk_fortranstring
subroutine cctk_groupbboxgn (ierr, cctkgh, nbbox, bbox, groupname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer nbbox
integer bbox(nbbox)
character*(*) groupname
end subroutine cctk_groupbboxgn
subroutine cctk_groupgshgn (ierr, cctkgh, ngsh, gsh, groupname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer ngsh
integer gsh(ngsh)
character*(*) groupname
end subroutine cctk_groupgshgn
subroutine cctk_grouplbndgn (ierr, cctkgh, nlbnd, lbnd, groupname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer nlbnd
integer lbnd(nlbnd)
character*(*) groupname
end subroutine cctk_grouplbndgn
subroutine cctk_grouplshgn (ierr, cctkgh, nlsh, lsh, groupname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer nlsh
integer lsh(nlsh)
character*(*) groupname
end subroutine cctk_grouplshgn
subroutine cctk_groupnghostzonesgn &
(ierr, cctkgh, nnghostzones, nghostzones, groupname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer nnghostzones
integer nghostzones(nnghostzones)
character*(*) groupname
end subroutine cctk_groupnghostzonesgn
subroutine cctk_groupubndgn (ierr, cctkgh, nubnd, ubnd, groupname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer nubnd
integer ubnd(nubnd)
character*(*) groupname
end subroutine cctk_groupubndgn
subroutine cctk_info (thorn, message)
implicit none
character*(*) thorn
character*(*) message
end subroutine cctk_info
subroutine cctk_interphandle (handle, interp)
implicit none
integer handle
character*(*) interp
end subroutine cctk_interphandle
function cctk_isthornactive (name)
implicit none
integer cctk_isthornactive
character*(*) name
end function cctk_isthornactive
function cctk_myproc (cctkgh)
implicit none
integer cctk_myproc
CCTK_POINTER cctkgh
end function cctk_myproc
function cctk_nprocs (cctkgh)
implicit none
integer cctk_nprocs
CCTK_POINTER cctkgh
end function cctk_nprocs
subroutine cctk_paramwarn (thorn, message)
implicit none
character*(*) thorn
character*(*) message
end subroutine cctk_paramwarn
subroutine cctk_reductionarrayhandle (handle, reduction)
implicit none
integer handle
character*(*) reduction
end subroutine cctk_reductionarrayhandle
subroutine cctk_registerbanner (ierr, banner)
implicit none
integer ierr
character*(*) banner
end subroutine cctk_registerbanner
subroutine cctk_syncgroup (ierr, cctkgh, groupname)
implicit none
integer ierr
CCTK_POINTER cctkgh
character*(*) groupname
end subroutine cctk_syncgroup
subroutine cctk_syncgroupi (ierr, cctkgh, group)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer group
end subroutine cctk_syncgroupi
subroutine cctk_syncgroupwithvar (ierr, cctkgh, varname)
implicit none
integer ierr
CCTK_POINTER cctkgh
character*(*) varname
end subroutine cctk_syncgroupwithvar
subroutine cctk_syncgroupwithvari (ierr, cctkgh, var)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer var
end subroutine cctk_syncgroupwithvari
subroutine cctk_varindex (vi, vname)
implicit none
integer vi
character*(*) vname
end subroutine cctk_varindex
subroutine cctk_vartypei (vartype, varindex)
implicit none
integer vartype
integer varindex
end subroutine cctk_vartypei
subroutine cctk_warn (level, line, file, thorn, message)
implicit none
integer level
integer line
character*(*) file
character*(*) thorn
character*(*) message
end subroutine cctk_warn
! from thorn CactusBase/Boundary:
subroutine bndcopygn (ierr, cctkgh, sw, togroupname, fromgroupname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer sw(3)
character*(*) togroupname
character*(*) fromgroupname
end subroutine bndcopygn
subroutine bndflatgn (ierr, cctkgh, sw, groupname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer sw(3)
character*(*) groupname
end subroutine bndflatgn
subroutine bndradiativegn (ierr, cctkgh, sw, var0, v0, &
& togroupname, fromgroupname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer sw(3)
CCTK_REAL var0
CCTK_REAL v0
character*(*) togroupname
character*(*) fromgroupname
end subroutine bndradiativegn
subroutine bndradiativevn (ierr, cctkgh, sw, var0, v0, &
& tovarname, fromvarname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer sw(3)
CCTK_REAL var0
CCTK_REAL v0
character*(*) tovarname
character*(*) fromvarname
end subroutine bndradiativevn
subroutine bndrobinvn (ierr, cctkgh, sw, finf, npow, varname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer sw(3)
CCTK_REAL finf
integer npow
character*(*) varname
end subroutine bndrobinvn
subroutine bndscalargn (ierr, cctkgh, sw, var0, groupname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer sw(3)
CCTK_REAL var0
character*(*) groupname
end subroutine bndscalargn
subroutine bndscalarvn (ierr, cctkgh, sw, var0, varname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer sw(3)
CCTK_REAL var0
character*(*) varname
end subroutine bndscalarvn
! from thorn CactusBase/CartGrid3D:
subroutine cartsymgn (ierr, cctkgh, groupname)
implicit none
integer ierr
CCTK_POINTER cctkgh
character*(*) groupname
end subroutine cartsymgn
subroutine setcartsymvn (ierr, cctkgh, sw, varname)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer sw(3)
character*(*) varname
end subroutine setcartsymvn
! from thorn AlphaThorns/Cart3D:
subroutine cart3dsymvi (ierr, cctkgh, vi)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer vi
end subroutine cart3dsymvi
subroutine cart3dsymvn (ierr, cctkgh, vn)
implicit none
integer ierr
CCTK_POINTER cctkgh
character*(*) vn
end subroutine cart3dsymvn
subroutine cart3dsymgi (ierr, cctkgh, gi)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer gi
end subroutine cart3dsymgi
subroutine cart3dsymgn (ierr, cctkgh, gn)
implicit none
integer ierr
CCTK_POINTER cctkgh
character*(*) gn
end subroutine cart3dsymgn
subroutine cart3dsettensortypevi (ierr, cctkgh, nvars, vi, typename)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer nvars
integer vi(nvars)
character*(*) typename
end subroutine cart3dsettensortypevi
subroutine cart3dsettensortypevn (ierr, cctkgh, vn, typename)
implicit none
integer ierr
CCTK_POINTER cctkgh
character*(*) vn
character*(*) typename
end subroutine cart3dsettensortypevn
subroutine cart3dgetsymmetriesvi (ierr, cctkgh, sym, vi)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer sym(6)
integer vi
end subroutine cart3dgetsymmetriesvi
subroutine cart3dgetsymmetriesvn (ierr, cctkgh, sym, vn)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer sym(6)
character*(*) vn
end subroutine cart3dgetsymmetriesvn
subroutine cart3dgetsymmetryboundaries (ierr, cctkgh, symbnd)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer symbnd(6)
end subroutine cart3dgetsymmetryboundaries
subroutine cart3dgetsymmetric (ierr, cctkgh, symmetric)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer symmetric(6)
end subroutine cart3dgetsymmetric
subroutine cart3dgetstaggered (ierr, cctkgh, staggered)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer staggered(6)
end subroutine cart3dgetstaggered
subroutine cart3dgetperiodic (ierr, cctkgh, periodic)
implicit none
integer ierr
CCTK_POINTER cctkgh
integer periodic(6)
end subroutine cart3dgetperiodic
end interface
end module cactus
|