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

IVF Compiler and Salford Code Compatibility

postaquestion
Novice
501 Views

We have developed aFortran programwith Salford Compiler. Now we want to transport to Intel Fortran Compiler. Is yourcompiler is compatible with code written with Salford, particularly the graphics?

Thank you.

0 Kudos
2 Replies
TimP
Honored Contributor III
501 Views
If you use 3rd party graphics support, you will likely need the ifort compatible version of that application. If you use .net extensions, you may not find direct support for it in ifort. Otherwise, you should have reasonable compatibility. Did you check the hints on www.polyhedron.com ?
0 Kudos
joerg_kuthe
Novice
501 Views

The Salford FTN95 (or do you mean FTN77?) runtime functions are different from those of IVF. In particular, this is true for the graphics functions. However since these graphics functions are quite basic, you can map them on those supplied with IVF. For example:

For example FTN comes with

SUBROUTINEDRAW_LINE_BETWEEN@(IX1,IY1,IX2,IY2,ICOL)
INTEGERIX1,IY1,IX2,IY2,ICOL

which draws a straight line. In IVF you find those QuickWin graphics routines that you can use. For example:

CALL MOVETO (x, y, t)

sets the current graphics position.

result = LINETO (x, y)

draws a line from the current point to the one specified.

To set the color you might want to use

result = SETCOLORRGB (color)

To define an appropriate coordinate system you have several options in IVF (seeSETWINDOWCONFIG, SETVIEWORG,for example).

This shouldn't be too difficulat. There is one drawback I have to mention: QuickWin graphics can be printed in "pixel mode" only. FTN's graphics prints in "vector mode" thus QuickWin graphics sent to a printer doesn't give you the quality that FTN graphics provides. If this is an k.o. criterium, thanyou might want to consider to buy graphics package like GINO orWinteracter. These have also simple routines that you can use for the mapping but then regarding printing they providebetter results.

However, if you have embedded your graphics in a FTN/ClearWin application there is no easy way to map this.

Hope this helps.

Kind regards

Jrg Kuthe
QT software GmbH, Berlin, Germany
www.qtsoftware.de


0 Kudos
Reply