diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/Runmake b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/Runmake
index 94564a255..b21af93a7 100755
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/Runmake
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/Runmake
@@ -1,4 +1,3 @@
-#!/bin/sh
MAKEWHAT=
EXTRAFLAGS=
@@ -8,14 +7,14 @@ skipcompile=n
if test $# -ge 1 ; then
Platname=$1
shift
- while test $# -ge 1
+ while test $# -ge 1
do
if test "$1" = "-release" ; then
isrelease=y
elif test "$1" = "-skipcompile" ; then
skipcompile=y
elif test "$1" = "-tecio" ; then
- MAKEWHAT=tecio.a
+ MAKEWHAT=libtecio.a
else
EXTRAFLAGS="$EXTRAFLAGS $1"
fi
@@ -25,7 +24,7 @@ else
echo "Choose platform:"
echo " "
echo " macux.104"
- echo " macix64.105"
+ echo " macix64.106"
echo " sgix.62"
echo " sgix3.62"
echo " sgix.65"
@@ -45,23 +44,24 @@ else
echo " hp7xx64.11"
echo " hpi64.11"
echo " linux.24"
- echo " linuxi64.24"
+ echo " linux64.26"
echo " linux.22"
echo " linuxa.22"
- echo " linuxg248x64.26"
- echo " linuxg27x64.26"
+ echo " linux32-centos4.8"
+ echo " linux64-sled10.4"
+ echo " linuxg29x64.26"
echo " crayc90"
echo "->\c"
read Platname
echo "Choose:"
- echo " 1. Make tecio.a only"
- echo " 2. Make tecio.a and pltview"
+ echo " 1. Make libtecio.a only"
+ echo " 2. Make libtecio.a and pltview"
read choice
- if test $choice -eq 1 ;then
- MAKEWHAT=tecio.a
+ if test $choice -eq 1 ;then
+ MAKEWHAT=libtecio.a
fi
fi
@@ -72,18 +72,32 @@ AR=ar
ARFLAGS=qv
DISTSUBDIR2=
+#
+# The blah-64 platforms are 64-bit builds of tecio, typically on 32-bit
+# platforms.
+#
case $Platname in
- mac*) CCOMP=g++
- FINALCFLAGS="-arch ppc -arch i386 -arch ppc64 -arch x86_64 -DDARWIN -DLONGIS64 -I/usr/X11R6/include"
+ macix64*) CCOMP=g++
+ FINALCFLAGS="-arch x86_64 -DDARWIN -DMAC64 -I/usr/X11R6/include"
STRIPFLAG=-Wl,-x
- LINKFLAGS="-arch ppc -arch i386 -arch ppc64 -arch x86_64"
+ LINKFLAGS="-arch x86_64"
+ ;;
+ macux*-64) CCOMP=g++
+ FINALCFLAGS="-arch ppc64 -arch x86_64 -DDARWIN -DMAC64 -I/usr/X11R6/include"
+ STRIPFLAG=-Wl,-x
+ LINKFLAGS="-arch ppc64 -arch x86_64"
+ ;;
+ macux*) CCOMP=g++
+ FINALCFLAGS="-arch ppc -arch i386 -DDARWIN -I/usr/X11R6/include"
+ STRIPFLAG=-Wl,-x
+ LINKFLAGS="-arch ppc -arch i386"
;;
sgix.65-64) CCOMP=CC
- FINALCFLAGS="-DIRISX -DLONGIS64 -mips4 -64"
+ FINALCFLAGS="-DIRISX -mips4 -64"
LINKFLAGS="-mips4 -64"
;;
sgix64.65) CCOMP=CC
- FINALCFLAGS="-DIRISX -DLONGIS64 -mips4 -64"
+ FINALCFLAGS="-DIRISX -mips4 -64"
LINKFLAGS="-mips4 -64"
;;
sgix.65) CCOMP=CC
@@ -95,7 +109,7 @@ case $Platname in
LINKFLAGS="-o32"
;;
sgix.62-64) CCOMP=CC
- FINALCFLAGS="-DIRISX -DIRIX62 -DLONGIS64 -mips4 -64"
+ FINALCFLAGS="-DIRISX -DIRIX62 -mips4 -64"
LINKFLAGS="-mips4 -64"
;;
sgix.62) CCOMP=CC
@@ -114,42 +128,45 @@ case $Platname in
FINALCFLAGS=-DIBMRS6000X
;;
ibmx64.*) CCOMP=xlC
- FINALCFLAGS="-DIBMRS6000X -DLONGIS64 -q64"
+ FINALCFLAGS="-DIBMRS6000X -q64"
ARFLAGS="-X64 qv"
;;
compaq.51) CCOMP=cxx
- FINALCFLAGS="-DCOMPAQX -I/usr/include -ieee_with_inexact"
+ FINALCFLAGS="-DCOMPAQX -I/usr/include -ieee_with_inexact"
;;
decalpha.32)CCOMP=cc
- FINALCFLAGS="-DDECALPHAX -I/usr/include -ieee_with_inexact"
+ FINALCFLAGS="-DDECALPHAX -I/usr/include -ieee_with_inexact"
;;
hp7xx.*-64) CCOMP=aCC
- FINALCFLAGS="+DD64 +DS2.0 -AA -DHPX -DLONGIS64 -I/usr/include/X11R6 -I/usr/include/Motif2.1"
+ FINALCFLAGS="+DD64 +DS2.0 -AA -DHPX -I/usr/include/X11R6 -I/usr/include/Motif2.1"
LINKFLAGS="+DA2.0W +DD64 +DS2.0W"
;;
hp7xx64.11) CCOMP=aCC
- FINALCFLAGS="+DA2.0W +DD64 +DS2.0W -AA -DHPX -DLONGIS64 -I/usr/include/X11R6 -I/usr/include/Motif2.1"
+ FINALCFLAGS="+DA2.0W +DD64 +DS2.0W -AA -DHPX -I/usr/include/X11R6 -I/usr/include/Motif2.1"
LINKFLAGS="+DA2.0W +DD64 +DS2.0W"
;;
hpi64.11) CCOMP=aCC
- FINALCFLAGS="+DD64 -AA -DHPX -DLONGIS64 -I/usr/include/X11R6 -I/usr/include/Motif2.1"
+ FINALCFLAGS="+DD64 -AA -DHPX -I/usr/include/X11R6 -I/usr/include/Motif2.1"
LINKFLAGS="+DD64"
;;
hp7xx.11) CCOMP=aCC
- FINALCFLAGS="+DAportable -AA -DHPX -I/usr/include/X11R6 -I/usr/include/Motif2.1"
+ FINALCFLAGS="+DAportable -AA -DHPX -I/usr/include/X11R6 -I/usr/include/Motif2.1"
LINKFLAGS="+DAportable"
;;
crayc90) CCOMP=cc
- FINALCFLAGS="-DCRAY -DUNIXX"
+ FINALCFLAGS="-DCRAY -DUNIXX"
;;
- linux*i64.*)CCOMP=g++
- FINALCFLAGS="-fPIC -DLINUX -DLINUXI64"
- ;;
- linux*64.*) CCOMP=g++
- FINALCFLAGS="-fPIC -DLINUX -DLINUX64"
+linux.64-gcc4.2.4.26) #
+ # Special custom build for synopsys. Run Runmake directly on satsop.
+ #
+ CCOMP=/usr/local/gcc-4.2.2/bin/g++
+ FINALCFLAGS="-fPIC -DLINUX -DLINUX64"
+ ;;
+ linux*64*) CCOMP=g++
+ FINALCFLAGS="-fPIC -DLINUX -DLINUX64"
;;
linux*) CCOMP=g++
- FINALCFLAGS="-fPIC -DLINUX"
+ FINALCFLAGS="-fPIC -DLINUX"
;;
sun4.54) CCOMP=/opt/SUNWspro/bin/CC
FINALCFLAGS="-DSUN -DSUNSOLARISX -I/usr/openwin/include -I/usr/dt/include -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg -xO1"
@@ -173,28 +190,28 @@ case $Platname in
ARFLAGS="-xar -o"
;;
sun4.57-64) CCOMP=/opt/SUNWspro/bin/CC
- FINALCFLAGS="-DSUNSOLARISX -DLONGIS64 -KPIC -xarch=v9 -I/usr/openwin/include -I/usr/dt/include -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg -xO1"
+ FINALCFLAGS="-DSUNSOLARISX -KPIC -xarch=v9 -I/usr/openwin/include -I/usr/dt/include -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg -xO1"
LINKFLAGS="-KPIC -xarch=v9 -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg"
MAKECMD=/usr/ccs/bin/make
AR=/opt/SUNWspro/bin/CC
ARFLAGS="-xar -o"
;;
sun464.57) CCOMP=/opt/SUNWspro/bin/CC
- FINALCFLAGS="-DSUNSOLARISX -DLONGIS64 -KPIC -xarch=v9 -I/usr/openwin/include -I/usr/dt/include -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg -xO1"
+ FINALCFLAGS="-DSUNSOLARISX -KPIC -xarch=v9 -I/usr/openwin/include -I/usr/dt/include -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg -xO1"
LINKFLAGS="-KPIC -xarch=v9 -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg"
MAKECMD=/usr/ccs/bin/make
AR=/opt/SUNWspro/bin/CC
ARFLAGS="-xar -o"
;;
sun464.59) CCOMP=/opt/SUNWspro/bin/CC
- FINALCFLAGS="-DSUNSOLARISX -DLONGIS64 -KPIC -m64 -xarch=generic -I/usr/openwin/include -I/usr/dt/include -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg -xO1"
+ FINALCFLAGS="-DSUNSOLARISX -KPIC -m64 -xarch=generic -I/usr/openwin/include -I/usr/dt/include -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg -xO1"
LINKFLAGS="-KPIC -m64 -xarch=generic -library=libC -library=Cstd -library=no%rwtools7 -library=no%rwtools7_dbg"
MAKECMD=/usr/ccs/bin/make
AR=/opt/SUNWspro/bin/CC
ARFLAGS="-xar -o"
;;
sun86.54) CCOMP=/opt/SUNWspro/bin/CC
- FINALCFLAGS="-DSUN -DSUNSOLARISX -I/usr/openwin/include -I/usr/dt/include"
+ FINALCFLAGS="-DSUN -DSUNSOLARISX -I/usr/openwin/include -I/usr/dt/include"
MAKECMD=/usr/ccs/bin/make
AR=/opt/SUNWspro/bin/CC
ARFLAGS="-xar -o"
@@ -223,7 +240,7 @@ FINALCFLAGS="$FINALCFLAGS $EXTRAFLAGS -DUSEENUM -DTHREED"
# NOTE: Used to use make here but had problems with using remsh to run
# make multiple times to get 64 bit and 32 bit versions of libraries....
#
-# $MAKECMD $MAKEWHAT AR=$AR CC=$CCOMP LINKFLAGS="$LINKFLAGS" STRIPFLAG=$STRIPFLAG CFLAGS="$EXTRAFLAGS -DUSEENUM -DTHREED $FINALCFLAGS"
+# $MAKECMD $MAKEWHAT AR=$AR CC=$CCOMP LINKFLAGS="$LINKFLAGS" STRIPFLAG=$STRIPFLAG CFLAGS="$EXTRAFLAGS -DUSEENUM -DTHREED $FINALCFLAGS"
#
#
#
@@ -260,18 +277,18 @@ cd ..
pwd
-echo "$AR $ARFLAGS tecio.a $OBJLIST"
-$AR $ARFLAGS tecio.a $OBJLIST
-if test -f /bin/ranlib ; then
- /bin/ranlib tecio.a;
-elif test -f /usr/bin/ranlib ; then
- /usr/bin/ranlib tecio.a;
-elif test -f /usr/ucb/ranlib ; then
- /usr/ucb/ranlib tecio.a;
+echo "$AR $ARFLAGS libtecio.a $OBJLIST"
+$AR $ARFLAGS libtecio.a $OBJLIST
+if test -f /bin/ranlib ; then
+ /bin/ranlib libtecio.a;
+elif test -f /usr/bin/ranlib ; then
+ /usr/bin/ranlib libtecio.a;
+elif test -f /usr/ucb/ranlib ; then
+ /usr/ucb/ranlib libtecio.a;
fi
echo "$CCOMP -I./tecsrc -DMAKEARCHIVE $FINALCFLAGS -c pltview.cpp"
$CCOMP -I./tecsrc -DMAKEARCHIVE $FINALCFLAGS -c pltview.cpp
-echo "$CCOMP $FINALCFLAGS pltview.o tecio.a $LINKFLAGS $LINKLIBS $STRIPFLAG -lm -o pltview"
-$CCOMP $FINALCFLAGS pltview.o tecio.a $LINKFLAGS $LINKLIBS $STRIPFLAG -lm -o pltview
+echo "$CCOMP $FINALCFLAGS pltview.o libtecio.a $LINKFLAGS $LINKLIBS $STRIPFLAG -lm -o pltview"
+$CCOMP $FINALCFLAGS pltview.o libtecio.a $LINKFLAGS $LINKLIBS $STRIPFLAG -lm -o pltview
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/arrow/Makefile b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/arrow/Makefile
deleted file mode 100644
index 3fa4b11f3..000000000
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/arrow/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Set to appropriate C++ compiler
-CPP=g++
-CPPFLAGS=-I../../tecsrc ../../tecio.a
-EXECUTABLE=arrow
-FILES=$(EXECUTABLE).cpp
-
-build:
- $(CPP) $(FILES) $(CPPFLAGS) -o $(EXECUTABLE)
-
-clean:
- rm -f $(EXECUTABLE)
\ No newline at end of file
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/arrow/arrow.cpp b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/arrow/arrow.cpp
index 432022be5..0fdc9a22e 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/arrow/arrow.cpp
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/arrow/arrow.cpp
@@ -31,10 +31,8 @@ int main()
&FileType,
&Debug,
&VIsDouble);
-
/* DOCEND */
-
/* After TECINI is called, call TECZNE to create one or more
* zones for your data file. In this example, Zone 1 contains a
* single rectangular solid created as a face-based finite-element
@@ -106,7 +104,6 @@ int main()
ValueLocation,
NULL,
&SharConn);
-
/* DOCEND */
/* DOCSTART:arrow_tecdat_rect.txt*/
@@ -137,7 +134,6 @@ int main()
P_Rect[0] = 10;
-
INTEGER4 IsDouble = 1;
I = TECDAT112(&NumPts_Rect, X_Rect, &IsDouble);
I = TECDAT112(&NumPts_Rect, Y_Rect, &IsDouble);
@@ -146,7 +142,6 @@ int main()
/* DOCEND */
/* DOCSTART:arrow_facenodes_rect.txt*/
-
/* The FaceNodeCounts array is used to describe the number of
* nodes in each face of the zone. The first value in the array
* is the number of nodes in Face 1, the second value is the
@@ -160,21 +155,21 @@ int main()
FaceNodeCounts_Rect[ii] = 4;
/* The FaceNodes array is used to specify the nodes that compose
- * each face. For each face (n of N), the number of nodes used
- * to define the face is specified by the nth value in the
- * FaceNodeCounts array. For example, if the first value in the
- * FaceNodeCounts array is 4 (indicating Face 1 is composed of
- * four nodes), the first four values in the FaceNodes array are
- * the node numbers of the nodes in Face 1.
- *
- * ------------
- * WARNING
- * When providing the node numbers for each face, you must
- * provide the node numbers in a consistent order (either
- * clockwise or counter-clockwise. Providing the node numbers
- * out of order results in contorted faces.
- * ------------
- */
+ * each face. For each face (n of N), the number of nodes used
+ * to define the face is specified by the nth value in the
+ * FaceNodeCounts array. For example, if the first value in the
+ * FaceNodeCounts array is 4 (indicating Face 1 is composed of
+ * four nodes), the first four values in the FaceNodes array are
+ * the node numbers of the nodes in Face 1.
+ *
+ * ------------
+ * WARNING
+ * When providing the node numbers for each face, you must
+ * provide the node numbers in a consistent order (either
+ * clockwise or counter-clockwise. Providing the node numbers
+ * out of order results in contorted faces.
+ * ------------
+ */
INTEGER4 *FaceNodes_Rect = new INTEGER4[TotalNumFaceNodes_Rect];
@@ -202,7 +197,7 @@ int main()
FaceNodes_Rect[14] = 7;
FaceNodes_Rect[15] = 3;
-//Nodes for Face 5
+ //Nodes for Face 5
FaceNodes_Rect[16] = 6;
FaceNodes_Rect[17] = 2;
FaceNodes_Rect[18] = 1;
@@ -247,6 +242,12 @@ int main()
* in Zone 5.
*/
FaceLeftElems_Rect[3] = -1;
+
+ I = TECPOLYFACE112(&NumFaces_Rect,
+ FaceNodeCounts_Rect,
+ FaceNodes_Rect,
+ FaceLeftElems_Rect,
+ FaceRightElems_Rect);
/* DOCEND */
/* DOCSTART:arrow_tecpoly_rect.txt*/
@@ -276,13 +277,10 @@ int main()
FaceBndryConnElems_Rect[0] = 1;
FaceBndryConnZones_Rect[0] = 2;
- I = TECPOLY112(FaceNodeCounts_Rect,
- FaceNodes_Rect,
- FaceLeftElems_Rect,
- FaceRightElems_Rect,
- FaceBndryConnCounts_Rect,
- FaceBndryConnElems_Rect,
- FaceBndryConnZones_Rect);
+ I = TECPOLYBCONN112(&NumConnBndryFaces_Rect,
+ FaceBndryConnCounts_Rect,
+ FaceBndryConnElems_Rect,
+ FaceBndryConnZones_Rect);
/* cleanup */
delete X_Rect;
@@ -359,13 +357,10 @@ int main()
/* DOCEND */
/* DOCSTART:arrow_tecdat_prism.txt*/
-
-
double *X_Prism = new double[NumPts_Prism];
double *Y_Prism = new double[NumPts_Prism];
double *Z_Prism = new double[NumPts_Prism];
-
/* Set the X and Y variable values, one z-plane at a time */
double ZVal = 0;
for (INTEGER4 ii = 0; ii < 2; ii++)
@@ -438,7 +433,7 @@ int main()
FaceNodes_Prism[13] = 4;
FaceNodes_Prism[14] = 6;
-//Nodes for Face 5
+ //Nodes for Face 5
FaceNodes_Prism[15] = 1;
FaceNodes_Prism[16] = 2;
FaceNodes_Prism[17] = 3;
@@ -470,10 +465,15 @@ int main()
* element and zone for a face.
*/
FaceLeftElems_Prism[0] = -1;
+
+ I = TECPOLYFACE112(&NumFaces_Prism,
+ FaceNodeCounts_Prism,
+ FaceNodes_Prism,
+ FaceLeftElems_Prism,
+ FaceRightElems_Prism);
/* DOCEND */
/* DOCSTART:arrow_tecpoly_prism.txt*/
-
INTEGER4 *FaceBndryConnCounts_Prism = new INTEGER4[NumConnBndryFaces_Prism];
FaceBndryConnCounts_Prism[0] = 2;
@@ -500,13 +500,10 @@ int main()
FaceBndryConnElems_Prism[1] = 1;
FaceBndryConnZones_Prism[1] = 1;
- I = TECPOLY112(FaceNodeCounts_Prism,
- FaceNodes_Prism,
- FaceLeftElems_Prism,
- FaceRightElems_Prism,
- FaceBndryConnCounts_Prism,
- FaceBndryConnElems_Prism,
- FaceBndryConnZones_Prism);
+ I = TECPOLYBCONN112(&NumConnBndryFaces_Prism,
+ FaceBndryConnCounts_Prism,
+ FaceBndryConnElems_Prism,
+ FaceBndryConnZones_Prism);
/* cleanup */
delete X_Prism;
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/Makefile b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/Makefile
deleted file mode 100644
index 2c6009b07..000000000
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Set to appropriate C++ compiler
-CPP=g++
-CPPFLAGS=-I../../tecsrc ../../tecio.a
-EXECUTABLE=comtest
-FILES=$(EXECUTABLE).c
-
-build:
- $(CPP) $(FILES) $(CPPFLAGS) -o $(EXECUTABLE)
-
-clean:
- rm -f $(EXECUTABLE)
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtest.f b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtest.f
index 6e6829a6e..21f2b045f 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtest.f
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtest.f
@@ -1,8 +1,8 @@
-C
+C
C Complex example FORTRAN program to write a
C binary data file for Tecplot. This example
C does the following:
-C
+C
C 1. Open a data file called "field.plt."
C 2. Open a data file called "line.plt."
C 3. Assign values for X, Y and P. These will be used
@@ -16,12 +16,17 @@ C 8. Write out a text record to "field.plt."
C 9. Write out a geometry (circle) record to "field.plt."
C 10. Close file 1.
C 11. Close file 2.
-C
+C
Program ComplexTest
+C This code was written for FORTRAN77 compilers. If you are using a
+C FORTRAN90/95 compiler, we recommend using the .f90 source code files.
+C Otherwise, you will need to alter the include statement below to include
+C tecio.for instead of tecio.inc.
+
Include "tecio.inc"
- REAL*4 X(4,5), Y(4,5), P(4,5)
+ REAL*4 X(4,5), Y(4,5), P(4,5)
REAL*8 XL(50), YL(50)
REAL*4 XLDummy(1), YLDummy(1)
EQUIVALENCE (XLDummy(1), XL(1))
@@ -56,7 +61,7 @@ C
NullPtr = 0
C
C Open field.plt and write the header information.
-C
+C
I = TECINI112('DATASET WITH 1 ORDERED ZONE, '//
& '1 QUAD ZONE OVER 2 TIME STEPS'//NULCHAR,
& 'X Y P'//NULCHAR,
@@ -65,9 +70,9 @@ C
& FileType,
& Debug,
& VIsDouble)
-C
+C
C Open line.plt and write the header information.
-C
+C
VIsDouble = 1
I = TECINI112('DATASET WITH ONE I-ORDERED ZONE'//NULCHAR,
& 'X Y'//NULCHAR,
@@ -77,9 +82,9 @@ C
& Debug,
& VIsDouble)
-C
+C
C Calculate values for the field variables.
-C
+C
Do 10 J = 1,5
Do 10 I = 1,4
X(I,J) = I
@@ -87,15 +92,15 @@ C
P(I,J) = I*J
10 Continue
-C
+C
C Make sure writing to file #1.
-C
+C
III = 1
I = TECFIL112(III)
-C
+C
C Write the zone header information for the ordered zone.
-C
+C
IMax = 4
JMax = 5
KMax = 1
@@ -124,31 +129,31 @@ C
& Null, ! ShareVarFromZone
& 0) ! ShareConnectivityFromZone)
-C
+C
C Write out the field data for the ordered zone.
-C
+C
III = IMax*JMax
I = TECDAT112(III,X,DIsDouble)
I = TECDAT112(III,Y,DIsDouble)
I = TECDAT112(III,P,DIsDouble)
-C
+C
C Calculate values for the I-ordered zone.
-C
+C
Do 20 I = 1,50
XL(I) = I
YL(I) = sin(I/20.0)
20 Continue
-C
+C
C Switch to the 'line.plt' file (file number 2)
C and write out the line plot data.
-C
+C
III = 2
I = TECFIL112(III)
-C
+C
C Write the zone header information for the XY-data.
-C
+C
IMax = 50
JMax = 1
KMax = 1
@@ -175,18 +180,18 @@ C
& Null,
& Null,
& 0)
-C
+C
C Write out the line plot.
-C
+C
DIsDouble = 1
III = IMax
I = TECDAT112(III,XLDummy,DIsDouble)
I = TECDAT112(III,YLDummy,DIsDouble)
-C
+C
C Switch back to the field plot file and write out
C the finite-element zone.
-C
+C
III = 1
I = TECFIL112(III)
C
@@ -198,12 +203,12 @@ C
Y(I,J) = J
P(I,J) = I*J
30 Continue
-C
+C
C Write the zone header information for the finite-element zone.
-C
- NPts = 20
- NElm = 12
- KMax = 1
+C
+ NPts = 20
+ NElm = 12
+ KMax = 1
SolTime = 10.0
StrandID = 2
I = TECZNE112('Finite Zone 1'//NULCHAR,
@@ -227,9 +232,9 @@ C
& Null,
& Null,
& 0)
-C
+C
C Write out the field data for the finite-element zone.
-C
+C
IMax = 4
JMax = 5
III = IMax*JMax
@@ -238,11 +243,11 @@ C
I = TECDAT112(III,Y,DIsDouble)
I = TECDAT112(III,P,DIsDouble)
-C
+C
C Calculate and then write out the connectivity list.
C Note: The NM array references cells starting with
C offset of 1.
-C
+C
Do 40 I = 1,IMax-1
Do 40 J = 1,JMax-1
@@ -348,30 +353,30 @@ C
DIsDouble = 0
I = TECDAT112(III,P,DIsDouble)
-C
+C
C Prepare to write out text record. Text is positioned
C at 50, 50 in frame units and has a height 5 frame units.
-C
- XP = 50
- YP = 50
+C
+ XP = 50
+ YP = 50
FH = 5
- Scope = 1
+ Scope = 1
Clipping = 0
- PositionCoordSys = 1
- FontType = 1
- HeightUnits = 1
+ PositionCoordSys = 1
+ FontType = 1
+ HeightUnits = 1
AttachToZone = 0
Zone = 0
- BoxType = 0
+ BoxType = 0
BoxMargin = 5.0
BoxLineThickness = 0.5
BoxColor = 3
BoxFillColor = 7
TextAngle = 0.0
- Anchor = 0
+ Anchor = 0
LineSpacing = 1.5
- TextColor = 0
-
+ TextColor = 0
+
III = TECTXT112(XP,
& YP,
& 0.0d0,
@@ -395,11 +400,11 @@ C
& 'Hi Mom'//NULCHAR,
& NULCHAR)
-C
-C Prepare to write out geometry record (circle). Circle is
+C
+C Prepare to write out geometry record (circle). Circle is
C positioned at 25, 25 in frame units and has a radius of 30.
C Circle is drawn using a dashed line pattern.
-C
+C
XP = 25
@@ -408,8 +413,8 @@ C
IsFilled = 0
Color = 0
FillColor = 7
- GeomType = 2
- LinePattern = 1
+ GeomType = 2
+ LinePattern = 1
LineThickness = 0.3
PatternLength = 1
NumEllipsePts = 72
@@ -419,12 +424,12 @@ C
ArrowheadAngle = 15.0
NumSegments = 1
NumSegPts(1) = 1
-
+
XGeomData(1) = 30
YGeomData(1) = 0.0
ZGeomData(1) = 0.0
-
-
+
+
III = TECGEO112(XP,
& YP,
& ZP,
@@ -451,17 +456,17 @@ C
& YGeomData,
& ZGeomData,
& NULCHAR)
-
-C
+
+C
C Close out file 1.
-C
- I = TECEND112()
+C
+ I = TECEND112()
-C
+C
C Close out file 2.
-C
+C
III = 2
I = TECFIL112(III)
- I = TECEND112()
+ I = TECEND112()
STOP
END
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtest.f90 b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtest.f90
index e4ea70982..56b3d560c 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtest.f90
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtest.f90
@@ -1,8 +1,8 @@
-!
+!
! Complex example FORTRAN program to write a
! binary data file for Tecplot. This example
! does the following:
-!
+!
! 1. Open a data file called "field.plt."
! 2. Open a data file called "line.plt."
! 3. Assign values for X, Y and P. These will be used
@@ -16,19 +16,19 @@
! 9. Write out a geometry (circle) record to "field.plt."
! 10. Close file 1.
! 11. Close file 2.
-!
+!
Program ComplexTest
Include "tecio.f90"
- REAL*4 X(4,5), Y(4,5), P(4,5)
+ REAL*4 X(4,5), Y(4,5), P(4,5)
REAL*8 XL(50), YL(50)
REAL*4 XLDummy(1), YLDummy(1)
EQUIVALENCE (XLDummy(1), XL(1))
EQUIVALENCE (YLDummy(1), YL(1))
REAL*8 SolTime
INTEGER*4 Debug,I,J,K,L,III,NPts,NElm,DIsDouble,VIsDouble,FileType
- INTEGER*4 IMax,JMax,KMax,NM(4,12)
+ INTEGER*4 IMax,JMax,KMax,NM(4,12)
INTEGER*4 StrandID,ParentZn
INTEGER*4 SharingZone(3)
REAL*8 XP, YP, ZP, FH, LineSpacing, PatternLength
@@ -56,7 +56,7 @@
NullPtr = 0
!
! Open field.plt and write the header information.
-!
+!
I = TECINI112('DATASET WITH 1 ORDERED ZONE, '// &
'1 QUAD ZONE OVER 2 TIME STEPS'//NULCHAR, &
'X Y P'//NULCHAR, &
@@ -65,9 +65,9 @@
FileType, &
Debug, &
VIsDouble)
-!
+!
! Open line.plt and write the header information.
-!
+!
VIsDouble = 1
I = TECINI112('DATASET WITH ONE I-ORDERED ZONE'//NULCHAR, &
'X Y'//NULCHAR, &
@@ -77,9 +77,9 @@
Debug, &
VIsDouble)
-!
+!
! Calculate values for the field variables.
-!
+!
Do 10 J = 1,5
Do 10 I = 1,4
X(I,J) = I
@@ -87,22 +87,22 @@
P(I,J) = I*J
10 Continue
-!
+!
! Make sure writing to file #1.
-!
+!
III = 1
I = TECFIL112(III)
-!
+!
! Write the zone header information for the ordered zone.
-!
+!
IMax = 4
JMax = 5
KMax = 1
SolTime = 10.0
StrandID = 1
ParentZn = 0
- I = TECZNE112('Ordered Zone 1'//NULCHAR, &
+ I = TECZNE112('Ordered Zone 1'//NULCHAR, &
0, & ! ZONETYPE
IMax, &
JMax, &
@@ -124,31 +124,31 @@
Null, & ! ShareVarFromZone
0) ! ShareConnectivityFromZone)
-!
+!
! Write out the field data for the ordered zone.
-!
+!
III = IMax*JMax
I = TECDAT112(III,X,DIsDouble)
I = TECDAT112(III,Y,DIsDouble)
I = TECDAT112(III,P,DIsDouble)
-!
+!
! Calculate values for the I-ordered zone.
-!
+!
Do 20 I = 1,50
XL(I) = I
YL(I) = sin(I/20.0)
20 Continue
-!
+!
! Switch to the 'line.plt' file (file number 2)
! and write out the line plot data.
-!
+!
III = 2
I = TECFIL112(III)
-!
+!
! Write the zone header information for the XY-data.
-!
+!
IMax = 50
JMax = 1
KMax = 1
@@ -175,18 +175,18 @@
Null, &
Null, &
0)
-!
+!
! Write out the line plot.
-!
+!
DIsDouble = 1
III = IMax
I = TECDAT112(III,XLDummy,DIsDouble)
I = TECDAT112(III,YLDummy,DIsDouble)
-!
+!
! Switch back to the field plot file and write out
! the finite-element zone.
-!
+!
III = 1
I = TECFIL112(III)
!
@@ -198,12 +198,12 @@
Y(I,J) = J
P(I,J) = I*J
30 Continue
-!
+!
! Write the zone header information for the finite-element zone.
-!
- NPts = 20
- NElm = 12
- KMax = 1
+!
+ NPts = 20
+ NElm = 12
+ KMax = 1
SolTime = 10.0
StrandID = 2
I = TECZNE112('Finite Zone 1'//NULCHAR, &
@@ -227,9 +227,9 @@
Null, &
Null, &
0)
-!
+!
! Write out the field data for the finite-element zone.
-!
+!
IMax = 4
JMax = 5
III = IMax*JMax
@@ -238,11 +238,11 @@
I = TECDAT112(III,Y,DIsDouble)
I = TECDAT112(III,P,DIsDouble)
-!
+!
! Calculate and then write out the connectivity list.
! Note: The NM array references cells starting with
! offset of 1.
-!
+!
Do 40 I = 1,IMax-1
Do 40 J = 1,JMax-1
@@ -348,30 +348,30 @@
DIsDouble = 0
I = TECDAT112(III,P,DIsDouble)
-!
+!
! Prepare to write out text record. Text is positioned
! at 50, 50 in frame units and has a height 5 frame units.
-!
- XP = 50
- YP = 50
+!
+ XP = 50
+ YP = 50
FH = 5
- Scope = 1
+ Scope = 1
Clipping = 0
- PositionCoordSys = 1
- FontType = 1
- HeightUnits = 1
+ PositionCoordSys = 1
+ FontType = 1
+ HeightUnits = 1
AttachToZone = 0
Zone = 0
- BoxType = 0
+ BoxType = 0
BoxMargin = 5.0
BoxLineThickness = 0.5
BoxColor = 3
BoxFillColor = 7
TextAngle = 0.0
- Anchor = 0
+ Anchor = 0
LineSpacing = 1.5
- TextColor = 0
-
+ TextColor = 0
+
III = TECTXT112(XP, &
YP, &
0.0d0, &
@@ -395,11 +395,11 @@
'Hi Mom'//NULCHAR, &
NULCHAR)
-!
-! Prepare to write out geometry record (circle). Circle is
+!
+! Prepare to write out geometry record (circle). Circle is
! positioned at 25, 25 in frame units and has a radius of 30.
! Circle is drawn using a dashed line pattern.
-!
+!
XP = 25
@@ -408,8 +408,8 @@
IsFilled = 0
Color = 0
FillColor = 7
- GeomType = 2
- LinePattern = 1
+ GeomType = 2
+ LinePattern = 1
LineThickness = 0.3
PatternLength = 1
NumEllipsePts = 72
@@ -419,12 +419,12 @@
ArrowheadAngle = 15.0
NumSegments = 1
NumSegPts(1) = 1
-
+
XGeomData(1) = 30
YGeomData(1) = 0.0
ZGeomData(1) = 0.0
-
-
+
+
III = TECGEO112(XP, &
YP, &
ZP, &
@@ -451,17 +451,17 @@
YGeomData, &
ZGeomData, &
NULCHAR)
-
-!
+
+!
! Close out file 1.
-!
- I = TECEND112()
+!
+ I = TECEND112()
-!
+!
! Close out file 2.
-!
+!
III = 2
I = TECFIL112(III)
- I = TECEND112()
+ I = TECEND112()
STOP
END
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtestc.vcproj b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtestc.vcproj
index 502224310..23da375e8 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtestc.vcproj
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtestc.vcproj
@@ -1,346 +1,346 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtestf.vfproj b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtestf.vfproj
index dc894475f..14510fbcf 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtestf.vfproj
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/comtest/comtestf.vfproj
@@ -6,19 +6,19 @@
-
+
-
+
-
+
-
+
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/faceneighbors/Makefile b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/faceneighbors/Makefile
deleted file mode 100644
index cc8b9bf18..000000000
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/faceneighbors/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Set to appropriate C++ compiler
-CPP=g++
-CPPFLAGS=-I../../tecsrc ../../tecio.a
-EXECUTABLE=faceneighbors
-FILES=$(EXECUTABLE).cpp
-
-build:
- $(CPP) $(FILES) $(CPPFLAGS) -o $(EXECUTABLE)
-
-clean:
- rm -f $(EXECUTABLE)
\ No newline at end of file
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/Makefile b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/Makefile
deleted file mode 100644
index d901ed95c..000000000
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Set to appropriate C++ compiler
-CPP=g++
-CPPFLAGS=-I../../tecsrc ../../tecio.a
-EXECUTABLE=gridsolution
-FILES=$(EXECUTABLE).cpp
-
-build:
- $(CPP) $(FILES) $(CPPFLAGS) -o $(EXECUTABLE)
-
-clean:
- rm -f $(EXECUTABLE)
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/gridsolution.cpp b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/gridsolution.cpp
index f96035715..03b32e9c3 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/gridsolution.cpp
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/gridsolution.cpp
@@ -89,7 +89,6 @@ int main()
/* DOCEND */
/* DOCSTART:gridsolution_grid_tecdat.txt*/
-
/* TECDAT Parameters */
double Phi = 0.5 * (1.0 + sqrt(5.0));
double Pi = 3.141592653578;
@@ -105,8 +104,8 @@ int main()
Z[Count] = Phi + 1.0;
Count++;
- X[Count] = -X[Count - 1];
- Y[Count] = -Y[Count - 1];
+ X[Count] = -X[Count - 1];
+ Y[Count] = -Y[Count - 1];
Z[Count] = -Z[Count - 1];
Count++;
@@ -115,26 +114,25 @@ int main()
Z[Count] = Phi - 1.0;
Count++;
- X[Count] = -X[Count - 1];
- Y[Count] = -Y[Count - 1];
+ X[Count] = -X[Count - 1];
+ Y[Count] = -Y[Count - 1];
Z[Count] = -Z[Count - 1];
Count++;
}
INTEGER4 IsDouble = 1;
-
+
I = TECDAT112(&NumPts, X, &IsDouble);
I = TECDAT112(&NumPts, Y, &IsDouble);
I = TECDAT112(&NumPts, Z, &IsDouble);
-
+
delete X;
delete Y;
delete Z;
-
/* DOCEND */
/* DOCSTART:gridsolution_grid_facenodes.txt*/
- /* TecPoly Parameters */
+ /* TecPolyFace Parameters */
/* Create a FaceNodes array, dimensioned by the total number
* of face nodes in the zone.
@@ -225,7 +223,6 @@ int main()
FaceNodes[n++] = 9;
FaceNodes[n++] = 13;
FaceNodes[n++] = 17;
-
/* DOCEND */
/* Specify the number of nodes for each face, and the right and
@@ -277,21 +274,17 @@ int main()
FaceLeftElems[10] = 0;
FaceLeftElems[11] = 1;
- I = TECPOLY112(FaceNodeCounts,
- FaceNodes,
- FaceLeftElems,
- FaceRightElems,
- NULL, /* No boundary connections. */
- NULL,
- NULL);
+ I = TECPOLYFACE112(&NumFaces,
+ FaceNodeCounts,
+ FaceNodes,
+ FaceLeftElems,
+ FaceRightElems);
delete FaceNodes;
delete FaceLeftElems;
delete FaceRightElems;
-
/* DOCEND */
-
/* DOCSTART:gridsolution_grid_tecend.txt*/
I = TECEND112();
/* DOCEND */
@@ -348,7 +341,6 @@ int main()
/* DOCEND */
/* DOCSTART:gridsolution_solution_tecdat.txt*/
-
/* TECDAT Parameters */
double *P = new double[NumPts];
double *T = new double[NumPts];
@@ -364,13 +356,12 @@ int main()
delete P;
delete T;
-
/* DOCEND */
/* DOCSTART:gridsolution_solution_tecend.txt*/
I = TECEND112();
/* DOCEND */
}
-
+
return 0;
}
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/gridsolution.vcproj b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/gridsolution.vcproj
index f18aecfae..7e333fd22 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/gridsolution.vcproj
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/gridsolution/gridsolution.vcproj
@@ -1,321 +1,321 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/ij_ordered/Makefile b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/ij_ordered/Makefile
deleted file mode 100644
index 90411d11e..000000000
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/ij_ordered/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Set to appropriate C++ compiler
-CPP=g++
-CPPFLAGS=-I../../tecsrc ../../tecio.a
-EXECUTABLE=ij_ordered
-FILES=$(EXECUTABLE).cpp
-
-build:
- $(CPP) $(FILES) $(CPPFLAGS) -o $(EXECUTABLE)
-
-clean:
- rm -f $(EXECUTABLE)
\ No newline at end of file
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplefiles/Makefile b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplefiles/Makefile
deleted file mode 100644
index d55d2ee04..000000000
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplefiles/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Set to appropriate C++ compiler
-CPP=g++
-CPPFLAGS=-I../../tecsrc ../../tecio.a
-EXECUTABLE=multiplefiles
-FILES=$(EXECUTABLE).cpp
-
-build:
- $(CPP) $(FILES) $(CPPFLAGS) -o $(EXECUTABLE)
-
-clean:
- rm -f $(EXECUTABLE)
\ No newline at end of file
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/HexagonsAndOctagon.plt b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/HexagonsAndOctagon.plt
index 3b4f3042c..90bf00c6d 100644
Binary files a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/HexagonsAndOctagon.plt and b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/HexagonsAndOctagon.plt differ
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/Makefile b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/Makefile
deleted file mode 100644
index d11ec5afd..000000000
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Set to appropriate C++ compiler
-CPP=g++
-CPPFLAGS=-I../../tecsrc ../../tecio.a
-EXECUTABLE=multiplepolygons
-FILES=$(EXECUTABLE).cpp
-
-build:
- $(CPP) $(FILES) $(CPPFLAGS) -o $(EXECUTABLE)
-
-clean:
- rm -f $(EXECUTABLE)
\ No newline at end of file
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/multiplepolygons.cpp b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/multiplepolygons.cpp
index 25632634f..5b2bc6ffd 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/multiplepolygons.cpp
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/multiplepolygons/multiplepolygons.cpp
@@ -1,6 +1,6 @@
-/* This example illustrates using TecPoly to create two polygonal
- * zones. The first zone contains six hexagons, and the second
- * zone contains a hexagon and an octagon. Refer to the Data
+/* This example illustrates using TecPolyFace and TecPolyBConn to create
+ * two polygonal zones. The first zone contains six hexagons, and the
+ * second zone contains a hexagon and an octagon. Refer to the Data
* Format Guide for a picture of the configuration, including node
* and face numbers.
*/
@@ -38,12 +38,12 @@ int main()
/* TECZNE Parameters */
INTEGER4 ZoneType = 6; /* FE Polygon */
INTEGER4 NumPts_Z1 = 13; /* the number of unique
- * nodes in the zone.
- */
+ * nodes in the zone.
+ */
INTEGER4 NumElems_Z1 = 3;
INTEGER4 NumFaces_Z1 = 15; /* the number of unique
- * faces in the zone.
- */
+ * faces in the zone.
+ */
INTEGER4 ICellMax = 0; /* not used */
INTEGER4 JCellMax = 0; /* not used */
INTEGER4 KCellMax = 0; /* not used */
@@ -71,13 +71,13 @@ int main()
INTEGER4 TotalNumBndryFaces_Z1 = 3;
/* Each boundary face has one or more boundary connections. A
- * boundary connection is defined as another element in another
- * zone. Face 9 has a boundary connection with Element 1 in
- * Zone 2. In this example, each boundary face is connected to
- * one other element, so the total number of boundary
- * connections is equivalent to the total number of boundary
- * faces (3).
- */
+ * boundary connection is defined as another element in another
+ * zone. Face 9 has a boundary connection with Element 1 in
+ * Zone 2. In this example, each boundary face is connected to
+ * one other element, so the total number of boundary
+ * connections is equivalent to the total number of boundary
+ * faces (3).
+ */
INTEGER4 TotalNumBndryConns_Z1 = 3;
I = TECZNE112((char*)"Zone 1: 3 Hexagons", /* Specifies the name of
@@ -110,7 +110,6 @@ int main()
/* DOCEND */
/* DOCSTART:hexagons_zone1_tecdat.txt*/
-
/* TECDAT Parameters */
double *X_Z1 = new double[NumPts_Z1];
double *Y_Z1 = new double[NumPts_Z1];
@@ -154,13 +153,11 @@ int main()
X_Z1[12] = 0;
Y_Z1[12] = 3;
-
double *P_Z1 = new double[NumElems_Z1];
P_Z1[0] = 2;
P_Z1[1] = 4;
P_Z1[2] = 5;
-
INTEGER4 IsDouble = 1;
I = TECDAT112(&NumPts_Z1, X_Z1, &IsDouble);
I = TECDAT112(&NumPts_Z1, Y_Z1, &IsDouble);
@@ -171,7 +168,7 @@ int main()
/* DOCEND */
/* DOCSTART:hexagons_zone1_facenodes.txt*/
- /* TecPoly Parameters */
+ /* TecPolyFace Parameters */
/* Create a FaceNodes array, dimensioned by the total number
* of face nodes in the zone.
@@ -225,7 +222,6 @@ int main()
FaceNodes_Z1[28] = 13;
FaceNodes_Z1[29] = 5;
-
/* DOCEND */
/* Specify the right and left neighboring elements.
@@ -259,7 +255,7 @@ int main()
FaceLeftElems_Z1[7] = 0;
FaceLeftElems_Z1[8] = -1;
FaceLeftElems_Z1[9] = -2;
- FaceLeftElems_Z1[10] = 2;
+ FaceLeftElems_Z1[10] = 3;
/* Left Face Elems for Element 3 */
FaceLeftElems_Z1[11] = -3;
@@ -274,14 +270,25 @@ int main()
for (INTEGER4 ii = 0; ii < 6; ii++)
FaceRightElems_Z1[ii] = 1;
- for (INTEGER4 ii = 6; ii < 10; ii++)
+ for (INTEGER4 ii = 6; ii < 11; ii++)
FaceRightElems_Z1[ii] = 2;
- for (INTEGER4 ii = 10; ii <= 14; ii++)
+ for (INTEGER4 ii = 11; ii <= 14; ii++)
FaceRightElems_Z1[ii] = 3;
+
+ I = TECPOLYFACE112(&NumFaces_Z1,
+ NULL, /* Not used for polygon zones */
+ FaceNodes_Z1,
+ FaceLeftElems_Z1,
+ FaceRightElems_Z1);
+
+ delete FaceNodes_Z1;
+ delete FaceLeftElems_Z1;
+ delete FaceRightElems_Z1;
/* DOCEND */
/* DOCSTART:hexagons_zone1_tecpoly.txt */
+ /* TecPolyBConn Parameters */
/* The FaceBndryConnectionCounts array is used to define the
* number of boundary connections for each face that has a
@@ -308,31 +315,22 @@ int main()
INTEGER4 FaceBndryConnectionElems_Z1[3] = {1, 2, 2};
INTEGER4 FaceBndryConnectionZones_Z1[3] = {2, 2, 2};
-
- I = TECPOLY112(NULL, /* Not used for polygon zones */
- FaceNodes_Z1,
- FaceLeftElems_Z1,
- FaceRightElems_Z1,
- FaceBndryConnectionCounts_Z1,
- FaceBndryConnectionElems_Z1,
- FaceBndryConnectionZones_Z1);
-
- delete FaceNodes_Z1;
- delete FaceLeftElems_Z1;
- delete FaceRightElems_Z1;
-
+ I = TECPOLYBCONN112(&TotalNumBndryFaces_Z1,
+ FaceBndryConnectionCounts_Z1,
+ FaceBndryConnectionElems_Z1,
+ FaceBndryConnectionZones_Z1);
/* DOCEND */
/* Define Zone 2. Zone 2 contains an octagon and a hexagon. */
/* TECZNE Parameters */
/* DOCSTART:hexagons_zone2_teczne.txt*/
INTEGER4 NumPts_Z2 = 12; /* number of unique
- * nodes in the zone
- */
+ * nodes in the zone
+ */
INTEGER4 NumElems_Z2 = 2;
INTEGER4 NumFaces_Z2 = 13; /* number of unique
- * faces in the zone
- */
+ * faces in the zone
+ */
INTEGER4 NumFaceConnections_Z2 = 0;
/* In polygonal zones, each face has exactly two nodes */
INTEGER4 TotalNumFaceNodes_Z2 = NumFaces_Z2 * 2;
@@ -397,7 +395,6 @@ int main()
X_Z2[5] = 4;
Y_Z2[5] = 3;
-
X_Z2[6] = 3;
Y_Z2[6] = 3;
@@ -433,7 +430,7 @@ int main()
delete P_Z2;
/* DOCEND */
- /* TecPoly Parameters */
+ /* TecPolyFace Parameters */
/* DOCSTART:hexagons_zone2_facemap.txt*/
INTEGER4 *FaceNodes_Z2;
FaceNodes_Z2 = new INTEGER4[TotalNumFaceNodes_Z2];
@@ -457,7 +454,6 @@ int main()
FaceNodes_Z2[10] = 6;
FaceNodes_Z2[11] = 1;
-
/* Face Nodes for Element 2 */
FaceNodes_Z2[12] = 7;
FaceNodes_Z2[13] = 6;
@@ -481,8 +477,7 @@ int main()
FaceNodes_Z2[25] = 7;
/* DOCEND */
-
- /* DOCSTART:hexagons_zone2_tecpoly.txt*/
+ /* DOCSTART:hexagons_zone2_tecpolyface.txt*/
/* Specify the right and left neighboring elements.
* The neighboring elements can be determined using the
* right-hand rule. For each face, place your right-hand along
@@ -525,6 +520,16 @@ int main()
for (INTEGER4 ii = 6; ii < 13; ii++)
FaceRightElems_Z2[ii] = 2;
+
+ I = TECPOLYFACE112(&NumFaces_Z2,
+ NULL,
+ FaceNodes_Z2,
+ FaceLeftElems_Z2,
+ FaceRightElems_Z2);
+
+ delete FaceNodes_Z2;
+ delete FaceLeftElems_Z2;
+ delete FaceRightElems_Z2;
/* DOCEND */
/* DOCSTART:hexagons_zone2_tecpoly.txt*/
@@ -548,17 +553,10 @@ int main()
INTEGER4 FaceBndryConnectionElems_Z2[3] = {2, 3, 3};
INTEGER4 FaceBndryConnectionZones_Z2[3] = {1, 1, 1};
- I = TECPOLY112(NULL,
- FaceNodes_Z2,
- FaceLeftElems_Z2,
- FaceRightElems_Z2,
- FaceBndryConnectionCounts_Z2,
- FaceBndryConnectionElems_Z2,
- FaceBndryConnectionZones_Z2);
-
- delete FaceNodes_Z2;
- delete FaceLeftElems_Z2;
- delete FaceRightElems_Z2;
+ I = TECPOLYBCONN112(&TotalNumBndryFaces_Z2,
+ FaceBndryConnectionCounts_Z2,
+ FaceBndryConnectionElems_Z2,
+ FaceBndryConnectionZones_Z2);
/* DOCEND */
/* DOCSTART:hexagons_tecend.txt*/
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/octagon/Makefile b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/octagon/Makefile
deleted file mode 100644
index b1a061516..000000000
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/octagon/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Set to appropriate C++ compiler
-CPP=g++
-CPPFLAGS=-I../../tecsrc ../../tecio.a
-EXECUTABLE=octagon
-FILES=$(EXECUTABLE).cpp
-
-build:
- $(CPP) $(FILES) $(CPPFLAGS) -o $(EXECUTABLE)
-
-clean:
- rm -f $(EXECUTABLE)
\ No newline at end of file
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/octagon/octagon.cpp b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/octagon/octagon.cpp
index c9d64aece..def486c8d 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/octagon/octagon.cpp
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/octagon/octagon.cpp
@@ -90,9 +90,9 @@ int main()
&NumBConnections,
NULL,
NULL, /* When Value Location is not specified,
- * Tecplot will treat all variables as
- * nodal variables.
- */
+ * Tecplot will treat all variables as
+ * nodal variables.
+ */
NULL,
&ShrConn);
/* DOCEND */
@@ -110,7 +110,7 @@ int main()
* It is important that you refer to node numbers consistently.
* The node numbers will be used later to define the
* connectivity for each element.
- */
+ */
/* TECDAT Variables */
/* Set up the variable values. The variable values will be
@@ -195,7 +195,6 @@ int main()
FaceNodes[2*ii+1] = ii + 2;
}
FaceNodes[15] = 1;
-
/* DOCEND */
/* Define the right and left elements of each face.
@@ -228,13 +227,11 @@ int main()
/* DOCEND */
/* Write the polyhedral data to the file. */
/* DOCSTART:octagon_tecpoly.txt*/
- I = TECPOLY112(NULL,
- FaceNodes,
- FaceLeftElems,
- FaceRightElems,
- NULL,
- NULL,
- NULL);
+ I = TECPOLYFACE112(&NumFaces,
+ NULL,
+ FaceNodes,
+ FaceLeftElems,
+ FaceRightElems);
delete FaceNodes;
delete FaceLeftElems;
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/pyramid/Makefile b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/pyramid/Makefile
deleted file mode 100644
index 38cb009fc..000000000
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/pyramid/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Set to appropriate C++ compiler
-CPP=g++
-CPPFLAGS=-I../../tecsrc ../../tecio.a
-EXECUTABLE=pyramid
-FILES=$(EXECUTABLE).cpp
-
-build:
- $(CPP) $(FILES) $(CPPFLAGS) -o $(EXECUTABLE)
-
-clean:
- rm -f $(EXECUTABLE)
\ No newline at end of file
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/pyramid/pyramid.cpp b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/pyramid/pyramid.cpp
index 864bb754b..45186a9be 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/pyramid/pyramid.cpp
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/pyramid/pyramid.cpp
@@ -20,7 +20,6 @@ int main()
&(Debug),
&(VIsDouble));
-
/* Call TECZNE112 */
INTEGER4 ZoneType = 7; /* 7 for FEPolyhedron */
INTEGER4 NumNodes = 5; /* number of unique nodes */
@@ -117,7 +116,7 @@ int main()
delete Z;
/* Define the Face Nodes.
-
+ *
* The FaceNodes array is used to indicate which nodes define
* which face. As mentioned earlier, the number of the nodes is
* implicitly defined by the order in which the nodal data is
@@ -201,14 +200,12 @@ int main()
FaceRightElems[3] = 1;
FaceRightElems[4] = 1;
- /* Write the face map (created above) using TECPOLY112. */
- I = TECPOLY112(FaceNodeCounts, /* The face node counts array */
- FaceNodes, /* The face nodes array */
- FaceLeftElems, /* The left elements array */
- FaceRightElems, /* The right elements array */
- NULL, /* No boundary connection counts */
- NULL, /* No boundary connection elements */
- NULL); /* No boundary connection zones */
+ /* Write the face map (created above) using TECPOLYFACE112. */
+ I = TECPOLYFACE112(&NumFaces,
+ FaceNodeCounts, /* The face node counts array */
+ FaceNodes, /* The face nodes array */
+ FaceLeftElems, /* The left elements array */
+ FaceRightElems); /* The right elements array */
delete FaceNodeCounts;
delete FaceNodes;
@@ -218,5 +215,4 @@ int main()
I = TECEND112();
return 0;
}
-
/* DOCEND */
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/Makefile b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/Makefile
deleted file mode 100644
index 9e40ebe34..000000000
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Set to appropriate C++ compiler
-CPP=g++
-CPPFLAGS=-I../../tecsrc ../../tecio.a
-EXECUTABLE=simtest
-FILES=$(EXECUTABLE).c
-
-build:
- $(CPP) $(FILES) $(CPPFLAGS) -o $(EXECUTABLE)
-
-clean:
- rm -f $(EXECUTABLE)
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtest.f b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtest.f
index ce7cbf730..86068c893 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtest.f
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtest.f
@@ -11,6 +11,11 @@ C
C
program test
+C This code was written for FORTRAN77 compilers. If you are using a
+C FORTRAN90/95 compiler, we recommend using the .f90 source code files.
+C Otherwise, you will need to alter the include statement below to include
+C tecio.for instead of tecio.inc.
+
INCLUDE 'tecio.inc'
character*1 NULLCHR
@@ -44,7 +49,7 @@ C
FNMode = 0
ShrConn = 0
C
-C... Open the file and write the tecplot datafile
+C... Open the file and write the tecplot datafile
C... header information.
C
I = TecIni112('SIMPLE DATASET'//NULLCHR,
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtest.f90 b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtest.f90
index d6c6e62f0..1706de598 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtest.f90
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtest.f90
@@ -44,7 +44,7 @@
FNMode = 0
ShrConn = 0
!
-!... Open the file and write the tecplot datafile
+!... Open the file and write the tecplot datafile
!... header information.
!
I = TecIni112('SIMPLE DATASET'//NULLCHR, &
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtestc.vcproj b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtestc.vcproj
index 22a848011..814cc761f 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtestc.vcproj
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtestc.vcproj
@@ -1,346 +1,346 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtestf.vfproj b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtestf.vfproj
index 2b20da05b..b22235e5a 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtestf.vfproj
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/simtest/simtestf.vfproj
@@ -7,18 +7,18 @@
-
+
-
+
-
+
-
+
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/squares/Makefile b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/squares/Makefile
deleted file mode 100644
index 120b910d6..000000000
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/squares/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Set to appropriate C++ compiler
-CPP=g++
-CPPFLAGS=-I../../tecsrc ../../tecio.a
-EXECUTABLE=squares
-FILES=$(EXECUTABLE).cpp
-
-build:
- $(CPP) $(FILES) $(CPPFLAGS) -o $(EXECUTABLE)
-
-clean:
- rm -f $(EXECUTABLE)
\ No newline at end of file
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/text/Makefile b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/text/Makefile
deleted file mode 100644
index 415b65fd1..000000000
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/examples/text/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# Set to appropriate C++ compiler
-CPP=g++
-CPPFLAGS=-I../../tecsrc ../../tecio.a
-EXECUTABLE=text
-FILES=$(EXECUTABLE).cpp
-
-build:
- $(CPP) $(FILES) $(CPPFLAGS) -o $(EXECUTABLE)
-
-clean:
- rm -f $(EXECUTABLE)
\ No newline at end of file
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/pltview.cpp b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/pltview.cpp
index a2c60aa9a..2ab9ce959 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/pltview.cpp
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/pltview.cpp
@@ -1,26 +1,3 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
/*
*****************************************************************
*****************************************************************
@@ -66,7 +43,7 @@ END CODELOG
#if defined ADDON
#include "TECADDON.h"
#include "GUIDEFS.h"
-#include "GUI.h"
+#include "TECGUI.h"
#define READTEC TecUtilReadBinaryData
#define SHOWINFO(S) TecGUITextAppendString(Output_T_D1,S);
#define ERRMSG(S) TecUtilDialogErrMsg(S)
@@ -75,6 +52,12 @@ END CODELOG
#define STRINGLISTGETSTRING(S,N) TecUtilStringListGetString(S,N)
#define STRINGLISTGETCOUNT(S) TecUtilStringListGetCount(S)
#define STRINGLISTDEALLOC(S) TecUtilStringListDealloc(S)
+
+#define AUXDATADEALLOC(S) TecUtilAuxDataDealloc(S)
+#define AUXDATAGETNUMITEMS(S) TecUtilAuxDataGetNumItems(S)
+#define AUXDATAGETITEMBYINDEX(S,Index,Name,Value,Type,Retain) \
+ TecUtilAuxDataGetItemByIndex(S,(Index),Name,Value,Type,Retain)
+
#else
#include "MASTER.h"
#include "GLOBAL.h"
@@ -83,22 +66,21 @@ END CODELOG
#define FREE_ARRAY(N,S) TecFree((void *)N)
#include "ARRLIST.h"
#include "STRLIST.h"
+#include "AUXDATA.h"
#include "DATAUTIL.h"
-/*
-#include "TECADDON.h"
-#include "TECXXX.h"
-#include "DATAUTIL.h"
-#include "STRLIST.h"
-*/
-
#define READTEC ReadTec
#define SHOWINFO(S) printf("%s",S);
#define ERRMSG(S) printf("Err: %s\n",S);
#define STRINGLISTGETSTRING(S,N) StringListGetString(S,(N)-1)
#define STRINGLISTGETCOUNT(S) StringListCount(S)
#define STRINGLISTDEALLOC(S) StringListDealloc(S)
-#define MaxCharsUserRec 500
+
+#define AUXDATADEALLOC(S) AuxDataDealloc(S)
+#define AUXDATAGETNUMITEMS(S) AuxDataGetNumItems(S)
+#define AUXDATAGETITEMBYINDEX(S,Index,Name,Value,Type,Retain) \
+ AuxDataGetItemByIndex(S,(Index)-1,Name,Value,Type,Retain)
+
#endif
@@ -144,7 +126,8 @@ static void DeallocHeaderInfo(char **DataSetTitle,
LgIndex_t **NumPtsJ,
LgIndex_t **NumPtsK,
ZoneType_e **ZoneType,
- StringList_pa *UserRec)
+ StringList_pa *UserRec,
+ AuxData_pa *DatasetAuxData)
{
if (*DataSetTitle)
FREE_ARRAY(*DataSetTitle, "data set title");
@@ -162,6 +145,8 @@ static void DeallocHeaderInfo(char **DataSetTitle,
FREE_ARRAY(*ZoneType, "ZoneType Array");
if (*UserRec)
STRINGLISTDEALLOC(UserRec);
+ if (*DatasetAuxData)
+ AUXDATADEALLOC(DatasetAuxData);
*DataSetTitle = NULL;
*VarNames = NULL;
@@ -173,10 +158,56 @@ static void DeallocHeaderInfo(char **DataSetTitle,
*UserRec = NULL;
}
-
-
#define MAXCHARSINFOLINE 5000
+void ShowDatasetAuxData(AuxData_pa DatasetAuxData, char* InfoLine)
+{
+ REQUIRE(VALID_REF(InfoLine));
+ if (DatasetAuxData != NULL)
+ {
+ SHOWINFO("Dataset Auxiliary Data:\n");
+ SHOWINFO("-----------------------\n");
+ LgIndex_t NumItems = AUXDATAGETNUMITEMS(DatasetAuxData);
+ for (LgIndex_t ii = 0; ii < NumItems; ++ii)
+ {
+#if defined ADDON
+ char* Name;
+#else
+ const char* Name;
+#endif
+ ArbParam_t Value;
+ AuxDataType_e Type;
+ Boolean_t Retain;
+ AUXDATAGETITEMBYINDEX(DatasetAuxData,
+ ii+1,
+ &Name,
+ &Value,
+ &Type,
+ &Retain);
+ sprintf(InfoLine, " Name: %s\n", Name);
+ SHOWINFO(InfoLine);
+#if defined ADDON
+ // The TecUtil layer returns copies which must be deallocated
+ TecUtilStringDealloc(&Name);
+#endif
+ if (Type == AuxDataType_String)
+ {
+ char* ValueString = reinterpret_cast(Value);
+ sprintf(InfoLine, " Value : %s\n", ValueString);
+ SHOWINFO(InfoLine);
+ SHOWINFO(" Type : String\n");
+#if defined ADDON
+ // The TecUtil layer returns copies which must be deallocated
+ TecUtilStringDealloc(&ValueString);
+#endif
+ }
+ sprintf(InfoLine, " Retain: %s\n", Retain ? "True" : "False");
+ SHOWINFO(InfoLine);
+ }
+ SHOWINFO("\n");
+ }
+}
+
void ReportFileInfo(char *FName,
Boolean_t LoadRawData,
@@ -185,14 +216,15 @@ void ReportFileInfo(char *FName,
short IVersion;
EntIndex_t NumZones;
EntIndex_t NumVars;
- char *DataSetTitle = NULL;
- StringList_pa VarNames = NULL;
- StringList_pa ZoneNames = NULL;
- LgIndex_t *NumPtsI = NULL;
- LgIndex_t *NumPtsJ = NULL;
- LgIndex_t *NumPtsK = NULL;
- ZoneType_e *ZoneType = NULL;
- StringList_pa UserRec = NULL;
+ char *DataSetTitle = NULL;
+ StringList_pa VarNames = NULL;
+ StringList_pa ZoneNames = NULL;
+ LgIndex_t *NumPtsI = NULL;
+ LgIndex_t *NumPtsJ = NULL;
+ LgIndex_t *NumPtsK = NULL;
+ ZoneType_e *ZoneType = NULL;
+ StringList_pa UserRec = NULL;
+ AuxData_pa DatasetAuxData = NULL;
int CZ, CV;
char InfoLine[MAXCHARSINFOLINE+1];
double **VDataBase = NULL;
@@ -215,6 +247,7 @@ void ReportFileInfo(char *FName,
&NumPtsK,
&ZoneType,
&UserRec,
+ &DatasetAuxData,
FALSE,
(NodeMap_t ***)NULL,
(double ***)NULL))
@@ -272,7 +305,8 @@ void ReportFileInfo(char *FName,
&NumPtsJ,
&NumPtsK,
&ZoneType,
- &UserRec);
+ &UserRec,
+ &DatasetAuxData);
/*
* Reread the datafile. This time load in the header AND the raw data
@@ -292,6 +326,7 @@ void ReportFileInfo(char *FName,
&NumPtsK,
&ZoneType,
&UserRec,
+ &DatasetAuxData,
AllocateRawDataSpaceLocally,
&NodeMap,
&VDataBase))
@@ -368,6 +403,9 @@ void ReportFileInfo(char *FName,
sprintf(InfoLine, "DataSetTitle: %s\n", DataSetTitle ? DataSetTitle : " ");
SHOWINFO(InfoLine);
+
+ ShowDatasetAuxData(DatasetAuxData, InfoLine);
+
sprintf(InfoLine, "NumZones : %d\n", (int)NumZones);
SHOWINFO(InfoLine);
sprintf(InfoLine, "NumVars : %d\n", (int)NumVars);
@@ -534,7 +572,8 @@ void ReportFileInfo(char *FName,
&NumPtsJ,
&NumPtsK,
&ZoneType,
- &UserRec);
+ &UserRec,
+ &DatasetAuxData);
}
}
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/readme.txt b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/readme.txt
index 8c6f468b8..70e6531f5 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/readme.txt
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/readme.txt
@@ -2,10 +2,10 @@
** README **
***********************************************
-To build the TecIO library and/or the pltview utility
+To build the TecIO library and/or the pltview utility,
simply run the Runmake script in this directory.
-If customization is needed it will most likely be done
+If customization is needed, it will most likely be done
in GLOBAL.h (to identify machine as 64 bit) and/or in
dataio4.c. Just look for CRAY in dataio4.c and you
will find most of the critical areas. Note that the
@@ -18,34 +18,13 @@ the variables at the top of the Makefile for your platform.
ReadTec()
-The ReadTec() is included in the tecio library but is
-not supported by Tecplot, Inc. ReadTec is used
-to read Tecplot binary data files (all versions at or
-older than the Tecplot version providing the tecio
+The ReadTec() function is included in the tecio library
+but is not supported by Tecplot, Inc. ReadTec is used
+to read Tecplot binary data files (all versions at or
+older than the Tecplot version providing the tecio
library). See tecsrc/DATAUTIL.h for more information.
-The pltview example app gives an example of using ReadTec
+The pltview example app gives an example of using ReadTec
to read just the header from a file as well as loading all
-field data from a file./*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
+field data from a file.
+
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/ALLOC.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/ALLOC.h
index 8ea1db45f..eea2291bb 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/ALLOC.h
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/ALLOC.h
@@ -1,31 +1,8 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
/*
******************************************************************
******************************************************************
******* ********
-****** (C) 1988-2009 Tecplot, Inc. *******
+****** (C) 1988-2010 Tecplot, Inc. *******
******* ********
******************************************************************
******************************************************************
@@ -69,7 +46,7 @@ extern void getMemoryUsage(size_t* memoryInUse,
* ALLOC_ITEM and ALLOC_ARRAY that expect a return value of
* NULL on failure instead of the exception. 2008-05-08 CAM
*/
-#if defined MSWIN && defined _DEBUG
+#if defined MSWIN && defined _DEBUG && defined TRACK_MEMORY_USAGE
template
inline T *nonExceptionNew(size_t numItems,
const char* fileName,
@@ -88,7 +65,7 @@ inline T *nonExceptionNew(size_t numItems,
#endif
result = new(fileName, lineNumber) T[numItems];
#ifdef USING_DEBUG_NEW
-#define new DEBUG_NEW
+//#define new DEBUG_NEW
#undef USING_DEBUG_NEW
#endif
#else
@@ -172,7 +149,7 @@ inline void nonExceptionDelete(T* &ptr)
* NOTE: the pointer is set to 0xFFFF after the free for asserted
* builds in the hopes of catching invalid pointer usage
*/
- ptr = (T*)(void*)0xFFFF;
+ ptr = static_cast(reinterpret_cast(0xFFFF));
#endif
}
#define FREE_ARRAY(ptr,str) nonExceptionDelete((ptr))
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/ARRLIST.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/ARRLIST.h
index 8ee300be5..418f1f286 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/ARRLIST.h
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/ARRLIST.h
@@ -1,31 +1,10 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
+#include "stdafx.h"
+#include "MASTER.h"
/*
*****************************************************************
*****************************************************************
******* ********
-****** Copyright (C) 1988-2008 Tecplot, Inc. *******
+****** Copyright (C) 1988-2010 Tecplot, Inc. *******
******* ********
*****************************************************************
*****************************************************************
@@ -42,6 +21,10 @@
# define EXTERN extern
#endif
+#if !defined TECPLOTKERNEL
+typedef struct _ArrayList_s* ArrayList_pa;
+#endif
+
typedef enum
{
ArrayListType_UnsignedChar,
@@ -85,52 +68,45 @@ typedef enum
typedef union
{
- unsigned char UnsignedChar;
- unsigned short UnsignedShort;
- unsigned int UnsignedInt;
- unsigned long UnsignedLong;
- Int64_t Int64;
- char Char;
- short Short;
- int Int;
- long Long;
- float Float;
- double Double;
- LgIndex_t LgIndex;
- EntIndex_t EntIndex;
- SmInteger_t SmInteger;
- Boolean_t BBoolean; /* X-Windows uses Boolean */
- ArbParam_t ArbParam;
- unsigned char *UnsignedCharPtr;
- unsigned short *UnsignedShortPtr;
- unsigned int *UnsignedIntPtr;
- unsigned long *UnsignedLongPtr;
- Int64_t *Int64Ptr;
- char *CharPtr;
- short *ShortPtr;
- int *IntPtr;
- long *LongPtr;
- float *FloatPtr;
- double *DoublePtr;
- LgIndex_t *LgIndexPtr;
- EntIndex_t *EntIndexPtr;
- SmInteger_t *SmIntegerPtr;
- Boolean_t *BooleanPtr;
- ArbParam_t *ArbParamPtr;
- void *VoidPtr;
+ unsigned char UnsignedChar;
+ unsigned short UnsignedShort;
+ unsigned int UnsignedInt;
+ unsigned long UnsignedLong;
+ Int64_t Int64;
+ char Char;
+ short Short;
+ int Int;
+ long Long;
+ float Float;
+ double Double;
+ LgIndex_t LgIndex;
+ EntIndex_t EntIndex;
+ SmInteger_t SmInteger;
+ Boolean_t BBoolean; /* X-Windows uses Boolean */
+ ArbParam_t ArbParam;
+ unsigned char* UnsignedCharPtr;
+ unsigned short* UnsignedShortPtr;
+ unsigned int* UnsignedIntPtr;
+ unsigned long* UnsignedLongPtr;
+ Int64_t* Int64Ptr;
+ char* CharPtr;
+ short* ShortPtr;
+ int* IntPtr;
+ long* LongPtr;
+ float* FloatPtr;
+ double* DoublePtr;
+ LgIndex_t* LgIndexPtr;
+ EntIndex_t* EntIndexPtr;
+ SmInteger_t* SmIntegerPtr;
+ Boolean_t* BooleanPtr;
+ ArbParam_t* ArbParamPtr;
+ void* VoidPtr;
void (*FunctionPtr)(void);
} ArrayListItem_u;
-/**
- * NULL array list item for added convenience of inserting a NULL item without
- * having to declare and assign one. Can be used as follows:
- *
- * IsOk = ArrayListInsertItem(SomeArrayList, SomeIndex, ArrayListNumItem);
- *
- * NOTE: This value must be set to zero before Tecplot uses array lists.
- * memset(&ArrayListNullItem, 0, sizeof(ArrayListType_Any));
- */
-EXTERN ArrayListItem_u ArrayListNullItem;
+#if defined TECPLOTKERNEL
+/* CORE SOURCE CODE REMOVED */
+#endif
/**
* Visitor for traversing an array list. An iterator may not perform any
@@ -147,7 +123,7 @@ EXTERN ArrayListItem_u ArrayListNullItem;
* TRUE to continue visiting items, otherwise
* FALSE to discontinue visiting
*/
-typedef Boolean_t (*ArrayListItemVisitor_pf)(void *ItemRef,
+typedef Boolean_t (*ArrayListItemVisitor_pf)(void* ItemRef,
ArbParam_t ClientData);
#if 0 /* use this stub as a starting place */
{
@@ -155,7 +131,7 @@ typedef Boolean_t (*ArrayListItemVisitor_pf)(void *ItemRef,
REQUIRE(VALID_REF(*TypeRef) || *TypeRef == NULL);
Boolean_t DoContinue = TRUE;
- *TypeRef = ( *)ItemRef;
+ * TypeRef = static_cast<*>(ItemRef);
ENSURE(VALID_BOOLEAN(DoContinue));
return DoContinue;
@@ -200,8 +176,8 @@ typedef ArrayListItemVisitor_pf ArrayListItemDestructor_pf;
* is the client's responsibility to cleanup any
* partial duplication
*/
-typedef Boolean_t (*ArrayListItemDuplicator_pf)(void *TargetItemRef,
- void *SourceItemRef,
+typedef Boolean_t (*ArrayListItemDuplicator_pf)(void* TargetItemRef,
+ void* SourceItemRef,
ArbParam_t ClientData);
#if 0 /* use this stub as a starting place */
{
@@ -210,8 +186,8 @@ typedef Boolean_t (*ArrayListItemDuplicator_pf)(void *TargetItemRef,
REQUIRE(VALID_REF(*SourceTypeRef) || *SourceTypeRef == NULL);
Boolean_t IsOk = TRUE;
- *TargetTypeRef = ( *)TargetItemRef;
- *SourceTypeRef = ( *)SourceItemRef;
+ * TargetTypeRef = static_cast<*>(TargetItemRef);
+ * SourceTypeRef = static_cast<*>(SourceItemRef);
ENSURE(VALID_BOOLEAN(IsOk));
return IsOk;
@@ -260,7 +236,7 @@ typedef LgIndex_t (*ArrayListCapacityRequestAdjuster_pf)(ArrayList_pa ArrayList,
/* private ArrayList structure: only exposed so STRUTIL can use it */
typedef struct _ArrayList_s
{
- char *Array; /* byte array for holding the items */
+ char* Array; /* byte array for holding the items */
ArrayListType_e Type; /* type of array items */
SmInteger_t ItemSize; /* byte size of an individual item */
LgIndex_t Count; /* number of items in the array */
@@ -297,23 +273,24 @@ EXTERN Boolean_t ArrayListEnlargeCapacity(ArrayList_pa ArrayList,
LgIndex_t RequestedCapacity);
EXTERN ArrayList_pa ArrayListAlloc(LgIndex_t EstimatedCapacity,
ArrayListType_e Type,
- ArrayListCapacityRequestAdjuster_pf CapacityRequestAdjuster,
- ArbParam_t CapacityRequestAdjusterClientData);
-EXTERN void ArrayListDealloc(ArrayList_pa *ArrayList,
- ArrayListItemDestructor_pf ItemDestructor,
- ArbParam_t ClientData);
+ ArrayListCapacityRequestAdjuster_pf CapacityRequestAdjuster = 0,
+ ArbParam_t CapacityRequestAdjusterClientData = 0);
+EXTERN void ArrayListDealloc(ArrayList_pa* ArrayList,
+ ArrayListItemDestructor_pf ItemDestructor = 0,
+ ArbParam_t ClientData = 0);
+EXTERN void ArrayListClear(ArrayList_pa ArrayList);
EXTERN void ArrayListDeleteAllItems(ArrayList_pa ArrayList,
- ArrayListItemDestructor_pf ItemDestructor,
- ArbParam_t ClientData);
+ ArrayListItemDestructor_pf ItemDestructor = 0,
+ ArbParam_t ClientData = 0);
EXTERN void ArrayListDeleteItems(ArrayList_pa ArrayList,
LgIndex_t ItemOffset,
LgIndex_t Count,
- ArrayListItemDestructor_pf ItemDestructor,
- ArbParam_t ClientData);
+ ArrayListItemDestructor_pf ItemDestructor = 0,
+ ArbParam_t ClientData = 0);
EXTERN void ArrayListDeleteItem(ArrayList_pa ArrayList,
LgIndex_t ItemOffset,
- ArrayListItemDestructor_pf ItemDestructor,
- ArbParam_t ClientData);
+ ArrayListItemDestructor_pf ItemDestructor = 0,
+ ArbParam_t ClientData = 0);
EXTERN ArrayList_pa ArrayListRemoveItems(ArrayList_pa ArrayList,
LgIndex_t ItemOffset,
LgIndex_t Count);
@@ -338,35 +315,32 @@ EXTERN ArrayListItem_u ArrayListGetItem(ArrayList_pa ArrayList,
EXTERN Boolean_t ArrayListSetItem(ArrayList_pa ArrayList,
LgIndex_t ItemOffset,
ArrayListItem_u Item,
- ArrayListItemDestructor_pf ItemDestructor,
- ArbParam_t ClientData);
+ ArrayListItemDestructor_pf ItemDestructor = 0,
+ ArbParam_t ClientData = 0);
EXTERN Boolean_t ArrayListAppendItem(ArrayList_pa ArrayList,
ArrayListItem_u Item);
EXTERN Boolean_t ArrayListAppend(ArrayList_pa Target,
ArrayList_pa Source);
EXTERN ArrayList_pa ArrayListCopy(ArrayList_pa ArrayList,
- ArrayListItemDuplicator_pf ItemDuplicator,
- ArbParam_t ClientData);
-EXTERN void *ArrayListToArray(ArrayList_pa ArrayList,
+ ArrayListItemDuplicator_pf ItemDuplicator = 0,
+ ArbParam_t ClientData = 0);
+EXTERN void* ArrayListToArray(ArrayList_pa ArrayList,
ArrayListItemDuplicator_pf ItemDuplicator,
ArbParam_t ClientData);
-EXTERN ArrayList_pa ArrayListFromArray(void *Source,
+EXTERN ArrayList_pa ArrayListFromArray(void* Source,
LgIndex_t Count,
ArrayListType_e Type,
- ArrayListItemDuplicator_pf ItemDuplicator,
- ArbParam_t ClientData);
+ ArrayListItemDuplicator_pf ItemDuplicator = 0,
+ ArbParam_t ClientData = 0);
#if defined TECPLOTKERNEL
/* CORE SOURCE CODE REMOVED */
#endif
-EXTERN void ArrayListQSort(ArrayList_pa ArrayList,
- ArrayListItemComparator_pf Comparator,
- ArbParam_t ClientData);
-EXTERN Boolean_t ArrayListBSearch(ArrayList_pa ArrayList,
- ArrayListItem_u Item,
- ArrayListItemComparator_pf Comparator,
- ArbParam_t ClientData,
- LgIndex_t *ItemIndex);
+EXTERN Boolean_t ArrayListBSearch(ArrayList_pa ArrayList,
+ ArrayListItem_u Item,
+ ArrayListItemComparator_pf Comparator,
+ ArbParam_t ClientData,
+ LgIndex_t* ItemIndex = 0);
#if defined USE_MACROS_FOR_FUNCTIONS
/**
@@ -429,76 +403,76 @@ EXTERN Boolean_t ArrayListBSearch(ArrayList_pa ArrayList,
# define ArrayListGetSmInteger(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, SmInteger_t)
# define ArrayListGetBoolean(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, Boolean_t)
# define ArrayListGetArbParam(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, ArbParam_t)
-# define ArrayListGetUnsignedCharPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, unsigned char *)
-# define ArrayListGetUnsignedShortPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, unsigned short *)
-# define ArrayListGetUnsignedIntPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, unsigned int *)
-# define ArrayListGetUnsignedLongPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, unsigned long *)
-# define ArrayListGetInt64Ptr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, Int64_t *)
-# define ArrayListGetCharPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, char *)
-# define ArrayListGetShortPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, short *)
-# define ArrayListGetIntPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, int *)
-# define ArrayListGetLongPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, long *)
-# define ArrayListGetFloatPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, float *)
-# define ArrayListGetDoublePtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, double *)
-# define ArrayListGetLgIndexPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, LgIndex_t *)
-# define ArrayListGetEntIndexPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, EntIndex_t *)
-# define ArrayListGetSmIntegerPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, SmInteger_t *)
-# define ArrayListGetBooleanPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, Boolean_t *)
-# define ArrayListGetArbParamPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, ArbParam_t *)
-# define ArrayListGetVoidPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, void *)
+# define ArrayListGetUnsignedCharPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, unsigned char*)
+# define ArrayListGetUnsignedShortPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, unsigned short*)
+# define ArrayListGetUnsignedIntPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, unsigned int*)
+# define ArrayListGetUnsignedLongPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, unsigned long*)
+# define ArrayListGetInt64Ptr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, Int64_t*)
+# define ArrayListGetCharPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, char*)
+# define ArrayListGetShortPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, short*)
+# define ArrayListGetIntPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, int*)
+# define ArrayListGetLongPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, long*)
+# define ArrayListGetFloatPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, float*)
+# define ArrayListGetDoublePtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, double*)
+# define ArrayListGetLgIndexPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, LgIndex_t*)
+# define ArrayListGetEntIndexPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, EntIndex_t*)
+# define ArrayListGetSmIntegerPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, SmInteger_t*)
+# define ArrayListGetBooleanPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, Boolean_t*)
+# define ArrayListGetArbParamPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, ArbParam_t*)
+# define ArrayListGetVoidPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, void*)
# define ArrayListGetFunctionPtr(ArrayList, ItemOffset) ArrayListGetTypedItem(ArrayList, ItemOffset, (**)(void))
#else
# define ArrayListGetInternalRef ArrayListGetInternalRef_FUNC
# define ArrayListGetItemInternalRef ArrayListGetItemInternalRef_FUNC
# define ArrayListGetCount ArrayListGetCount_FUNC
-# define ArrayListGetUnsignedChar(ArrayList, ItemOffset) (*((unsigned char *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetUnsignedShort(ArrayList, ItemOffset) (*((unsigned short *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetUnsignedInt(ArrayList, ItemOffset) (*((unsigned int *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetUnsignedLong(ArrayList, ItemOffset) (*((unsigned long *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetInt64(ArrayList, ItemOffset) (*((Int64_t *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetChar(ArrayList, ItemOffset) (*((char *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetShort(ArrayList, ItemOffset) (*((short *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetInt(ArrayList, ItemOffset) (*((int *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetLong(ArrayList, ItemOffset) (*((long *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetFloat(ArrayList, ItemOffset) (*((float *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetDouble(ArrayList, ItemOffset) (*((double *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetLgIndex(ArrayList, ItemOffset) (*((LgIndex_t *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetEntIndex(ArrayList, ItemOffset) (*((EntIndex_t *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetSmInteger(ArrayList, ItemOffset) (*((SmInteger_t *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetBoolean(ArrayList, ItemOffset) (*((Boolean_t *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetArbParam(ArrayList, ItemOffset) (*((ArbParam_t *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetUnsignedCharPtr(ArrayList, ItemOffset) (*((unsigned char * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetUnsignedShortPtr(ArrayList, ItemOffset) (*((unsigned short * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetUnsignedIntPtr(ArrayList, ItemOffset) (*((unsigned int * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetUnsignedLongPtr(ArrayList, ItemOffset) (*((unsigned long * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetInt64Ptr(ArrayList, ItemOffset) (*((Int64_t * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetCharPtr(ArrayList, ItemOffset) (*((char * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetShortPtr(ArrayList, ItemOffset) (*((short * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetIntPtr(ArrayList, ItemOffset) (*((int * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetLongPtr(ArrayList, ItemOffset) (*((long * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetFloatPtr(ArrayList, ItemOffset) (*((float * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetDoublePtr(ArrayList, ItemOffset) (*((double * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetLgIndexPtr(ArrayList, ItemOffset) (*((LgIndex_t * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetEntIndexPtr(ArrayList, ItemOffset) (*((EntIndex_t * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetSmIntegerPtr(ArrayList, ItemOffset) (*((SmInteger_t * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetBooleanPtr(ArrayList, ItemOffset) (*((Boolean_t * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetArbParamPtr(ArrayList, ItemOffset) (*((ArbParam_t * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetVoidPtr(ArrayList, ItemOffset) (*((void * *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
-# define ArrayListGetFunctionPtr(ArrayList, ItemOffset) (*(((**)(void) *)ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))
+# define ArrayListGetUnsignedChar(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetUnsignedShort(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetUnsignedInt(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetUnsignedLong(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetInt64(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetChar(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetShort(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetInt(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetLong(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetFloat(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetDouble(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetLgIndex(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetEntIndex(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetSmInteger(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetBoolean(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetArbParam(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetUnsignedCharPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetUnsignedShortPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetUnsignedIntPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetUnsignedLongPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetInt64Ptr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetCharPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetShortPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetIntPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetLongPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetFloatPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetDoublePtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetLgIndexPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetEntIndexPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetSmIntegerPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetBooleanPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetArbParamPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetVoidPtr(ArrayList, ItemOffset) (*(static_cast(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
+# define ArrayListGetFunctionPtr(ArrayList, ItemOffset) (*(static_cast<**(void)*>(const_cast(ArrayListGetItemInternalRef_FUNC(ArrayList, ItemOffset)))))
#endif
#if !defined USE_MACROS_FOR_FUNCTIONS
-EXTERN const void *ArrayListGetInternalRef_FUNC(ArrayList_pa ArrayList);
-EXTERN const void *ArrayListGetItemInternalRef_FUNC(ArrayList_pa ArrayList,
+EXTERN void const* ArrayListGetInternalRef_FUNC(ArrayList_pa ArrayList);
+EXTERN void const* ArrayListGetItemInternalRef_FUNC(ArrayList_pa ArrayList,
LgIndex_t ItemOffset);
EXTERN LgIndex_t ArrayListGetCount_FUNC(ArrayList_pa ArrayList);
#endif
-#define ArrayListGetInternalRef_MACRO(ArrayList) ((const void *)((ArrayList)->Array))
-#define ArrayListGetItemInternalRef_MACRO(ArrayList, ItemOffset) ((const void *)&((ArrayList)->Array[(ItemOffset)*(ArrayList)->ItemSize]))
+#define ArrayListGetInternalRef_MACRO(ArrayList) static_cast((ArrayList)->Array)
+#define ArrayListGetItemInternalRef_MACRO(ArrayList, ItemOffset) static_cast(&((ArrayList)->Array[(ItemOffset)*(ArrayList)->ItemSize]))
#define ArrayListGetCount_MACRO(ArrayList) ((ArrayList)->Count)
-#define ArrayListGetTypedArrayRef(ArrayList, NativeType) ((NativeType *)((ArrayList)->Array))
+#define ArrayListGetTypedArrayRef(ArrayList, NativeType) reinterpret_cast((ArrayList)->Array)
#define ArrayListGetTypedItem(ArrayList, ItemOffset, NativeType) (ArrayListGetTypedArrayRef(ArrayList,NativeType)[ItemOffset])
/**
@@ -542,85 +516,112 @@ EXTERN LgIndex_t ArrayListGetCount_FUNC(ArrayList_pa ArrayList);
#define ArrayListSetTypedItem(ArrayList, ItemOffset, Item, NativeType) \
((ArrayListOffsetWithinCapacity((ArrayList), (ItemOffset)) || \
ArrayListEnlargeCapacity((ArrayList), (ItemOffset)+1)) \
- ? (((((NativeType *)((ArrayList)->Array))[(ItemOffset)]) = (Item)), \
+ ? ((void)((ArrayListGetTypedArrayRef((ArrayList),NativeType)[(ItemOffset)]) = (Item)), \
(((ItemOffset)+1 > (ArrayList)->Count) \
? (((ArrayList)->Count = (ItemOffset)+1), TRUE) \
: (TRUE))) \
: (FALSE))
+/**
+ * Appends the item to the end of the list. This is similar to ArrayListSetTypedItem however it
+ * needs not perform a bounds check which is always one beyond the end. This macro was added
+ * primarily to remove compiler warnings caused by a comparison of the array list ArrayList->Count+1
+ * always returning true when tested if larger than ArrayList->Count which occurs if you use the
+ * ArrayListSetTypedItem as ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, NativeType).
+ *
+ * This is the workhorse of the append convenience macros that follow.
+ *
+ * param ArrayList
+ * Array list target in which to set the item.
+ * param Item
+ * Item to append to the end of the array. Its native type must
+ * match 'NativeType'
+ * param NativeType
+ * Native type of 'Item'.
+ *
+ * return
+ * TRUE if sufficient memory permitted the operation, otherwise FALSE.
+ */
+#define ArrayListAppendTypedItem(ArrayList, Item, NativeType) \
+ ((ArrayListOffsetWithinCapacity((ArrayList), (ArrayList)->Count) || \
+ ArrayListEnlargeCapacity((ArrayList), (ArrayList)->Count+1)) \
+ ? ((void)((ArrayListGetTypedArrayRef((ArrayList),NativeType)[(ArrayList)->Count]) = (Item)), \
+ (((ArrayList)->Count = (ArrayList)->Count+1), TRUE)) \
+ : (FALSE))
+
/**
* This section provides macros for high speed setting and appending to an
* array list of a known type. The only additional overhead incurred versus just
* using a simple array is the cost of testing the array list capacity.
*/
-#define ArrayListSetUnsignedChar(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, unsigned char)
-#define ArrayListSetUnsignedShort(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, unsigned short)
-#define ArrayListSetUnsignedInt(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, unsigned int)
-#define ArrayListSetUnsignedLong(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, unsigned long)
-#define ArrayListSetInt64(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, Int64_t)
-#define ArrayListSetChar(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, char)
-#define ArrayListSetShort(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, short)
-#define ArrayListSetInt(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, int)
-#define ArrayListSetLong(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, long)
-#define ArrayListSetFloat(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, float)
-#define ArrayListSetDouble(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, double)
-#define ArrayListSetLgIndex(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, LgIndex_t)
-#define ArrayListSetEntIndex(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, EntIndex_t)
-#define ArrayListSetSmInteger(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, SmInteger_t)
-#define ArrayListSetBoolean(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, Boolean_t)
-#define ArrayListSetArbParam(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, ArbParam_t)
-#define ArrayListSetUnsignedCharPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, unsigned char *)
-#define ArrayListSetUnsignedShortPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, unsigned short *)
-#define ArrayListSetUnsignedIntPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, unsigned int *)
-#define ArrayListSetUnsignedLongPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, unsigned long *)
-#define ArrayListSetInt64Ptr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, Int64_t *)
-#define ArrayListSetCharPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, char *)
-#define ArrayListSetShortPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, short *)
-#define ArrayListSetIntPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, int *)
-#define ArrayListSetLongPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, long *)
-#define ArrayListSetFloatPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, float *)
-#define ArrayListSetDoublePtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, double *)
-#define ArrayListSetLgIndexPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, LgIndex_t *)
-#define ArrayListSetEntIndexPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, EntIndex_t *)
-#define ArrayListSetSmIntegerPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, SmInteger_t *)
-#define ArrayListSetBooleanPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, Boolean_t *)
-#define ArrayListSetArbParamPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, ArbParam_t *)
-#define ArrayListSetVoidPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, void *)
-#define ArrayListSetFunctionPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem(ArrayList, ItemOffset, Item, (**)(void))
+#define ArrayListSetUnsignedChar(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),unsigned char)
+#define ArrayListSetUnsignedShort(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),unsigned short)
+#define ArrayListSetUnsignedInt(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),unsigned int)
+#define ArrayListSetUnsignedLong(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),unsigned long)
+#define ArrayListSetInt64(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),Int64_t)
+#define ArrayListSetChar(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),char)
+#define ArrayListSetShort(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),short)
+#define ArrayListSetInt(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),int)
+#define ArrayListSetLong(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),long)
+#define ArrayListSetFloat(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),float)
+#define ArrayListSetDouble(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),double)
+#define ArrayListSetLgIndex(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),LgIndex_t)
+#define ArrayListSetEntIndex(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),EntIndex_t)
+#define ArrayListSetSmInteger(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),SmInteger_t)
+#define ArrayListSetBoolean(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),Boolean_t)
+#define ArrayListSetArbParam(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),ArbParam_t)
+#define ArrayListSetUnsignedCharPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),unsigned char*)
+#define ArrayListSetUnsignedShortPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),unsigned short*)
+#define ArrayListSetUnsignedIntPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),unsigned int*)
+#define ArrayListSetUnsignedLongPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),unsigned long*)
+#define ArrayListSetInt64Ptr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),Int64_t*)
+#define ArrayListSetCharPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),char*)
+#define ArrayListSetShortPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),short*)
+#define ArrayListSetIntPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),int*)
+#define ArrayListSetLongPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),long*)
+#define ArrayListSetFloatPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),float*)
+#define ArrayListSetDoublePtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),double*)
+#define ArrayListSetLgIndexPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),LgIndex_t*)
+#define ArrayListSetEntIndexPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),EntIndex_t*)
+#define ArrayListSetSmIntegerPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),SmInteger_t*)
+#define ArrayListSetBooleanPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),Boolean_t*)
+#define ArrayListSetArbParamPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),ArbParam_t*)
+#define ArrayListSetVoidPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),void*)
+#define ArrayListSetFunctionPtr(ArrayList, ItemOffset, Item) ArrayListSetTypedItem((ArrayList),(ItemOffset),(Item),(**)(void))
-#define ArrayListAppendUnsignedChar(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, unsigned char)
-#define ArrayListAppendUnsignedShort(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, unsigned short)
-#define ArrayListAppendUnsignedInt(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, unsigned int)
-#define ArrayListAppendUnsignedLong(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, unsigned long)
-#define ArrayListAppendInt64(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, Int64_t)
-#define ArrayListAppendChar(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, char)
-#define ArrayListAppendShort(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, short)
-#define ArrayListAppendInt(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, int)
-#define ArrayListAppendLong(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, long)
-#define ArrayListAppendFloat(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, float)
-#define ArrayListAppendDouble(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, double)
-#define ArrayListAppendLgIndex(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, LgIndex_t)
-#define ArrayListAppendEntIndex(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, EntIndex_t)
-#define ArrayListAppendSmInteger(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, SmInteger_t)
-#define ArrayListAppendBoolean(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, Boolean_t)
-#define ArrayListAppendArbParam(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, ArbParam_t)
-#define ArrayListAppendUnsignedCharPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, unsigned char *)
-#define ArrayListAppendUnsignedShortPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, unsigned short *)
-#define ArrayListAppendUnsignedIntPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, unsigned int *)
-#define ArrayListAppendUnsignedLongPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, unsigned long *)
-#define ArrayListAppendInt64Ptr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, Int64_t *)
-#define ArrayListAppendCharPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, char *)
-#define ArrayListAppendShortPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, short *)
-#define ArrayListAppendIntPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, int *)
-#define ArrayListAppendLongPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, long *)
-#define ArrayListAppendFloatPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, float *)
-#define ArrayListAppendDoublePtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, double *)
-#define ArrayListAppendLgIndexPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, LgIndex_t *)
-#define ArrayListAppendEntIndexPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, EntIndex_t *)
-#define ArrayListAppendSmIntegerPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, SmInteger_t *)
-#define ArrayListAppendBooleanPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, Boolean_t *)
-#define ArrayListAppendArbParamPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, ArbParam_t *)
-#define ArrayListAppendVoidPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, void *)
-#define ArrayListAppendFunctionPtr(ArrayList, Item) ArrayListSetTypedItem(ArrayList, (ArrayList)->Count, Item, (**)(void))
+#define ArrayListAppendUnsignedChar(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),unsigned char)
+#define ArrayListAppendUnsignedShort(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),unsigned short)
+#define ArrayListAppendUnsignedInt(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),unsigned int)
+#define ArrayListAppendUnsignedLong(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),unsigned long)
+#define ArrayListAppendInt64(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),Int64_t)
+#define ArrayListAppendChar(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),char)
+#define ArrayListAppendShort(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),short)
+#define ArrayListAppendInt(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),int)
+#define ArrayListAppendLong(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),long)
+#define ArrayListAppendFloat(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),float)
+#define ArrayListAppendDouble(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),double)
+#define ArrayListAppendLgIndex(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),LgIndex_t)
+#define ArrayListAppendEntIndex(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),EntIndex_t)
+#define ArrayListAppendSmInteger(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),SmInteger_t)
+#define ArrayListAppendBoolean(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),Boolean_t)
+#define ArrayListAppendArbParam(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),ArbParam_t)
+#define ArrayListAppendUnsignedCharPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),unsigned char*)
+#define ArrayListAppendUnsignedShortPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),unsigned short*)
+#define ArrayListAppendUnsignedIntPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),unsigned int*)
+#define ArrayListAppendUnsignedLongPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),unsigned long*)
+#define ArrayListAppendInt64Ptr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),Int64_t*)
+#define ArrayListAppendCharPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),char*)
+#define ArrayListAppendShortPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),short*)
+#define ArrayListAppendIntPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),int*)
+#define ArrayListAppendLongPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),long*)
+#define ArrayListAppendFloatPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),float*)
+#define ArrayListAppendDoublePtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),double*)
+#define ArrayListAppendLgIndexPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),LgIndex_t*)
+#define ArrayListAppendEntIndexPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),EntIndex_t*)
+#define ArrayListAppendSmIntegerPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),SmInteger_t*)
+#define ArrayListAppendBooleanPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),Boolean_t*)
+#define ArrayListAppendArbParamPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),ArbParam_t*)
+#define ArrayListAppendVoidPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),void*)
+#define ArrayListAppendFunctionPtr(ArrayList, Item) ArrayListAppendTypedItem((ArrayList),(Item),(**)(void))
#endif /* ARRLIST_h */
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/AUXDATA.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/AUXDATA.h
index 652d7ba24..19822a2dd 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/AUXDATA.h
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/AUXDATA.h
@@ -1,31 +1,8 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
/*
*****************************************************************
*****************************************************************
******* ********
- ****** Copyright (C) 1988-2008 Tecplot, Inc. *******
+ ****** Copyright (C) 1988-2010 Tecplot, Inc. *******
******* ********
*****************************************************************
*****************************************************************
@@ -42,6 +19,27 @@
# define EXTERN extern
#endif
+/*
+ * For building pltview.exe under Windows, we use
+ * tecio.dll (which is linked to pltview).
+ * Since pltview.exe uses a few of the
+ * functions here, they need to be exported into
+ * the tecio.dll, thus "TECXXX.h" is included for the
+ * LIBFUNCTION & LIBCALL keywords. They are not
+ * documented with the other TECXXX() functions,
+ * however.
+ *
+ * If pltview requires other AuxData functions
+ * in the future, they can be added to the dll
+ * by adding LIBFUNCTION & LIBCALL as in
+ * AuxDataDealloc(), etc. below.
+ *
+ * When building the tecplot kernel, LIBFUNCTION
+ * and LIBCALL are nop's.
+ *
+ */
+#include "TECXXX.h"
+
/**
*/
EXTERN Boolean_t AuxDataIsValidNameChar(char Char,
@@ -52,11 +50,11 @@ EXTERN Boolean_t AuxDataIsValidName(const char *Name);
/**
*/
-EXTERN AuxData_pa AuxDataAlloc(void);
+EXTERN AuxData_pa AuxDataAlloc(ArbParam_t Owner);
/**
*/
-EXTERN void AuxDataDealloc(AuxData_pa *AuxData);
+LIBFUNCTION void LIBCALL AuxDataDealloc(AuxData_pa *AuxData);
/**
*/
@@ -69,7 +67,7 @@ EXTERN AuxData_pa AuxDataCopy(AuxData_pa AuxData,
/**
*/
-EXTERN LgIndex_t AuxDataGetNumItems(AuxData_pa AuxData);
+LIBFUNCTION LgIndex_t LIBCALL AuxDataGetNumItems(AuxData_pa AuxData);
/**
*/
@@ -78,12 +76,12 @@ EXTERN Boolean_t AuxDataGetItemIndex(AuxData_pa AuxData,
LgIndex_t *ItemIndex);
/**
*/
-EXTERN void AuxDataGetItemByIndex(AuxData_pa AuxData,
- LgIndex_t Index,
- const char **Name,
- ArbParam_t *Value,
- AuxDataType_e *Type,
- Boolean_t *Retain);
+LIBFUNCTION void LIBCALL AuxDataGetItemByIndex(AuxData_pa AuxData,
+ LgIndex_t Index,
+ const char **Name,
+ ArbParam_t *Value,
+ AuxDataType_e *Type,
+ Boolean_t *Retain);
/**
*/
@@ -104,7 +102,7 @@ EXTERN Boolean_t AuxDataGetBooleanItemByName(AuxData_pa AuxData,
/**
*/
EXTERN Boolean_t AuxDataSetItem(AuxData_pa AuxData,
- const char *Name,
+ char const* Name,
ArbParam_t Value,
AuxDataType_e Type,
Boolean_t Retain);
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/CHARTYPE.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/CHARTYPE.h
new file mode 100644
index 000000000..8c138d330
--- /dev/null
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/CHARTYPE.h
@@ -0,0 +1,254 @@
+#ifndef TECPLOT_CHARTYPE
+#define TECPLOT_CHARTYPE
+/*
+******************************************************************
+******************************************************************
+******* ********
+****** (C) 1988-2010 Tecplot, Inc. *******
+******* ********
+******************************************************************
+******************************************************************
+*/
+
+#if defined EXTERN
+#undef EXTERN
+#endif
+#if defined CHARTYPEMODULE
+#define EXTERN
+#else
+#define EXTERN extern
+#endif
+
+
+/**
+ */
+namespace tecplot
+{
+
+/**
+ * Same as std::isspace() with the classic default C locale for portable
+ * comparisons.
+ */
+template
+inline bool isspace(CHAR_TYPE ch,
+ std::locale const& loc = std::locale::classic())
+{
+ #if defined SUNX
+ REQUIRE(loc == std::locale::classic());
+ return ::isspace(static_cast(ch));
+ #else
+ REQUIRE(std::has_facet >(loc));
+ return std::use_facet >(loc).is(std::ctype_base::space, static_cast(ch));
+ #endif
+}
+
+/**
+ * Same as std::isprint() with the classic default C locale for portable
+ * comparisons.
+ */
+template
+inline bool isprint(CHAR_TYPE ch,
+ std::locale const& loc = std::locale::classic())
+{
+ #if defined SUNX
+ REQUIRE(loc == std::locale::classic());
+ return ::isprint(static_cast(ch));
+ #else
+ REQUIRE(std::has_facet >(loc));
+ return std::use_facet >(loc).is(std::ctype_base::print, static_cast(ch));
+ #endif
+}
+
+/**
+ * Same as std::iscntrl() with the classic default C locale for portable
+ * comparisons.
+ */
+template
+inline bool iscntrl(CHAR_TYPE ch,
+ std::locale const& loc = std::locale::classic())
+{
+ #if defined SUNX
+ REQUIRE(loc == std::locale::classic());
+ return ::iscntrl(static_cast(ch));
+ #else
+ REQUIRE(std::has_facet >(loc));
+ return std::use_facet >(loc).is(std::ctype_base::cntrl, static_cast(ch));
+ #endif
+}
+
+/**
+ * Same as std::isupper() with the classic default C locale for portable
+ * comparisons.
+ */
+template
+inline bool isupper(CHAR_TYPE ch,
+ std::locale const& loc = std::locale::classic())
+{
+ #if defined SUNX
+ REQUIRE(loc == std::locale::classic());
+ return ::isupper(static_cast(ch));
+ #else
+ REQUIRE(std::has_facet >(loc));
+ return std::use_facet >(loc).is(std::ctype_base::upper, static_cast(ch));
+ #endif
+}
+
+/**
+ * Same as std::islower() with the classic default C locale for portable
+ * comparisons.
+ */
+template
+inline bool islower(CHAR_TYPE ch,
+ std::locale const& loc = std::locale::classic())
+{
+ #if defined SUNX
+ REQUIRE(loc == std::locale::classic());
+ return ::islower(static_cast(ch));
+ #else
+ REQUIRE(std::has_facet >(loc));
+ return std::use_facet >(loc).is(std::ctype_base::lower, static_cast(ch));
+ #endif
+}
+
+/**
+ * Same as std::isalpha() with the classic default C locale for portable
+ * comparisons.
+ */
+template
+inline bool isalpha(CHAR_TYPE ch,
+ std::locale const& loc = std::locale::classic())
+{
+ #if defined SUNX
+ REQUIRE(loc == std::locale::classic());
+ return ::isalpha(static_cast(ch));
+ #else
+ REQUIRE(std::has_facet >(loc));
+ return std::use_facet >(loc).is(std::ctype_base::alpha, static_cast(ch));
+ #endif
+}
+
+/**
+ * Same as std::isdigit() with the classic default C locale for portable
+ * comparisons.
+ */
+template
+inline bool isdigit(CHAR_TYPE ch,
+ std::locale const& loc = std::locale::classic())
+{
+ #if defined SUNX
+ REQUIRE(loc == std::locale::classic());
+ return ::isdigit(static_cast(ch));
+ #else
+ REQUIRE(std::has_facet >(loc));
+ return std::use_facet >(loc).is(std::ctype_base::digit, static_cast(ch));
+ #endif
+}
+
+/**
+ * Same as std::ispunct() with the classic default C locale for portable
+ * comparisons.
+ */
+template
+inline bool ispunct(CHAR_TYPE ch,
+ std::locale const& loc = std::locale::classic())
+{
+ #if defined SUNX
+ REQUIRE(loc == std::locale::classic());
+ return ::ispunct(static_cast(ch));
+ #else
+ REQUIRE(std::has_facet >(loc));
+ return std::use_facet >(loc).is(std::ctype_base::punct, static_cast(ch));
+ #endif
+}
+
+/**
+ * Same as std::isxdigit() with the classic default C locale for portable
+ * comparisons.
+ */
+template
+inline bool isxdigit(CHAR_TYPE ch,
+ std::locale const& loc = std::locale::classic())
+{
+ #if defined SUNX
+ REQUIRE(loc == std::locale::classic());
+ return ::isxdigit(static_cast(ch));
+ #else
+ REQUIRE(std::has_facet >(loc));
+ return std::use_facet >(loc).is(std::ctype_base::xdigit, static_cast(ch));
+ #endif
+}
+
+/**
+ * Same as std::isalnum() with the classic default C locale for portable
+ * comparisons.
+ */
+template
+inline bool isalnum(CHAR_TYPE ch,
+ std::locale const& loc = std::locale::classic())
+{
+ #if defined SUNX
+ REQUIRE(loc == std::locale::classic());
+ return ::isalnum(static_cast(ch));
+ #else
+ REQUIRE(std::has_facet >(loc));
+ return std::use_facet >(loc).is(std::ctype_base::alnum, static_cast(ch));
+ #endif
+}
+
+/**
+ * Same as std::isgraph() with the classic default C locale for portable
+ * comparisons.
+ */
+template
+inline bool isgraph(CHAR_TYPE ch,
+ std::locale const& loc = std::locale::classic())
+{
+ #if defined SUNX
+ REQUIRE(loc == std::locale::classic());
+ return ::isgraph(static_cast(ch));
+ #else
+ REQUIRE(std::has_facet >(loc));
+ return std::use_facet >(loc).is(std::ctype_base::graph, static_cast(ch));
+ #endif
+}
+
+/**
+ * Same as std::toupper() with the classic default C locale for portable
+ * comparisons.
+ */
+template
+inline CHAR_TYPE toupper(CHAR_TYPE ch,
+ std::locale const& loc = std::locale::classic())
+{
+ #if defined SUNX
+ REQUIRE(loc == std::locale::classic());
+ return static_cast(::toupper(static_cast(ch)));
+ #else
+ REQUIRE(std::has_facet >(loc));
+ return static_cast(
+ std::use_facet >(loc).toupper(static_cast(ch)));
+ #endif
+}
+
+/**
+ * Same as std::tolower() with the classic default C locale for portable
+ * comparisons.
+ */
+template
+inline CHAR_TYPE tolower(CHAR_TYPE ch,
+ std::locale const& loc = std::locale::classic())
+{
+ #if defined SUNX
+ REQUIRE(loc == std::locale::classic());
+ return static_cast(::tolower(static_cast(ch)));
+ #else
+ REQUIRE(std::has_facet >(loc));
+ return static_cast(
+ std::use_facet >(loc).tolower(static_cast(ch)));
+ #endif
+}
+
+}
+
+#endif
+
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAIO.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAIO.h
index 49ad0df58..ffad2dc50 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAIO.h
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAIO.h
@@ -1,26 +1,3 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
#if defined EXTERN
#undef EXTERN
#endif
@@ -47,6 +24,7 @@ EXTERN Boolean_t ReadDataFileHeader(FileStream_s *FileStream,
StringList_pa **CustomLabelBase,
StringList_pa *UserRec,
AuxData_pa *DataSetAuxData,
+ ArbParam_t AuxDataOwner,
Set_pa **IsVarCellCentered,
Boolean_t *HasText,
Boolean_t *HasGeoms,
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAIO4.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAIO4.h
index 467ca65ba..5bf968fd1 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAIO4.h
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAIO4.h
@@ -1,33 +1,10 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
#ifndef DATAIO4_H
#define DATAIO4_H
/*
******************************************************************
******************************************************************
******* ********
-****** (C) 1988-2008 Tecplot, Inc. *******
+****** (C) 1988-2010 Tecplot, Inc. *******
******* ********
******************************************************************
******************************************************************
@@ -117,6 +94,7 @@ EXTERN Boolean_t ReadInZoneHeader(FileStream_s *FileStream,
ZoneSpec_s *ZoneSpec,
Set_pa IsVarCellCentered,
EntIndex_t NumVars,
+ ArbParam_t AuxDataOwner,
Boolean_t *IsRawFNAvailable,
LgIndex_t *FNNumBndryConns);
EXTERN Boolean_t ReadInCustomLabels(FileStream_s *FileStream,
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASET.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASET.h
index 37ef3cc01..99dfe7934 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASET.h
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASET.h
@@ -1,26 +1,3 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
#ifndef DATASET_h__
#define DATASET_h__
@@ -28,7 +5,7 @@
******************************************************************
******************************************************************
******* ********
-****** (C) 1988-2008 Tecplot, Inc. *******
+****** (C) 1988-2010 Tecplot, Inc. *******
******* ********
******************************************************************
******************************************************************
@@ -76,11 +53,11 @@ void SetZoneSpecDefaults(ZoneSpec_s *ZoneSpec);
#endif
#endif
-#define GetZoneSpec(ZoneSpecList,Zone) ((ZoneSpec_s *)ArrayListGetVoidPtr(ZoneSpecList,Zone))
+#define GetZoneSpec(ZoneSpecList,Zone) (static_cast(ArrayListGetVoidPtr(ZoneSpecList,Zone)))
#define GetZoneAuxData(DataSet, Zone) (GetZoneSpec((DataSet)->ZoneSpecList, (Zone))->AuxData)
-#define GetVarSpec(VarSpecList,Var) ((VarSpec_s *)ArrayListGetVoidPtr(VarSpecList,Var))
+#define GetVarSpec(VarSpecList,Var) (static_cast(ArrayListGetVoidPtr(VarSpecList,Var)))
#define GetVarAuxData(DataSet, Var) (GetVarSpec((DataSet)->VarSpecList, (Var))->AuxData)
-#define GetStrandInfo(StrandInfoList, StrandID) ((StrandInfo_s *)ArrayListGetVoidPtr(StrandInfoList,StrandID))
+#define GetStrandInfo(StrandInfoList, StrandID) (static_cast(ArrayListGetVoidPtr(StrandInfoList,StrandID)))
#if defined TECPLOTKERNEL
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASET0.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASET0.h
index 5bae65ce3..c299ff23e 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASET0.h
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASET0.h
@@ -1,26 +1,3 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
#if defined EXTERN
#undef EXTERN
#endif
@@ -34,19 +11,20 @@
******************************************************************
******************************************************************
******* ********
-****** (C) 1988-2008 Tecplot, Inc. *******
+****** (C) 1988-2010 Tecplot, Inc. *******
******* ********
******************************************************************
******************************************************************
*/
+#if defined TECPLOTKERNEL
+/* CORE SOURCE CODE REMOVED */
+#endif
+
namespace tecplot
{
-namespace io
-{
class File;
}
-}
EXTERN void OutOfMemoryMsg(void);
@@ -64,22 +42,23 @@ EXTERN void OutOfMemoryMsg(void);
struct _FieldData_a
{
void *Data; /* ...placed first in the structure for fastest access */
-# if defined TECPLOTKERNEL
+ #if defined TECPLOTKERNEL
/* CORE SOURCE CODE REMOVED */
-# else
+ #else
void *GetValueCallback[1]; /* ...this field is for TecIO only */
void *SetValueCallback[1]; /* ...this field is for TecIO only */
-# endif
+ #endif
/* PRIVATE */
FieldDataType_e Type;
ValueLocation_e ValueLocation;
- LgIndex_t RefCount;
- LgIndex_t VarShareRefCount;
- LgIndex_t NumValues;
-# if defined TECPLOTKERNEL /* TecIO doesn't require these features yet. */
+ #if defined TECPLOTKERNEL /* TecIO doesn't require these features yet. */
/* CORE SOURCE CODE REMOVED */
-# endif
+ #endif
+ LgIndex_t NumValues;
+ #if defined TECPLOTKERNEL /* TecIO doesn't require these features yet. */
+/* CORE SOURCE CODE REMOVED */
+ #endif
};
@@ -119,8 +98,8 @@ struct _FieldData_a
#if defined TECPLOTKERNEL
/* CORE SOURCE CODE REMOVED */
#else /* ...for TecIO only */
-#define GetFieldDataGetFunction_MACRO(FieldData) ((FieldValueGetFunction_pf)(FieldData)->GetValueCallback[0])
-#define GetFieldDataSetFunction_MACRO(FieldData) ((FieldValueSetFunction_pf)(FieldData)->SetValueCallback[0])
+#define GetFieldDataGetFunction_MACRO(FieldData) (reinterpret_cast((FieldData)->GetValueCallback[0]))
+#define GetFieldDataSetFunction_MACRO(FieldData) (reinterpret_cast((FieldData)->SetValueCallback[0]))
#endif
#define GetFieldDataNumValues_MACRO(FieldData) ((FieldData)->NumValues)
#define GetFieldDataValueLocation_MACRO(FieldData) ((FieldData)->ValueLocation)
@@ -202,21 +181,21 @@ typedef UInt64_t Int64Rev_t;
#define GetFieldDataVoidPtr GetFieldDataVoidPtr_FUNC /*danger:see above*/
#endif
-#define GetFieldDataFloatPtr_MACRO(FieldData) ((float *)((FieldData)->Data))
-#define GetFieldDataFloatRevPtr_MACRO(FieldData) ((FloatRev_t *)((FieldData)->Data))
-#define GetFieldDataDoublePtr_MACRO(FieldData) ((double *)((FieldData)->Data))
-#define GetFieldDataDoubleRevPtr_MACRO(FieldData) ((DoubleRev_t *)((FieldData)->Data))
-#define GetFieldDataInt64Ptr_MACRO(FieldData) ((Int64_t *)((FieldData)->Data))
-#define GetFieldDataInt64RevPtr_MACRO(FieldData) ((Int64Rev_t *)((FieldData)->Data))
-#define GetFieldDataInt32Ptr_MACRO(FieldData) ((Int32_t *)((FieldData)->Data))
-#define GetFieldDataInt32RevPtr_MACRO(FieldData) ((Int32Rev_t *)((FieldData)->Data))
-#define GetFieldDataInt16Ptr_MACRO(FieldData) ((Int16_t *)((FieldData)->Data))
-#define GetFieldDataInt16RevPtr_MACRO(FieldData) ((Int16Rev_t *)((FieldData)->Data))
-#define GetFieldDataBytePtr_MACRO(FieldData) ((Byte_t *)((FieldData)->Data))
-#define GetFieldData2BytePtr_MACRO(FieldData) ((UInt16_t *)((FieldData)->Data))
-#define GetFieldData4BytePtr_MACRO(FieldData) ((UInt32_t *)((FieldData)->Data))
-#define GetFieldData8BytePtr_MACRO(FieldData) ((UInt64_t *)((FieldData)->Data))
-#define GetFieldDataVoidPtr_MACRO(FieldData) ((void *)((FieldData)->Data)) /*danger:see above*/
+#define GetFieldDataFloatPtr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldDataFloatRevPtr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldDataDoublePtr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldDataDoubleRevPtr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldDataInt64Ptr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldDataInt64RevPtr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldDataInt32Ptr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldDataInt32RevPtr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldDataInt16Ptr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldDataInt16RevPtr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldDataBytePtr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldData2BytePtr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldData4BytePtr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldData8BytePtr_MACRO(FieldData) (static_cast((FieldData)->Data))
+#define GetFieldDataVoidPtr_MACRO(FieldData) (static_cast((FieldData)->Data)) /*danger:see above*/
#if !defined USE_MACROS_FOR_FIELD_DATA_FUNCTIONS
EXTERN float *GetFieldDataFloatPtr_FUNC(FieldData_pa fd);
@@ -296,6 +275,8 @@ EXTERN void SwapBytesInUnalignedTypedValueArray(FieldDataType_e ValueType,
/*
* Copies values from "src" to "dst". "src" or "dst" may
* be differing types. Either or both may be V3D data pointers.
+ *
+ * NOTE: We allow src_end to be one less than src_start and is treated as a noop.
*/
EXTERN void CopyFieldDataRange(FieldData_pa dst,
LgIndex_t dst_start,
@@ -317,6 +298,9 @@ EXTERN void CopyFieldValue(FieldData_pa dst,
FieldData_pa src,
LgIndex_t srcindex);
+#if defined TECPLOTKERNEL
+/* CORE SOURCE CODE REMOVED */
+#endif
#if defined TECPLOTKERNEL
/* CORE SOURCE CODE REMOVED */
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASHR.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASHR.h
deleted file mode 100644
index 776440947..000000000
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATASHR.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
-#if defined EXTERN
-#undef EXTERN
-#endif
-#if defined DATASHRMODULE
-#define EXTERN
-#else
-#define EXTERN extern
-#endif
-
-/*
-*****************************************************************
-*****************************************************************
-******* ********
-****** Copyright (C) 1988-2008 Tecplot, Inc. *******
-******* ********
-*****************************************************************
-*****************************************************************
-*/
-
-#if defined TECPLOTKERNEL
-/* CORE SOURCE CODE REMOVED */
-#endif /* TECPLOTKERNEL */
-
-/*
- * General set of macros for reference count mananagement.
- */
-#define IncStructureReference(V) ((V)->RefCount++)
-#define DecStructureReference(V) ((V)->RefCount--)
-#define IsStructureShared(V) ((V)->RefCount > 1)
-#define IsStructureReferenced(V) ((V)->RefCount > 0)
-
-/*
- * Special set of macros for field data that is having variable sharing between
- * zones tracked. Field data maintains two reference counts: The first,
- * RefCount, is used to keep track of when the field data needs to be
- * deallocated; the second, VarShareRefCount, is used to track variable sharing
- * between zones.
- */
-#define IncVarStructureReference(V) ((V)->VarShareRefCount++)
-#define DecVarStructureReference(V) ((V)->VarShareRefCount--)
-#define IsVarStructureShared(V) ((V)->VarShareRefCount > 1)
-#define IsVarStructureReferenced(V) ((V)->VarShareRefCount > 0)
-
-
-#if defined TECPLOTKERNEL
-/* CORE SOURCE CODE REMOVED */
-#endif /* TECPLOTKERNEL */
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAUTIL.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAUTIL.h
index e76c977ca..24f2d5fe8 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAUTIL.h
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/DATAUTIL.h
@@ -1,26 +1,3 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
/*
* DATAUTIL.h : COPYRIGHT (C)1987-2002 Tecplot, Inc.
* ALL RIGHTS RESERVED
@@ -76,6 +53,10 @@ extern void InitInputSpecs(void);
* @param UserRec
* Allocates space for and returns the user records.
*
+ * @param DatasetAuxData
+ * Allocates space for and returns Dataset Auxiliary Data. This must be
+ * deallocated with AuxDataDealloc.
+ *
* @param RawDataspaceAllocated
* Only used if GetHeaderInfoOnly is FALSE. TRUE = calling program has alloced space for
* the raw data. FALSE= let ReadTec allocate space for the raw data.
@@ -104,6 +85,7 @@ LIBFUNCTION Boolean_t STDCALL ReadTec(Boolean_t GetHeaderInfoOnly,
LgIndex_t **NumPtsK,
ZoneType_e **ZoneType,
StringList_pa *UserRec,
+ AuxData_pa *DatasetAuxData,
Boolean_t RawDataspaceAllocated,
NodeMap_t ***NodeMap,
double ***VDataBase);
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/FACE.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/FACE.h
index 487b1c6c7..87b3cf3d4 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/FACE.h
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/FACE.h
@@ -1,31 +1,8 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
/*
******************************************************************
******************************************************************
******* ********
-****** (C) 1988-2008 Tecplot, Inc. *******
+****** (C) 1988-2010 Tecplot, Inc. *******
******* ********
******************************************************************
******************************************************************
@@ -112,7 +89,8 @@ EXTERN FaceObscuration_e GetFaceObscuration(CZInfo_s const* CZInfo,
LgIndex_t FOffset,
Boolean_t ConsiderValueBlanking,
Boolean_t ConsiderIJKBlanking,
- Boolean_t ConsiderDepthBlanking);
+ Boolean_t ConsiderDepthBlanking,
+ Boolean_t ConsiderClipBlanking);
EXTERN EntIndex_t GetNodesPerElementFace(ZoneType_e ZoneType);
@@ -121,6 +99,20 @@ EXTERN EntIndex_t GetFacesPerElement(ZoneType_e ZoneType,
LgIndex_t JMax,
LgIndex_t KMax);
+/**
+ * @param Points must have MAX_NODES_PER_FACE elements.
+ * @param UniquePoints must have MAX_NODES_PER_FACE elements.
+ * This array is populated with the unique points
+ * from the input Points array. Values beyond NumUniquePoints-1 may
+ * be uninitialized and should not be accessed.
+ * @param NumUniquePoints - This value is populated the number of unique
+ * points that were placed in the UniquePoints array.
+ * @param Is3D is used to help determine if two points are coincident.
+ */
+EXTERN void GetUniquePoints(XYZ_s const Points[],
+ XYZ_s UniquePoints[],
+ SmInteger_t& NumUniquePoints,
+ Boolean_t Is3D);
EXTERN CollapsedStatus_e GetSurfaceCellCollapsedStatus(CZInfo_s const* CZInfo,
CZData_s const* CZData,
tecplot::kernel::SubElemValueProducerInterface* SubElemValueProducer);
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/FILESTREAM.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/FILESTREAM.h
index 65b6f5b93..af6578ef9 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/FILESTREAM.h
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/FILESTREAM.h
@@ -1,31 +1,8 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
/*
*****************************************************************
*****************************************************************
******* ********
- ****** Copyright (C) 1988-2008 Tecplot, Inc. *******
+ ****** Copyright (C) 1988-2010 Tecplot, Inc. *******
******* ********
*****************************************************************
*****************************************************************
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GEOM.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GEOM.h
index e470744c6..88e1cba28 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GEOM.h
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GEOM.h
@@ -1,31 +1,8 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
/*
*****************************************************************
*****************************************************************
******* ********
-****** Copyright (C) 1988-2008 Tecplot, Inc. *******
+****** Copyright (C) 1988-2010 Tecplot, Inc. *******
******* ********
*****************************************************************
*****************************************************************
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GEOM2.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GEOM2.h
index 0a8078e96..55ab64aa5 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GEOM2.h
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GEOM2.h
@@ -1,31 +1,8 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
/*
*****************************************************************
*****************************************************************
******* ********
-****** Copyright (C) 1988-2008 Tecplot, Inc. *******
+****** Copyright (C) 1988-2010 Tecplot, Inc. *******
******* ********
*****************************************************************
*****************************************************************
diff --git a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GLOBAL.h b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GLOBAL.h
index 6c467de12..526c377a0 100644
--- a/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GLOBAL.h
+++ b/applications/utilities/postProcessing/dataConversion/foamToTecplot360/tecio/tecsrc/GLOBAL.h
@@ -1,26 +1,3 @@
-/*
- * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
- *
- * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
- *
- * Tecplot hereby grants OpenCFD limited authority to distribute without
- * alteration the source code to the Tecplot Input/Output library, known
- * as TecIO, as part of its distribution of OpenFOAM and the
- * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
- * granted access to the TecIO source code, and may redistribute it for the
- * purpose of maintaining the converter. However, no authority is granted
- * to alter the TecIO source code in any form or manner.
- *
- * This limited grant of distribution does not supersede Tecplot, Inc.'s
- * copyright in TecIO. Contact Tecplot, Inc. for further information.
- *
- * Tecplot, Inc.
- * 3535 Factoria Blvd, Ste. 550
- * Bellevue, WA 98006, USA
- * Phone: +1 425 653 1200
- * http://www.tecplot.com/
- *
- */
/* BEGINREMOVEFROMADDON */
/* NOTE: All code contained between comments that look like
* BEGINREMOVEFROMADDON
@@ -33,7 +10,7 @@
******************************************************************
******************************************************************
******* ********
-****** (C) 1988-2008 Tecplot, Inc. *******
+****** (C) 1988-2010 Tecplot, Inc. *******
******* ********
******************************************************************
******************************************************************
@@ -95,8 +72,8 @@
#undef TRUNC
#endif
-#define TRUE ((Boolean_t)1)
-#define FALSE ((Boolean_t)0)
+#define TRUE (static_cast(1))
+#define FALSE (static_cast(0))
/****************************************************************
* *
@@ -107,11 +84,11 @@
#define MAX(X,Y) ((X) > (Y) ? (X) : (Y) )
#define MIN(X,Y) ((X) < (Y) ? (X) : (Y) )
#define BESTSHOWCOLOR(X) ((X) == White_C ? Black_C : White_C)
-#define ROUND_TO_BYTE(X) ((BYTE)((X)+0.499))
-#define ROUNDS(X) ((short)((X)+0.499))
-#define ROUNDL(X) ((LgIndex_t)((X)+0.499))
-#define ROUND2(X) ((X) >= 0 ? ((int)((X)+0.499)) : ((int)((X)-0.499)))
-#define TRUNC(X) ((short) (X))
+#define ROUND_TO_BYTE(X) (static_cast((X)+0.499))
+#define ROUNDS(X) (static_cast((X)+0.499))
+#define ROUNDL(X) (static_cast((X)+0.499))
+#define ROUND2(X) ((X) >= 0 ? (static_cast((X)+0.499)) : (static_cast((X)-0.499)))
+#define TRUNC(X) (static_cast((X)))
#define RAD_TO_DEG(rad) (180.*(rad)/PI)
#define DEG_TO_RAD(deg) (PI*(deg)/180.)
@@ -122,7 +99,7 @@
#if defined TECPLOTKERNEL && defined MSWIN
/* CORE SOURCE CODE REMOVED */
#else
-#define ISEMPTYSTRING(S) ( ((const char*)(S))[0] == '\0' )
+#define ISEMPTYSTRING(S) ( (static_cast((S)))[0] == '\0' )
#endif
#define ISWHITESPACE(C) ((C == ' ') || (C == '\t') || (C == '\n'))
@@ -130,7 +107,7 @@
/* clamp the input to the specified range */
#define CLAMP(value,low,high) ((value)<(low) ? (low) : (value) > (high) ? (high) : (value))
/* integer division rounds any fraction up (for example n=16,d=3 results in 6) */
-#define INTEGER_DIVIDE_AND_ROUND_UP(n, d) (((int)(n)+(int)(d)-1)/(int)(d))
+#define INTEGER_DIVIDE_AND_ROUND_UP(n, d) ((static_cast(n)+static_cast(d)-1)/static_cast(d))
/* BEGINREMOVEFROMADDON */
/**
@@ -188,7 +165,7 @@
/* */
#define SWITCH(Type,A,B) do {Type T = (A); (A) = (B); (B) = T;} while (FALSE)
#define SWITCH_DOUBLES(A,B) SWITCH(double, (A), (B))
-#define FPRINTFOK(x) (Boolean_t)((x) > 0)
+#define FPRINTFOK(x) static_cast((x) > 0)
#define GRAPHICSARE3D(F) ((F->PlotType == PlotType_Cartesian3D))
/* convenience macros for implication, P -> Q, and equivalence, P <-> Q. */
@@ -199,7 +176,7 @@
#if defined UNUSED
#undef UNUSED
#endif
-#define UNUSED(param) (void)param
+#define UNUSED(param) static_cast(param)
/**
* Converts a double into a float value
@@ -210,15 +187,15 @@
#define CONVERT_DOUBLE_TO_FLOAT(val) \
( (val) >= SMALLFLOAT \
? ( (val) < LARGEFLOAT \
- ? (float)(val) \
- : (float)LARGEFLOAT \
+ ? static_cast((val)) \
+ : static_cast(LARGEFLOAT) \
) \
: ( (val) <= -SMALLFLOAT \
? ( (val) > -LARGEFLOAT \
- ? (float)(val) \
- : (float)-LARGEFLOAT \
+ ? static_cast((val)) \
+ : static_cast(-LARGEFLOAT) \
) \
- : (float)0.0 \
+ : static_cast(0.0) \
) \
)
@@ -232,15 +209,15 @@
#define CLAMP_DOUBLE(val) \
( (val) >= SMALLDOUBLE \
? ( (val) < LARGEDOUBLE \
- ? (double)(val) \
- : (double)LARGEDOUBLE \
+ ? static_cast((val)) \
+ : static_cast(LARGEDOUBLE) \
) \
: ( (val) <= -SMALLDOUBLE \
? ( (val) > -LARGEDOUBLE \
- ? (double)(val) \
- : (double)-LARGEDOUBLE \
+ ? static_cast((val)) \
+ : static_cast(-LARGEDOUBLE) \
) \
- : (double)0.0 \
+ : static_cast(0.0) \
) \
)
@@ -254,15 +231,15 @@
#define CONVERT_DOUBLE_TO_INT32(val) \
( (val) >= 1.0 \
? ( (val) < MAXINT32 \
- ? (Int32_t)(val) \
- : (Int32_t)MAXINT32 \
+ ? static_cast((val)) \
+ : static_cast(MAXINT32) \
) \
: ( (val) <= -1.0 \
- ? ( (val) > (Int32_t)-MAXINT32 \
- ? (Int32_t)(val) \
- : (Int32_t)-MAXINT32 \
+ ? ( (val) > static_cast(-MAXINT32) \
+ ? static_cast((val)) \
+ : static_cast(-MAXINT32) \
) \
- : (Int32_t)0.0 \
+ : static_cast(0.0) \
) \
)
@@ -276,15 +253,15 @@
#define CONVERT_DOUBLE_TO_INT16(val) \
( (val) >= 1.0 \
? ( (val) < MAXINT16 \
- ? (Int16_t)(val) \
- : (Int16_t)MAXINT16 \
+ ? static_cast((val)) \
+ : static_cast(MAXINT16) \
) \
: ( (val) <= -1.0 \
- ? ( (val) > (Int16_t)-MAXINT16 \
- ? (Int16_t)(val) \
- : (Int16_t)-MAXINT16 \
+ ? ( (val) > static_cast(-MAXINT16) \
+ ? static_cast((val)) \
+ : static_cast(-MAXINT16) \
) \
- : (Int16_t)0.0 \
+ : static_cast(0.0) \
) \
)
@@ -301,8 +278,8 @@
do { \
/* cannot check sizeof(SrcBuffer) or sizeof(DstBuffer) because they are */ \
/* most likely single byte pointers into unaligned blocks of data */ \
- ((Byte_t *)(DstBuffer))[0] = ((Byte_t *)(SrcBuffer))[0]; \
- ((Byte_t *)(DstBuffer))[1] = ((Byte_t *)(SrcBuffer))[1]; \
+ (reinterpret_cast((DstBuffer)))[0] = (reinterpret_cast((SrcBuffer)))[0]; \
+ (reinterpret_cast((DstBuffer)))[1] = (reinterpret_cast((SrcBuffer)))[1]; \
} while (FALSE)
/**
@@ -318,8 +295,8 @@
do { \
/* cannot check sizeof(SrcBuffer) or sizeof(DstBuffer) because they are */ \
/* most likely single byte pointers into unaligned blocks of data */ \
- ((Byte_t *)(DstBuffer))[0] = ((Byte_t *)(SrcBuffer))[1]; \
- ((Byte_t *)(DstBuffer))[1] = ((Byte_t *)(SrcBuffer))[0]; \
+ (reinterpret_cast((DstBuffer)))[0] = (reinterpret_cast((SrcBuffer)))[1]; \
+ (reinterpret_cast((DstBuffer)))[1] = (reinterpret_cast((SrcBuffer)))[0]; \
} while (FALSE)
/**
@@ -335,10 +312,10 @@
do { \
/* cannot check sizeof(SrcBuffer) or sizeof(DstBuffer) because they are */ \
/* most likely single byte pointers into unaligned blocks of data */ \
- ((Byte_t *)(DstBuffer))[0] = ((Byte_t *)(SrcBuffer))[0]; \
- ((Byte_t *)(DstBuffer))[1] = ((Byte_t *)(SrcBuffer))[1]; \
- ((Byte_t *)(DstBuffer))[2] = ((Byte_t *)(SrcBuffer))[2]; \
- ((Byte_t *)(DstBuffer))[3] = ((Byte_t *)(SrcBuffer))[3]; \
+ (reinterpret_cast((DstBuffer)))[0] = (reinterpret_cast((SrcBuffer)))[0]; \
+ (reinterpret_cast((DstBuffer)))[1] = (reinterpret_cast((SrcBuffer)))[1]; \
+ (reinterpret_cast((DstBuffer)))[2] = (reinterpret_cast((SrcBuffer)))[2]; \
+ (reinterpret_cast((DstBuffer)))[3] = (reinterpret_cast((SrcBuffer)))[3]; \
} while (FALSE)
/**
@@ -354,10 +331,10 @@
do { \
/* cannot check sizeof(SrcBuffer) or sizeof(DstBuffer) because they are */ \
/* most likely single byte pointers into unaligned blocks of data */ \
- ((Byte_t *)(DstBuffer))[0] = ((Byte_t *)(SrcBuffer))[3]; \
- ((Byte_t *)(DstBuffer))[1] = ((Byte_t *)(SrcBuffer))[2]; \
- ((Byte_t *)(DstBuffer))[2] = ((Byte_t *)(SrcBuffer))[1]; \
- ((Byte_t *)(DstBuffer))[3] = ((Byte_t *)(SrcBuffer))[0]; \
+ (reinterpret_cast((DstBuffer)))[0] = (reinterpret_cast((SrcBuffer)))[3]; \
+ (reinterpret_cast((DstBuffer)))[1] = (reinterpret_cast((SrcBuffer)))[2]; \
+ (reinterpret_cast((DstBuffer)))[2] = (reinterpret_cast((SrcBuffer)))[1]; \
+ (reinterpret_cast((DstBuffer)))[3] = (reinterpret_cast((SrcBuffer)))[0]; \
} while (FALSE)
/**
@@ -373,14 +350,14 @@
do { \
/* cannot check sizeof(SrcBuffer) or sizeof(DstBuffer) because they are */ \
/* most likely single byte pointers into unaligned blocks of data */ \
- ((Byte_t *)(DstBuffer))[0] = ((Byte_t *)(SrcBuffer))[0]; \
- ((Byte_t *)(DstBuffer))[1] = ((Byte_t *)(SrcBuffer))[1]; \
- ((Byte_t *)(DstBuffer))[2] = ((Byte_t *)(SrcBuffer))[2]; \
- ((Byte_t *)(DstBuffer))[3] = ((Byte_t *)(SrcBuffer))[3]; \
- ((Byte_t *)(DstBuffer))[4] = ((Byte_t *)(SrcBuffer))[4]; \
- ((Byte_t *)(DstBuffer))[5] = ((Byte_t *)(SrcBuffer))[5]; \
- ((Byte_t *)(DstBuffer))[6] = ((Byte_t *)(SrcBuffer))[6]; \
- ((Byte_t *)(DstBuffer))[7] = ((Byte_t *)(SrcBuffer))[7]; \
+ (reinterpret_cast((DstBuffer)))[0] = (reinterpret_cast((SrcBuffer)))[0]; \
+ (reinterpret_cast((DstBuffer)))[1] = (reinterpret_cast((SrcBuffer)))[1]; \
+ (reinterpret_cast((DstBuffer)))[2] = (reinterpret_cast((SrcBuffer)))[2]; \
+ (reinterpret_cast((DstBuffer)))[3] = (reinterpret_cast((SrcBuffer)))[3]; \
+ (reinterpret_cast((DstBuffer)))[4] = (reinterpret_cast((SrcBuffer)))[4]; \
+ (reinterpret_cast((DstBuffer)))[5] = (reinterpret_cast((SrcBuffer)))[5]; \
+ (reinterpret_cast((DstBuffer)))[6] = (reinterpret_cast((SrcBuffer)))[6]; \
+ (reinterpret_cast((DstBuffer)))[7] = (reinterpret_cast((SrcBuffer)))[7]; \
} while (FALSE)
/**
@@ -396,14 +373,14 @@
do { \
/* cannot check sizeof(SrcBuffer) or sizeof(DstBuffer) because they are */ \
/* most likely single byte pointers into unaligned blocks of data */ \
- ((Byte_t *)(DstBuffer))[0] = ((Byte_t *)(SrcBuffer))[7]; \
- ((Byte_t *)(DstBuffer))[1] = ((Byte_t *)(SrcBuffer))[6]; \
- ((Byte_t *)(DstBuffer))[2] = ((Byte_t *)(SrcBuffer))[5]; \
- ((Byte_t *)(DstBuffer))[3] = ((Byte_t *)(SrcBuffer))[4]; \
- ((Byte_t *)(DstBuffer))[4] = ((Byte_t *)(SrcBuffer))[3]; \
- ((Byte_t *)(DstBuffer))[5] = ((Byte_t *)(SrcBuffer))[2]; \
- ((Byte_t *)(DstBuffer))[6] = ((Byte_t *)(SrcBuffer))[1]; \
- ((Byte_t *)(DstBuffer))[7] = ((Byte_t *)(SrcBuffer))[0]; \
+ (reinterpret_cast((DstBuffer)))[0] = (reinterpret_cast