foam to Tecplot360 converter
[OpenFOAM-1.6.x.git] / applications / utilities / postProcessing / dataConversion / foamToTecplot360 / tecio / tecsrc / DATASHR.h
blobea8b1d26d20f7f8df627e654f5248d48fac18c5e
1 /*
2 * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
4 * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
6 * Tecplot hereby grants OpenCFD limited authority to distribute without
7 * alteration the source code to the Tecplot Input/Output library, known
8 * as TecIO, as part of its distribution of OpenFOAM and the
9 * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
10 * granted access to the TecIO source code, and may redistribute it for the
11 * purpose of maintaining the converter. However, no authority is granted
12 * to alter the TecIO source code in any form or manner.
14 * This limited grant of distribution does not supersede Tecplot, Inc.'s
15 * copyright in TecIO. Contact Tecplot, Inc. for further information.
17 * Tecplot, Inc.
18 * 3535 Factoria Blvd, Ste. 550
19 * Bellevue, WA 98006, USA
20 * Phone: +1 425 653 1200
21 * http://www.tecplot.com/
24 #if defined EXTERN
25 #undef EXTERN
26 #endif
27 #if defined DATASHRMODULE
28 #define EXTERN
29 #else
30 #define EXTERN extern
31 #endif
34 *****************************************************************
35 *****************************************************************
36 ******* ********
37 ****** Copyright (C) 1988-2008 Tecplot, Inc. *******
38 ******* ********
39 *****************************************************************
40 *****************************************************************
43 #if defined TECPLOTKERNEL
44 /* CORE SOURCE CODE REMOVED */
45 #endif /* TECPLOTKERNEL */
48 * General set of macros for reference count mananagement.
50 #define IncStructureReference(V) ((V)->RefCount++)
51 #define DecStructureReference(V) ((V)->RefCount--)
52 #define IsStructureShared(V) ((V)->RefCount > 1)
53 #define IsStructureReferenced(V) ((V)->RefCount > 0)
56 * Special set of macros for field data that is having variable sharing between
57 * zones tracked. Field data maintains two reference counts: The first,
58 * RefCount, is used to keep track of when the field data needs to be
59 * deallocated; the second, VarShareRefCount, is used to track variable sharing
60 * between zones.
62 #define IncVarStructureReference(V) ((V)->VarShareRefCount++)
63 #define DecVarStructureReference(V) ((V)->VarShareRefCount--)
64 #define IsVarStructureShared(V) ((V)->VarShareRefCount > 1)
65 #define IsVarStructureReferenced(V) ((V)->VarShareRefCount > 0)
68 #if defined TECPLOTKERNEL
69 /* CORE SOURCE CODE REMOVED */
70 #endif /* TECPLOTKERNEL */