home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / fortran / 4972 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.7 KB  |  45 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!eng-b7-g14-02.eng.monash.edu.au!weiping
  3. From: weiping@eng2.eng.monash.edu.au (Weiping Hu Materials)
  4. Subject: Re: Block Data
  5. Message-ID: <weiping.51.726797868@eng2.eng.monash.edu.au>
  6. Lines: 33
  7. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  8. Organization: Faculty of Engineering, Monash University 
  9. References: <C0pDpw.AxK@fs7.ece.cmu.edu>
  10. Date: Tue, 12 Jan 1993 00:17:48 GMT
  11.  
  12. In article <C0pDpw.AxK@fs7.ece.cmu.edu> winstead@faraday.ece.cmu.edu (Charles Holden Winstead) writes:
  13. >From: winstead@faraday.ece.cmu.edu (Charles Holden Winstead)
  14. >Subject: Block Data
  15. >Date: Mon, 11 Jan 1993 18:51:30 GMT
  16. >This is probably an easy question, but I didn't find it in either of my
  17. >FORTRAN 77 texts.  I have a program which has a section labelled BLOCK DATA
  18. >where it defines a bunch of variables as common and fills them with data.
  19. >My question is when is this done, before execution?  Is there any official 
  20. >description of this?  Also this program contains a bunch of subroutines
  21.  
  22. I *think* the BLOCK DATA are assigned there values at compilation, i.e., 
  23. before execution.
  24.  
  25. >that I'd like to place into separate files and link their object files at
  26. >compilation, and I was wondering how to handle common blocks and this 
  27. >block data section.
  28. >
  29. >Thanks.
  30. >
  31. >-Chuck
  32. >
  33.  
  34. Just treat the block data section as a subroutine, or keep it with the main 
  35. program.  The variable reference will be resolved at link time.
  36.  
  37. Hope this will be of some help.
  38.  
  39. >
  40. >P.S.  I don't see how multiplying an inverse matrix by a column vector is 
  41. >faster than back substitution. (Previous Thread).  You don't gain the 
  42. >advantage of solving 1 at a time as with back substitution.
  43.  
  44. Weiping Hu
  45.