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 Referencesize(Input) INTEGER(4). Positive constant less than 32,767 that specifies the kind of array to besorted. The following constants, defined in IFPORT.F90, specify type and kind for numericarrays:ConstantSRT$INTEGER1SRT$INTEGER2SRT$INTEGER4SRT$INTEGER8SRT$REAL4SRT$REAL8SRT$REAL16Type of arrayINTEGER(1)INTEGER(2) or equivalentINTEGER(4) or equivalentINTEGER(8) or equivalentREAL(4) or equivalentREAL(8) or equivalentREAL(16) or equivalentIf the value provided in size is not a symbolic constant and is less than 32,767, the array isassumed to be a character array with size characters per element.Results:The result type is INTEGER(4). It is an array index of the matched entry, or 0 if the entry is notfound.The array must be sorted in ascending order before being searched.CAUTION. The location of the array and the element to be found must both bepassed by address using the LOC function. This defeats Fortran type checking,so you must make certain that the length and size arguments are correct, andthat size is the same for the element to be found and the array searched.If you pass invalid arguments, BSEARCHQQ attempts to search random partsof memory. If the memory it attempts to search is not allocated to the currentprocess, the program is halted, and you receive a General Protection Violationmessage.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: “SORTQQ”, the LOC intrinsic function in the Language Reference2-22

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>size(Input) INTEGER(4). Positive constant less than 32,767 that specifies the kind of array to besorted. The following constants, defined in IFPORT.F90, specify type and kind for numericarrays:ConstantSRT$INTEGER1SRT$INTEGER2SRT$INTEGER4SRT$INTEGER8SRT$REAL4SRT$REAL8SRT$REAL16Type of arrayINTEGER(1)INTEGER(2) or equivalentINTEGER(4) or equivalentINTEGER(8) or equivalentREAL(4) or equivalentREAL(8) or equivalentREAL(16) or equivalentIf the value provided in size is not a symbolic constant and is less than 32,767, the array isassumed to be a character array with size characters per element.Results:The result type is INTEGER(4). It is an array index of the matched entry, or 0 if the entry is notfound.The array must be sorted in ascending order before being searched.CAUTION. The location of the array and the element to be found must both bepassed by address using the LOC function. This defeats <strong>Fortran</strong> type checking,so you must make certain that the length and size arguments are correct, andthat size is the same for the element to be found and the array searched.If you pass invalid arguments, BSEARCHQQ attempts to search random partsof memory. If the memory it attempts to search is not allocated to the currentprocess, the program is halted, and you receive a General Protection Violationmessage.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS LIBSee Also: “SORTQQ”, the LOC intrinsic function in the Language <strong>Reference</strong>2-22

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

Saved successfully!

Ooh no, something went wrong!