Intel(R) Fortran Language Reference (Online Version)

Intel(R) Fortran Language Reference (Online Version)

Intel® Fortran Language Reference Document Number: 253261-003 World Wide Web: http://developer.intel.com Disclaimer and Legal Information The information in this manual is subject to change without notice and 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. This document and the software described in it are furnished under license and may only be used or copied in accordance with the terms of the license. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted by this document. The information in this document is provided in connection with Intel products and should not be construed as a commitment by Intel Corporation. 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. Designers must not rely on the absence or characteristics of any features or instructions marked “reserved” or “undefined.” Intel reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from future changes to them. 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. Intel, the Intel logo, Intel SpeedStep, Intel NetBurst, Intel NetStructure, MMX, Intel386, Intel486, Celeron, Intel Centrino, Intel Xeon, Intel XScale, Itanium, Pentium, Pentium II Xeon, Pentium III Xeon, Pentium M, and VTune are trademarks or registered trademarks of Intel Cor- poration or its subsidiaries in the United States and other countries. * Other names and brands may be claimed as the property of others. Copyright © 2003 - 2005, Intel Corporation. Portions © Copyright 2001 Hewlett-Packard Development Company, L.P. ii Contents About This Manual Product Website and Support .................................................................. xxvi Related Publications................................................................................. xxvii Conventions .............................................................................................. xxx Platform Labels.................................................................................... xxxii Chapter 1 Overview Language Standards Conformance .......................................................... 1-2 Language Compatibility............................................................................. 1-2 New Language Features ........................................................................... 1-2 Fortran 2003 Features............................................................................... 1-3 Improved Features................................................................................ 1-3 Fortran 95 Features................................................................................... 1-3 New Features ....................................................................................... 1-3 Improved Features................................................................................ 1-5 Fortran 90 Features................................................................................... 1-6 New Features ....................................................................................... 1-6 Improved Features................................................................................ 1-8 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 iii Intel Fortran Language Reference 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 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 iv Contents 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 Array Elements............................................................................... 3-38 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 .............................................................................. 4-8 Data Types Resulting from Logical Operations ................................ 4-9 Evaluation of Logical Expressions.................................................... 4-9 Defined Operations ............................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    858 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