|
ACCESSING TECPLOT
USING THE POSIX
LIBRARY FUNCTIONS
In the previous lab the user was able to access the matlab program from
an f90 code, similarly using the "POSIX" functions that allow the C,
C++, f77 and f90 to interface with unix command line operations the
tecplot program can be invoked from the f90 source code. In this
example the program is "code.x" is executed with a second argument
which is the tecplot .plt file that needs to be opened. The program
calls the tecplot program using the second argument as the input file.
Download this snippet of a code along with the airfoil.plt file. Place
the files in their appropriate directories.
NOTE: When using the intel compiler v71 ( the current one) the -Vaxlib
libraries need to accessed when linking the code.
Build
the executable
|
<bash>
ifc -w
-g main.f90
-o ../bin/code.x -Vaxlib
|
execute
the code
|
<bash>
cd
../bin/
<bash> ./code.x ../dat/airfoil.plt
|
|