aboutsummaryrefslogtreecommitdiff
path: root/src/cctk_IOMethods.F90
blob: 31cc3e1bc7226deb9031bfda8d83e5000388b8bf (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
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
/*@@
  @file    $RCSfile$
  @author  $Author$
  @date    $Date$
  @desc
           Fortran 90 interface declarations for the routines
           which have their C declarations in cctk_IOMethods.h
  @enddesc
  @version $Header$
@@*/

#include "cctk.h"

module cctk_IOMethods
  implicit none

  interface

     subroutine CCTKi_RegisterIOMethod (handle, thorn, name)
       implicit none
       integer handle
       character(*) thorn
       character(*) name
     end subroutine CCTKi_RegisterIOMethod

     subroutine CCTK_RegisterIOMethodOutputGH (ierr, handle, OutputGH)
       implicit none
       integer       ierr
       integer       handle
       CCTK_FPOINTER OutputGH
     end subroutine CCTK_RegisterIOMethodOutputGH

#if 0
C    no Fortran 90 interface for following routines
C    their names exceed the maximum allowed length of 31 characters
     subroutine CCTK_RegisterIOMethodTimeToOutput (ierr, handle, TimeToOutput)
       implicit none
       integer       ierr
       integer       handle
       CCTK_FPOINTER TimeToOutput
     end subroutine CCTK_RegisterIOMethodTimeToOutput

     subroutine CCTK_RegisterIOMethodTriggerOutput (ierr, handle, TriggerOutput)
       implicit none
       integer       ierr
       integer       handle
       CCTK_FPOINTER TriggerOutput
     end subroutine CCTK_RegisterIOMethodTriggerOutput

     subroutine CCTK_RegisterIOMethodOutputVarAs (ierr, handle, OutputVarAs)
       implicit none
       integer       ierr
       integer       handle
       CCTK_FPOINTER OutputVarAs
     end subroutine CCTK_RegisterIOMethodOutputVarAs

     subroutine CCTK_IOMethodImplementation (nchars, imp, handle)
       implicit none
       integer      nchars
       character(*) imp
       integer      handle
     end subroutine CCTK_IOMethodImplementation

     subroutine CCTK_IOMethod (nchars, method, handle)
       implicit none
       integer      nchars
       character(*) method
       integer      handle
     end subroutine CCTK_IOMethod

     subroutine CCTK_NumIOMethods (num)
       implicit none
       integer num
     end subroutine CCTK_NumIOMethods

  end interface

end module cctk_IOMethods