linking tecio library in linux fortran mpif90

Creating Tecplot binary data files

Moderators: davetaflin, salter, steve, jprenaud, straton, Chris Idso

paradism
Newbie
Posts: 2
Joined: Mon Aug 25, 2014 5:22 pm
Location: Korea

linking tecio library in linux fortran mpif90

Postby paradism » Mon Apr 13, 2015 11:00 pm

My code is written in fortran. I was using the tecio library in Window using Visual Studio and Intel Fortran Composer.
I used the tecio library by writing in my code as follows:

!DEC$ OBJCOMMENT LIB:"tecio.lib"
include 'tecio.f90'

It worked well. I could generate my own binary files from my code for tecplot.


1. Now I am about to move the fortran code into a linux system. In regard with linking the TECIO in linux FORTRAN, it seems that there is not enough information in the manual.


2. Tecplot is installed in /usr/local/tecplot360ex directory. Tecplot related information in .bash_profile is

############### License Setting Part ######################
export INTEL_LICENSE_FILE=/usr/local/intel/licenses/intelxe2015.lic
export LD_LIBRARY_PATH=$MPICH/lib:$TEC/lib:$LD_LIBRARY_PATH
###########################################################

############### The Others Setting Part ###################
export TEC=/usr/local/tecplot360ex





Questions

1) Do I have to link it by using a compiling option? how should I used the option (for example) ?
2) Or do I have to set the path? What sort of path should be written?

Svetlana
Expert
Posts: 93
Joined: Sun Dec 22, 2013 3:08 pm
Location: Australia
Contact:

Re: linking tecio library in linux fortran mpif90

Postby Svetlana » Sun May 03, 2015 9:39 pm

Although upon reading the question I would suggest to use the -I switch of the compiler, a few resources suggest appending "-lstdc++" to the compile line without using the -I switch. Please try to compile your stuff and show what error you get for what compile command run.


Return to “TecIO Library”

Who is online

Users browsing this forum: No registered users and 3 guests