Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29267 Discussions

implementation of the graphic library (DISLIN) to intel visual fortran 9.1

krecmer
Beginner
3,068 Views
We need to plot graphs in our programs. I found the DISLIN library, but the implementation of this library wasn't successful.
Does the intel offer a library like DISLIN?
Thank.
0 Kudos
14 Replies
andi_zuend
Beginner
3,068 Views
Hi, I make extensive use of the DISLIN plotting library using intel visual fortran. I had troubles in the beginning as well.
You need to download and install the version for compilers "Intel compilers icl, ifort (wrapper)".
If you use Windows, don't forget to manually set the environmental variables as described in the readme.inf file. Using MS Visual Studio (2005 or 2008) it helped to add the following dislin files to your fortran project: disifl_d.lib, disifm_d.lib, and the module dislin.f90. Those files are located in the dislin installation folder. It might also be necessary to exclude the following library in the linker step of your project properties: ->input ->Ignore Specific Library: libc.lib. This works fine with my projects using Visual Studio 2008 and IVF 10.1.
Best,
Andi
0 Kudos
krecmer
Beginner
3,068 Views
Hi Andi, thank you for your answer.
I downloaded the dl_93_if.zip, but I have the intel visual fortran 9.1 not the 9.3.
Is this version compatible with my fortran version?
I instaled the dislin to C:dislin and I made the enviroment variable DISLIN with value c:dislin
and I inserted the c:dislinwin to PATH variable.
I don't know how to include the disifl_d.lib, disifm_d.lib, and the module dislin.f90 to my console aplication project.

Noro


0 Kudos
andi_zuend
Beginner
3,068 Views
For the use of Dislin with IVF 9.1 you need to install the "Intel compilers icl, ifort (wrapper)" version, thus, dl_93_ic.zip (not the dl_93_if.zip !!).

9.3 is the version of Dislin and has nothing to do with your IVF version.

Once you installed the right Dislin version, you will find the files disifl_d.lib and disifm_d.lib in the folder "C:dislin" and the file dislin.f90 in folder "C:dislinifc" .

Note: the *_d.lib library files are for the use of double precision (real(8)) floating point variables. If you want to use real(4) variables, use the equivalent libraries without the "_d" in the filename.

In case you use MS Visual Studio for your Fortran project, then just add the mentioned files to your project source files list (Project > Add Existing Item > e.g., disifl_d.lib).

Andi
0 Kudos
krecmer
Beginner
3,068 Views

I have done everything what you told me, but without success.

I created new project (console application) and I included the example file from c:dislinexamplesexa_f90.f90 to source files in console project.

I dont knew where an how shall I put the files (disifl_d.lib, disifm_d.lib and dislin.f09) also to source files in console project.

But after building many errors. L

0 Kudos
krecmer
Beginner
3,068 Views

I tried to install the DISLIN in other fortran version. When I run the examples In this version the DISLIN works correctly.

But by using intel version with MVS2005 shows me this error: This application has failed to start because mspdb80.dll was not found.

0 Kudos
Steven_L_Intel1
Employee
3,068 Views
Install VS2005 Service Pack 1 from Microsoft. I would expect that you would see this problem any time you try to run a program under the debugger.
0 Kudos
andi_zuend
Beginner
3,068 Views
I attached a small MS Visual Studio (2008), IVF 10.1 solution for the Dislin examples.

If you are unable to open the solution with older versions of Visual Studio, here are the command line switches used in the Fortran Project Properties:

/nologo /gen-interfaces /warn:interfaces /real_size:64 /module:"Release/" /object:"Release/" /winapp /c

important is the "real_size:64" when using the double precision Dislin libraries.

In the Linker options ckeck this: Linker > Input > Ignore Specific Library: libc.lib

This solution should work assuming that you installed Dislin to the default path (c:dislin).

Best,
Andi
0 Kudos
krecmer
Beginner
3,068 Views

Andy, Do you knew any other library for displaying science data? Doesn't Intel offer a library for data displaying?

The MKL and IMSL dont offer mentioned features.

0 Kudos
Steven_L_Intel1
Employee
3,068 Views
There is a "SCIGRAPH" 2-D plotting library provided under SamplesQuickWin. There is also the Intel Array Visualizer, which is available as a free but unsupported download (see its own forum section.)
0 Kudos
krecmer
Beginner
3,068 Views

Dear misters,

I tried everything what you have wrote but without success.

I have VS2005 with a c++ and intel fortran 9.1.

I installed the dl_93_ic.zip and I included variable DISLIN with parameter c:dislin and to variable path I included c:dislinwin

Then I was trying to run the example: c:dislinexamplesF90LINK -a exa_f90

Without a response.

Then I tried recompile 'dislin.f90' in the directory DISLINifc with your compiler

version (i.e. ifort -c dislin.f90).

answer: ifort: warning: Microsoft visual c++ not found in path.

What does it mean?

When I installed the DISLIN in Compaq fortran wasnt problem and the example program was running correctly.

Please help, I need to use new version of fortran

0 Kudos
andi_zuend
Beginner
3,068 Views
There are other possibilities to produce nice scientific plots from Fortran output, e.g., by just writing your data output to files and use another program like Matlab or Origin to actually plot it. However, I like the well documented and diverse plotting abilities of Dislin supporting many different vector and pixel graphics formats - and also its freeware for non-commercial use.

Did you try the Dislin example solution I attached in the last post? What are the errors exactly that you get?

Did you recompile the dislin.f90 using the command line or in Visual Studio?

I used Dislin also with VS2005 and older Intel Fortran Versions (9.x) without problems - once I figured out which compiler and linker settings to use. Maybe you can attach an example solution done with your settings, so I could see what is probably missing.
0 Kudos
g_f_thomas
Beginner
3,068 Views

The dislin installation and user's guide for Windows is opaque and needs to bereworked by someonemore fluent in English,more familiar with the Windows OS, and more used to running a Fortran compiler that integrates with Visual Studio than they believe themselves to be. Ditto for MKL.

I recommend Gnuplot which is free even for commercial use.

Gerry

0 Kudos
krecmer
Beginner
3,068 Views

hi Andi,

I dont know what was happened.

Problem is with link.exe.

This application has failed to start because mspdb80.dll was not found. Reinstall the application may fix this problem.

I reinstalled everything but without changes.

0 Kudos
Steven_L_Intel1
Employee
3,068 Views
Please install Visual Studio 2005 Service Pack 1 to fix the mspdb80.dll problem.
0 Kudos
Reply