🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.fortran
Article #4607

Re: Block Data

#4607
From: Weiping Hu Materials
Date: Tue, 12 Jan 1993 00:17
33 lines
1797 bytes
In article <C0pDpw.AxK@fs7.ece.cmu.edu> winstead@faraday.ece.cmu.edu (Charles Holden Winstead) writes:
>From: winstead@faraday.ece.cmu.edu (Charles Holden Winstead)
>Subject: Block Data
>Date: Mon, 11 Jan 1993 18:51:30 GMT
>This is probably an easy question, but I didn't find it in either of my
>FORTRAN 77 texts.  I have a program which has a section labelled BLOCK DATA
>where it defines a bunch of variables as common and fills them with data.
>My question is when is this done, before execution?  Is there any official 
>description of this?  Also this program contains a bunch of subroutines

I *think* the BLOCK DATA are assigned there values at compilation, i.e., 
before execution.

>that I'd like to place into separate files and link their object files at
>compilation, and I was wondering how to handle common blocks and this 
>block data section.
>
>Thanks.
>
>-Chuck
>

Just treat the block data section as a subroutine, or keep it with the main 
program.  The variable reference will be resolved at link time.

Hope this will be of some help.

>
>P.S.  I don't see how multiplying an inverse matrix by a column vector is 
>faster than back substitution. (Previous Thread).  You don't gain the 
>advantage of solving 1 at a time as with back substitution.

Weiping Hu
Technical Details
Message-ID: <weiping.51.726797868@eng2.eng.monash.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!eng-b7-g14-02.eng.monash.edu.au!weiping
References: <C0pDpw.AxK@fs7.ece.cmu.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.fortran
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!eng-b7-g14-02.eng.monash.edu.au!weiping
From: weiping@eng2.eng.monash.edu.au (Weiping Hu Materials)
Subject: Re: Block Data
Message-ID: <weiping.51.726797868@eng2.eng.monash.edu.au>
Lines: 33
Sender: news@monu6.cc.monash.edu.au (Usenet system)
Organization: Faculty of Engineering, Monash University 
References: <C0pDpw.AxK@fs7.ece.cmu.edu>
Date: Tue, 12 Jan 1993 00:17:48 GMT