AdH Kraken
0.0.0
Next generation Adaptive Hydraulics
Loading...
Searching...
No Matches
header_tl_alloc.h
1
#ifndef H_TL_ALLOC_
2
#define H_TL_ALLOC_
3
4
#include <stdio.h>
5
#include <stdlib.h>
6
#include <stddef.h>
7
#include <string.h>
8
#include <math.h>
9
#include <limits.h>
10
#include <float.h>
11
#include <time.h>
12
13
#ifdef _MESSG
14
#include "mpi.h"
15
MPI_Comm debug_comm;
// cjt :: can't use COMM_WORLD for CSTORM :: only works for 1 grid in CSTORM
16
#endif
17
18
#ifdef _MESSG
19
void
debug_initialize(MPI_Comm);
20
#else
21
void
debug_initialize(
void
);
22
#endif
23
void
debug_finalize(
void
);
24
25
#ifndef _DEBUG
26
void
tag(
void
);
27
void
tl_error(
char
*);
28
void
*tl_alloc(
size_t
,
int
);
29
void
*tl_realloc(
size_t
,
int
,
int
,
void
*);
30
void
*tl_free(
size_t
,
int
,
void
*);
31
void
*tl_free2(
size_t
,
int
,
size_t
,
int
,
void
**);
32
void
*tl_free3(
size_t
,
int
,
size_t
,
int
,
size_t
,
int
,
void
***);
33
34
#else
35
36
#ifdef _MESSG
37
#define tag(A) tag_debug(__LINE__,__FILE__,A)
38
#else
39
#define tag() tag_debug(__LINE__,__FILE__)
40
#endif
41
42
#define tl_error(A) tl_error_debug(A,__LINE__,__FILE__)
43
#define tl_alloc(A,B) tl_alloc_debug(A,B,__LINE__,__FILE__)
44
#define tl_realloc(A,B,C,D) tl_realloc_debug(A,B,C,__LINE__,__FILE__,D)
45
#define tl_free(A,B,C) tl_free_debug(A,B,__LINE__,__FILE__,C)
46
#define tl_free2(A,B,C,D,E) tl_free2_debug(A,B,C,D,__LINE__,__FILE__,E)
47
#define tl_free3(A,B,C,D,E,F,G) tl_free3_debug(A,B,C,D,E,F,__LINE__,__FILE__,G)
48
49
#ifdef _MESSG
50
void
tag_debug(
int
,
char
*,MPI_Comm);
// cjt
51
#else
52
void
tag_debug(
int
,
char
*);
53
#endif
54
void
tl_error_debug(
char
*,
int
,
char
*);
// cjt
55
void
*tl_alloc_debug(
size_t
,
int
,
int
,
char
*);
56
void
*tl_realloc_debug(
size_t
,
int
,
int
,
int
,
char
*,
void
*);
57
void
*tl_free_debug(
size_t
,
int
,
int
,
char
*,
void
*);
58
void
*tl_free2_debug(
size_t
,
int
,
size_t
,
int
,
int
,
char
*,
void
**);
59
void
*tl_free3_debug(
size_t
,
int
,
size_t
,
int
,
size_t
,
int
,
int
,
char
*,
void
***);
60
void
tl_check_all_pickets(
char
*,
int
);
61
#endif
62
63
#endif
// ifndef H_TL_ALLOC
debug
include
header_tl_alloc.h
Generated on Thu Apr 3 2025 22:45:55 for AdH Kraken by
1.9.5