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 ReferenceCompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBExampleThis program draws the arc shown below.USE IFQWININTEGER(2) status, x1, y1, x2, y2, x3, y3, x4, y4x1 = 80; y1 = 50x2 = 240; y2 = 150x3 = 120; y3 = 75x4 = 90; y4 = 180status = ARC( x1, y1, x2, y2, x3, y3, x4, y4 )END(x1,y1)(x3,y3)Center of arc = centerof bounding rectangle(x4,y4)(x2,y2)AUTOAddArgAUTO Subroutine: Passes an argument name and value and adds the argument to the argumentlist data structure. This subroutine is only available on Windows* systems on IA-32 processors.Modules: USE IFAUTO, USE IFWINTYSyntaxCALL AUTOAddArg (invoke_args, name, value [, intent_arg] [, type])invoke_argsThe argument list data structure. Must be of type INTEGER(4).nameThe argument’s name of type CHARACTER*(*).2-10

Descriptions of the Library Routines 2valueThe argument’s value. Must be of type INTEGER(2), INTEGER(4), REAL(4), REAL(8),LOGICAL(2), LOGICAL(4), CHARACTER*(*), or a single dimension array of one of thesetypes. Can also be of type VARIANT, which is defined in the IFWINTY module.intent_argIndicates the intended use of the argument by the called method. Must be one of the followingconstants defined in the IFAUTO module:• AUTO_ARG_IN: The argument’s value is read by the called method, but not written. This isthe default value if intent_arg is not specified.• AUTO_ARG_OUT: The argument’s value is written by the called method, but not read.• AUTO_ARG_INOUT: The argument’s value is read and written by the called method.When the value of intent_arg is AUTO_ARG_OUT or AUTO_ARG_INOUT, the variable used inthe value parameter should be declared using the VOLATILE attribute. This is because the valueof the variable will be changed by the subsequent call to AUTOInvoke. The compiler’s globaloptimizations need to know that the value can change unexpectedly.typeThe variant type of the argument. Must be one of the following constants defined in theIFWINTY module:VARIANT TypeVT_I2VT_I4VT_R4VT_R8VT_CYVT_DATEVT_BSTRVT_DISPATCHVT_ERRORVT_BOOLVT_VARIANTVT_UNKNOWNValue TypeINTEGER(2)INTEGER(4)REAL(4)REAL(8)REAL(8)REAL(8)CHARACTER*(*)INTEGER(4)INTEGER(4)LOGICAL(2)TYPE(VARIANT)INTEGER(4)See Also: “AUTOInvoke”, the VOLATILE attribute in the Language Reference2-11

Descriptions of the Library Routines 2valueThe argument’s value. Must be of type INTEGER(2), INTEGER(4), REAL(4), REAL(8),LOGICAL(2), LOGICAL(4), CHARACTER*(*), or a single dimension array of one of thesetypes. Can also be of type VARIANT, which is defined in the IFWINTY module.intent_argIndicates the intended use of the argument by the called method. Must be one of the followingconstants defined in the IFAUTO module:• AUTO_ARG_IN: The argument’s value is read by the called method, but not written. This isthe default value if intent_arg is not specified.• AUTO_ARG_OUT: The argument’s value is written by the called method, but not read.• AUTO_ARG_INOUT: The argument’s value is read and written by the called method.When the value of intent_arg is AUTO_ARG_OUT or AUTO_ARG_INOUT, the variable used inthe value parameter should be declared using the VOLATILE attribute. This is because the valueof the variable will be changed by the subsequent call to AUTOInvoke. The compiler’s globaloptimizations need to know that the value can change unexpectedly.typeThe variant type of the argument. Must be one of the following constants defined in theIFWINTY module:VARIANT TypeVT_I2VT_I4VT_R4VT_R8VT_CYVT_DATEVT_BSTRVT_DISPATCHVT_ERRORVT_BOOLVT_VARIANTVT_UNKNOWNValue TypeINTEGER(2)INTEGER(4)REAL(4)REAL(8)REAL(8)REAL(8)CHARACTER*(*)INTEGER(4)INTEGER(4)LOGICAL(2)TYPE(VARIANT)INTEGER(4)See Also: “AUTOInvoke”, the VOLATILE attribute in the Language <strong>Reference</strong>2-11

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

Saved successfully!

Ooh no, something went wrong!