Hitmap 1.3
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Friends
Macros
Groups
Pages
include
hit_dump.h
Go to the documentation of this file.
1
11
/*
12
* <license>
13
*
14
* Hitmap v1.2
15
*
16
* This software is provided to enhance knowledge and encourage progress in the scientific
17
* community. It should be used only for research and educational purposes. Any reproduction
18
* or use for commercial purpose, public redistribution, in source or binary forms, with or
19
* without modifications, is NOT ALLOWED without the previous authorization of the copyright
20
* holder. The origin of this software must not be misrepresented; you must not claim that you
21
* wrote the original software. If you use this software for any purpose (e.g. publication),
22
* a reference to the software package and the authors must be included.
23
*
24
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS" AND ANY
25
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
26
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
27
* THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
*
34
* Copyright (c) 2007-2015, Trasgo Group, Universidad de Valladolid.
35
* All rights reserved.
36
*
37
* More information on http://trasgo.infor.uva.es/
38
*
39
* </license>
40
*/
41
42
#ifndef _HitDump_
43
#define _HitDump_
44
45
#include <stdio.h>
46
#include <string.h>
47
#include <stdarg.h>
48
#include <sys/types.h>
49
#include <sys/stat.h>
50
#include <fcntl.h>
51
52
#include "
hit_sshape.h
"
53
#include "
hit_com.h
"
54
55
//#include <hit_tile.h>
56
//#include "hit_error.h"
57
//#include "hit_shape.h"
58
59
/* 1. DEBUG: DUMP VARIABLE STRUCTURE IN stderr */
60
#define hit_dumpTile(var) hit_dumpTileInternal(&(var), #var, stderr)
61
62
/* 2. DEBUG: DUMP VARIABLE STRUCTURE IN A PARTICUALR FILE FOR THIS PROCESS */
63
#define hit_dumpTileFile(var,prefix,comment) { char name[16]; sprintf(name,"%s.%d",prefix,hit_Rank); FILE *fich; fich=fopen(name, "a"); fprintf(fich, comment); hit_dumpTileInternal(&(var), #var, fich); fclose(fich); }
64
65
66
/* 3. PROTOTYPE FOR THE INTERNAL DUMPING FUNCTION */
67
void
hit_dumpTileInternal
(
const
void
*var,
const
char
* name, FILE *file);
68
69
70
/* END OF HEADER FILE _HitDump_ */
71
#endif
hit_com.h
hit_sshape.h
hit_dumpTileInternal
void hit_dumpTileInternal(const void *var, const char *name, FILE *file)
Definition:
hit_dump.c:57
Generated on Thu Oct 11 2018 12:23:26 for Hitmap 1.3 by
1.8.5