2 C Simple example fortran program to write a
3 C binary datafile for tecplot. This example
6 C 1. Open a datafile called "t.plt"
7 C 2. Assign values for X,Y, and P
8 C 3. Write out a zone dimensioned 4x5
9 C 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 C... Open the file and write the tecplot datafile
48 C... header information.
50 I
= TecIni112
('SIMPLE DATASET'//NULLCHR
,
65 C... Write the zone header information.
67 I
= TecZne112
('Simple Zone'//NULLCHR
,
89 C... Write out the field data.
92 I
= TecDat112
(III
,X
,0)
93 I
= TecDat112
(III
,Y
,0)
94 I
= TecDat112
(III
,P
,0)