Yet Another eXchange Tool  0.9.0
xt_core.h
Go to the documentation of this file.
1 
12 /*
13  * Keywords:
14  * Maintainer: Jörg Behrens <behrens@dkrz.de>
15  * Moritz Hanke <hanke@dkrz.de>
16  * Thomas Jahns <jahns@dkrz.de>
17  * URL: https://doc.redmine.dkrz.de/yaxt/html/
18  *
19  * Redistribution and use in source and binary forms, with or without
20  * modification, are permitted provided that the following conditions are
21  * met:
22  *
23  * Redistributions of source code must retain the above copyright notice,
24  * this list of conditions and the following disclaimer.
25  *
26  * Redistributions in binary form must reproduce the above copyright
27  * notice, this list of conditions and the following disclaimer in the
28  * documentation and/or other materials provided with the distribution.
29  *
30  * Neither the name of the DKRZ GmbH nor the names of its contributors
31  * may be used to endorse or promote products derived from this software
32  * without specific prior written permission.
33  *
34  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
35  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
36  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
37  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
38  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
39  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
40  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
41  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
42  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
43  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
44  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45  */
46 
47 #ifndef XT_CORE_H
48 #define XT_CORE_H
49 
50 #ifdef HAVE_CONFIG_H
51 #include "config.h"
52 #endif
53 
54 #include <inttypes.h>
55 #include <limits.h>
56 
57 #include <mpi.h>
58 
68 typedef XT_INT Xt_int;
69 #define Xt_int_dt (XT_INT_MPIDT)
70 typedef unsigned XT_INT Xt_uint;
71 #define Xt_uint_dt (XT_UINT_MPIDT)
72 typedef uint64_t Xt_uid;
73 #define XT_INT_MAX CONF_XT_INT_MAX
74 #define XT_INT_MIN CONF_XT_INT_MIN
78 #define XT_INT_FMT CONF_XT_INT_FMT
79 
80 typedef struct Xt_idxlist_ *Xt_idxlist;
81 typedef struct Xt_xmap_ *Xt_xmap;
82 typedef struct Xt_redist_ *Xt_redist;
83 
91 struct Xt_pos_ext
92 {
93  int start, size;
94 };
95 
101 {
103 };
104 
116 void
117 xt_initialize(MPI_Comm default_comm);
118 
122 void
123 xt_finalize(void);
124 
128 int
129 xt_initialized(void);
130 
134 int
135 xt_finalized(void);
136 
137 
138 #endif
139 
140 /*
141  * Local Variables:
142  * c-basic-offset: 2
143  * coding: utf-8
144  * indent-tabs-mode: nil
145  * show-trailing-whitespace: t
146  * require-trailing-newline: t
147  * End:
148  */
int MPI_Comm
Definition: core.h:64
int size
Definition: xt_core.h:93
int start
Definition: xt_core.h:93
int xt_finalized(void)
Definition: xt_init.c:113
void xt_initialize(MPI_Comm default_comm)
Definition: xt_init.c:70
int xt_initialized(void)
Definition: xt_init.c:107
uint64_t Xt_uid
Definition: xt_core.h:72
struct Xt_xmap_ * Xt_xmap
Definition: xt_core.h:81
void xt_finalize(void)
Definition: xt_init.c:89
XT_INT Xt_int
Definition: xt_core.h:68
struct Xt_idxlist_ * Xt_idxlist
Definition: xt_core.h:80
struct Xt_redist_ * Xt_redist
Definition: xt_core.h:82
unsigned XT_INT Xt_uint
Definition: xt_core.h:70