LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-22-2003, 01:42 PM   #1
RWild
Member
 
Registered: Nov 2002
Location: Cary, NC
Distribution: Red Hat
Posts: 76

Rep: Reputation: 15
Fortran Array Tricks?


I am looking at some old Fortran 77 code that began life as Fortran 66 code. It is full of instances where an array is declared with very large dimensions in the main program, redimensioned to a single element (ARRAY(1))., and used in loops like:

DO 10 I = 1,ITOT
ARRAY(I) = something
10 CONTINUE

Where ITOT is may be as large as the original dimension. This generates "array out of bounds" errors if the array is in a COMMON block but not if it is not and passed as an argument.

Why would one do this? Why does it not work with a "modern" compiler (I have tried at least four).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 08:59 AM
PERL: Size of an array of an Array inspleak Programming 2 03-10-2004 02:24 PM
m$'s tricks yenonn General 4 10-09-2003 10:53 PM
Does ebay really have tricks ? phreakazoid General 2 07-23-2003 08:53 AM
Tips and Tricks Westdog976 LQ Suggestions & Feedback 8 07-14-2003 12:24 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration