Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference

h.eng.cam.ac.uk
from h.eng.cam.ac.uk More from this publisher
12.07.2015 Views

2 Intel Fortran Libraries ReferenceSee Also: “RAISEQQ”, “SIGNALQQ”ExampleLCWRQQUSE IFPORTinteger(4) id_number, sig_val, istatid_number=getpid( )ISTAT = KILL (id_number, sig_val)Portability Subroutine: Sets the value of the floating-point processor control word.Module: USE IFPORTSyntaxCALL LCWRQQ (controlword)controlword(Input) INTEGER(2). Floating-point processor control word.LCWRQQ performs the same function as the run-time subroutine SETCONTROLFPQQ and isprovided for compatibility.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “SETCONTROLFPQQ”ExampleUSE IFPORTINTEGER(2) controlCALL SCWRQQ(control) ! get control word! Set control word to make processor round upcontrol = control .AND. (.NOT. FPCW$MCW_RC) ! Clear! control word with inverse! of rounding control maskcontrol = control .OR. FPCW$UP ! Set control word! to round upCALL LCWRQQ(control)WRITE (*, 9000) 'Control word: ', control9000 FORMAT (1X, A, Z4)END2-190

Descriptions of the Library Routines 2LINETO, LINETO_WGraphics Function: Draws a line from the current graphics position up to and including the endpoint. This function is only available on Windows* systems.Module: USE IFQWINSyntaxresult = LINETO (x, y)result = LINETO_W (wx, wy)x, y(Input) INTEGER(2). Viewport coordinates of end point.wx, wy(Input) REAL(8). Window coordinates of end point.Results:The result type is INTEGER(2). The result is a nonzero value if successful; otherwise, 0.The line is drawn using the current graphics color, logical write mode, and line style. The graphicscolor is set with SETCOLORRGB, the write mode with SETWRITEMODE, and the line stylewith SETLINESTYLE.If no error occurs, LINETO sets the current graphics position to the viewport point (x, y), andLINETO_W sets the current graphics position to the window point (wx, wy).If you use FLOODFILLRGB to fill in a closed figure drawn with LINETO, the figure must bedrawn with a solid line style. Line style is solid by default and can be changed withSETLINESTYLE.NOTE. The LINETO routine described here is a QuickWin routine. If you aretrying to use the Microsoft* Platform SDK version of the LineTo routine byincluding the IFWIN module, you need to specify the routine name asMSFWIN$LineTo. For more information, see "Special Naming Conventionfor Certain QuickWin and Win32 Graphics Routines" in your user’s guide.CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICSSee Also: “GETCURRENTPOSITION, GETCURRENTPOSITION_W”, “GETLINESTYLE”,“GRSTATUS”, “MOVETO, MOVETO_W”, “POLYGON, POLYGON_W”, “POLYLINEQQ”,“SETLINESTYLE”, “SETWRITEMODE”2-191

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>See Also: “RAISEQQ”, “SIGNALQQ”ExampleLCWRQQUSE IFPORTinteger(4) id_number, sig_val, istatid_number=getpid( )ISTAT = KILL (id_number, sig_val)Portability Subroutine: Sets the value of the floating-point processor control word.Module: USE IFPORTSyntaxCALL LCWRQQ (controlword)controlword(Input) INTEGER(2). Floating-point processor control word.LCWRQQ performs the same function as the run-time subroutine SETCONTROLFPQQ and isprovided for compatibility.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “SETCONTROLFPQQ”ExampleUSE IFPORTINTEGER(2) controlCALL SCWRQQ(control) ! get control word! Set control word to make processor round upcontrol = control .AND. (.NOT. FPCW$MCW_RC) ! Clear! control word with inverse! of rounding control maskcontrol = control .OR. FPCW$UP ! Set control word! to round upCALL LCWRQQ(control)WRITE (*, 9000) 'Control word: ', control9000 FORMAT (1X, A, Z4)END2-190

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!