Intel Fortran Language Description

Intel Fortran Language Description

Intel® Fortran Language Reference Document Number: 253261-004US World Wide Web: http://developer.intel.com DisIclaimer and Legal Information INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL® PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIA- BILITY WHATSOEVER, AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PUR- POSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. Intel products are not intended for use in medical, life saving, life sustaining, critical control or safety systems, or in nuclear facility applications. Intel may make changes to specifications and product descriptions at any time, without notice. The software described in this document may contain software defects which may cause the product to deviate from published specifica- tions. Current characterized software defects are available on request. This document as well as the software described in it is furnished under license and may only be used or copied in accordance with the terms of the license. The information in this manual is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Intel Corporation. Intel Corporation assumes no responsibility or liability for any errors or inaccuracies that may appear in this document or any software that may be provided in association with this document. Except as permitted by such license, no part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means without the express written consent of Intel Corporation. Developers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined." Improper use of reserved or undefined features or instructions may cause unpredictable behavior or failure in developer's software code when running on an Intel processor. Intel reserves these features or instructions for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from their unauthorized use. BunnyPeople, Celeron, Celeron Inside, Centrino, Centrino logo, Chips, Core Inside, Dialogic, EtherExpress, ETOX, FlashFile, i386, i486, i960, iCOMP, InstantIP, Intel, Intel logo, Intel386, Intel486, Intel740, IntelDX2, IntelDX4, IntelSX2, Intel Core, Intel Inside, Intel Inside logo, Intel. Leap ahead., Intel. Leap ahead. logo, Intel NetBurst, Intel NetMerge, Intel NetStructure, Intel SingleDriver, Intel SpeedStep, Intel StrataFlash, Intel Viiv, Intel XScale, IPLink, Itanium, Itanium Inside, MCS, MMX, MMX logo, Optimizer logo, OverDrive, Paragon, PDCharm, Pentium, Pentium II Xeon, Pentium III Xeon, Performance at Your Command, Pentium Inside, skoool, Sound Mark, The Com- puter Inside., The Journey Inside, VTune, Xeon, Xeon Inside and Xircom are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. Copyright © 1996-2006, Intel Corporation. Portions Copyright © 2001, Hewlett-Packard Development Company, L.P. Contents About This Manual Product Website and Support .................................................................. xxvi Related Publications................................................................................. xxvii Conventions ............................................................................................. xxix Platform Labels.................................................................................... xxxii Chapter 1 Overview Language Standards Conformance .......................................................... 1-1 Language Compatibility............................................................................. 1-2 New Language Features ........................................................................... 1-2 Fortran 2003 Features............................................................................... 1-2 Chapter 2 Program Structure, Characters, and Source Forms Program Structure..................................................................................... 2-1 Statements ........................................................................................... 2-2 Names .................................................................................................. 2-4 Character Sets .......................................................................................... 2-5 Source Forms............................................................................................ 2-6 Free Source Form................................................................................. 2-9 Fixed and Tab Source Forms.............................................................. 2-11 Fixed-Format Lines ........................................................................ 2-13 Tab-Format Lines........................................................................... 2-13 Source Code Useable for All Source Forms....................................... 2-15 iii Intel Fortran Language Reference Chapter 3 Data Types, Constants, and Variables Intrinsic Data Types ................................................................................... 3-2 Integer Data Types................................................................................ 3-4 Real Data Types.................................................................................... 3-6 General Rules for Real Constants.................................................... 3-7 REAL(4) Constants .......................................................................... 3-8 REAL(8) or DOUBLE PRECISION Constants ................................. 3-9 REAL(16) Constants ...................................................................... 3-10 Complex Data Types........................................................................... 3-10 General Rules for Complex Constants........................................... 3-11 COMPLEX(4) Constants................................................................ 3-11 COMPLEX(8) or DOUBLE COMPLEX Constants ......................... 3-12 COMPLEX(16) Constants.............................................................. 3-13 Logical Data Types.............................................................................. 3-14 Character Data Type........................................................................... 3-14 C Strings in Character Constants................................................... 3-16 Character Substrings .................................................................... 3-17 Derived Data Types ................................................................................. 3-19 Derived-Type Definition....................................................................... 3-20 Default Initialization............................................................................. 3-22 Structure Components........................................................................ 3-23 Structure Constructors........................................................................ 3-26 Binary, Octal, Hexadecimal, and Hollerith Constants .............................. 3-28 Binary Constants ................................................................................ 3-28 Octal Constants .................................................................................. 3-29 Hexadecimal Constants ...................................................................... 3-29 Hollerith Constants ............................................................................. 3-30 Determining the Data Type of Nondecimal Constants ........................ 3-31 Variables.................................................................................................. 3-33 Data Types of Scalar Variables ........................................................... 3-34 Specification of Data Type.............................................................. 3-34 Implicit Typing Rules ...................................................................... 3-35 Arrays.................................................................................................. 3-35 Whole Arrays.................................................................................. 3-38 iv Contents Array Elements............................................................................... 3-39 Array Sections ................................................................................ 3-41 Array Constructors.......................................................................... 3-44 Chapter 4 Expressions and Assignment Statements Expressions ............................................................................................... 4-1 Numeric Expressions ............................................................................ 4-2 Using Parentheses in Numeric Expressions .................................... 4-4 Data Type of Numeric Expressions .................................................. 4-5 Character Expressions.......................................................................... 4-6 Relational Expressions.......................................................................... 4-7 Logical Expressions .............................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    856 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us