2 ! Simple example fortran program to write a
3 ! binary datafile for tecplot. This example
6 ! 1. Open a datafile called "t.plt"
7 ! 2. Assign values for X,Y, and P
8 ! 3. Write out a zone dimensioned 4x5
9 ! 4. Close the datafile.
17 Integer*4 Debug
,III
,NPts
,NElm
19 Dimension X(4,5), Y(4,5), P(4,5)
21 Integer*4 VIsDouble
, FileType
22 Integer*4 ZoneType
,StrandID
,ParentZn
,IsBlock
23 Integer*4 ICellMax
,JCellMax
,KCellMax
,NFConns
,FNMode
,ShrConn
24 POINTER (NullPtr
,Null
)
47 !... Open the file and write the tecplot datafile
48 !... header information.
50 I
= TecIni112('SIMPLE DATASET'//NULLCHR
, &
65 !... Write the zone header information.
67 I
= TecZne112('Simple Zone'//NULLCHR
, &
89 !... Write out the field data.
92 I
= TecDat112(III
,X
,0)
93 I
= TecDat112(III
,Y
,0)
94 I
= TecDat112(III
,P
,0)