aboutsummaryrefslogtreecommitdiff
path: root/src/ioutil_Utils.h
blob: c7e8b2e30ddb23c5b02e1f463120f2c1642068b0 (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
 /*@@
   @header    ioutil_Utils.h
   @date      Tue 19 Sep 2000
   @author    Thomas Radke
   @desc 
              Function prototypes for setting up slice centers.
   @history
   @endhistory
   @version $Header$
 @@*/

#ifndef _IOUTIL_UTILS_H_
#define _IOUTIL_UTILS_H_

#ifdef __cplusplus
extern "C"
{
#endif


/* set the slice center for 1D lines */
int IOUtil_1DLines (cGH *GH,
                    int num_dims,
                    int *const origin_index[],
                    CCTK_REAL *const origin_phys[],
                    int *slice_center[]);

/* set the slice center for 2D planes */
int IOUtil_2DPlanes (cGH *GH,
                     int num_dims,
                     const int origin_index[],
                     const CCTK_REAL origin_phys[],
                     int slice_center[]);

int IOUtil_CreateDirectory (cGH *GH,
                            const char *dirname,
                            int multiple_io_procs,
                            int ioproc);

#ifdef __cplusplus
}
#endif

#endif  /* _IOUTIL_UTILS_H_ */