Absoft Fortran Language Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
i Absoft Fortran Language Reference Manual Absoft Fortran Language Reference Manual 2075 West Big Beaver Road, Suite 250 Troy, MI 48084 U.S.A. Tel (248) 220-1190 Fax (248) 220-1194 [email protected] i All rights reserved. No part of this publication may be reproduced or used in any form by any means, without the prior written permission of Absoft Corporation. THE INFORMATION CONTAINED IN THIS PUBLICATION IS BELIEVED TO BE ACCURATE AND RELIABLE. HOWEVER, ABSOFT CORPORATION MAKES NO REPRESENTATION OF WARRANTIES WITH RESPECT TO THE PROGRAM MATERIAL DESCRIBED HEREIN AND SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE. FURTHER, ABSOFT RESERVES THE RIGHT TO REVISE THE PROGRAM MATERIAL AND MAKE CHANGES THEREIN FROM TIME TO TIME WITHOUT OBLIGATION TO NOTIFY THE PURCHASER OF THE REVISION OR CHANGES. IN NO EVENT SHALL ABSOFT BE LIABLE FOR ANY INCIDENTAL, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE PURCHASER'S USE OF THE PROGRAM MATERIAL. U.S. GOVERNMENT RESTRICTED RIGHTS — The software and documentation are provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by the Government is subject to restrictions set forth in subparagraph (c) (1) (ii) of the Rights in Technical Data and Computer Software clause at 252.227-7013. The contractor is Absoft Corporation, 2075 W. Big Beaver Rd, Suite 250, Troy, Michigan 48084. ABSOFT CORPORATION AND ITS LICENSOR(S) MAKE NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE SOFTWARE. ABSOFT AND ITS LICENSOR(S) DO NOT WARRANT, GUARANTEE OR MAKE ANY REPRESENTATIONS REGARDING THE USE OR THE RESULTS OF THE USE OF THE SOFTWARE IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY, CURRENTNESS, OR OTHERWISE. THE ENTIRE RISK AS TO THE RESULTS AND PERFORMANCE OF THE SOFTWARE IS ASSUMED BY YOU. THE EXCLUSION OF IMPLIED WARRANTIES IS NOT PERMITTED BY SOME STATES. THE ABOVE EXCLUSION MAY NOT APPLY TO YOU. IN NO EVENT WILL ABSOFT, ITS DIRECTORS, OFFICERS, EMPLOYEES OR LICENSOR(S) BE LIABLE TO YOU FOR ANY CONSEQUENTIAL, INCIDENTAL OR INDIRECT DAMAGES (INCLUDING DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, AND THE LIKE) ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE EVEN IF ABSOFT HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. BECAUSE SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE ABOVE LIMITATIONS MAY NOT APPLY TO YOU. Absoft and its licensor(s) liability to you for actual damages for any cause whatsoever, and regardless of the form of the action (whether in contract, tort, (including negligence), product liability or otherwise), will be limited to $50. Absoft, the Absoft logo, Fx3, and Pro Fortran are trademarks of Absoft Corporation Apple, the Apple logo, and OS X are registered trademarks of Apple Computer, Inc. AMD64 and Opteron are trademarks of AMD Corporation Macintosh is a trademarks of Apple Computer, Inc., used under license. Pentium, Pentium Pro, and Pentium II are trademarks of Intel Corp. Windows 95/98/NT/ME/2000/XP/Windows 7 and Windows 8 are trademarks of Microsoft Corp. All other brand or product names are trademarks of their respective holders. Copyright © 1991-2015 Absoft Corporation and its licensor(s). All Rights Reserved Printed and manufactured in the United States of America. 1.0.10082814 i Fortran Language Reference Contents ABSOFT FORTRAN ............................................................................................. I CHAPTER 1 INTRODUCTION ............................................................................ 1 Introduction to This Manual ........................................................................................................................ 1 Introduction to Absoft Fortran .................................................................................................................... 1 Compatibility ................................................................................................................................................. 1 Conventions Used in this Manual ................................................................................................................ 2 CHAPTER 2 THE FORTRAN PROGRAM .......................................................... 3 Character Set ................................................................................................................................................. 3 Symbolic Names ............................................................................................................................................. 4 Keywords ....................................................................................................................................................... 4 Labels ............................................................................................................................................................. 5 Statements ...................................................................................................................................................... 5 Executable Statements ................................................................................................................................ 5 Nonexecutable Statements .......................................................................................................................... 6 Statement Format ........................................................................................................................................ 6 FORTRAN 77 Fixed Format ................................................................................................................. 7 Fortran 90 Free Format .......................................................................................................................... 9 VAX FORTRAN Tab-Format ............................................................................................................. 10 Multiple Statement Lines .......................................................................................................................... 10 Statement Order ........................................................................................................................................ 11 INCLUDE Statement ................................................................................................................................ 11 Conditional Compilation Statements ........................................................................................................ 12 type and KIND ............................................................................................................................................. 14 Data Items .................................................................................................................................................... 14 Constants .................................................................................................................................................. 15 Character Constant ............................................................................................................................... 15 Logical Constant .................................................................................................................................. 16 Integer Constant ................................................................................................................................... 17 Alternate Integer Bases ................................................................................................................... 17 Real Constant ....................................................................................................................................... 18 Complex Constant ................................................................................................................................ 19 Hollerith Constant ................................................................................................................................ 19 Variables ................................................................................................................................................... 20 Substrings ................................................................................................................................................. 20 Storage .......................................................................................................................................................... 20 ii Numeric Storage Unit .............................................................................................................................. 21 Character Storage Unit ............................................................................................................................. 21 Storage Sequence ..................................................................................................................................... 21 Storage Association ................................................................................................................................. 22 Storage Definition .................................................................................................................................... 22 CHAPTER 3 SPECIFICATION AND DATA STATEMENTS ............................