home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / fortran / 4816 next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.1 KB

  1. Path: sparky!uunet!dtix!oasys!roth
  2. From: roth@oasys.dt.navy.mil (Pete Roth)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Dynamic Memory Allocation in FORTRAN, Question
  5. Message-ID: <28794@oasys.dt.navy.mil>
  6. Date: 21 Dec 92 13:07:46 GMT
  7. References: <Dec.20.02.22.20.1992.7312@spade.rutgers.edu>
  8. Reply-To: roth@oasys.dt.navy.mil (Pete Roth)
  9. Organization: The David Taylor Model Basin
  10. Lines: 20
  11.  
  12. In comp.lang.fortran, xiong@spade.rutgers.edu (Xiong) writes:
  13. >Hi, I am wondering if it is possible to allocate memory dynomically in
  14. >FORTRAN as in C? I am loooking for something equivalent to:
  15. >
  16. >        int * a;
  17. >        a = (int *) malloc (numx * sizeof (int));
  18. >
  19. >in C.
  20. >
  21. To complete the spectrum of answers, YES.
  22.  
  23. Well, sort of. Consider my article STORAGE MANAGEMENT AND OOP in "The Fortran
  24. Journal," Vol 4 No 4, 1992 July/August. The full code for a Fortran storage
  25. manager is presented therein, which might solve your problem.
  26.  
  27.  
  28. regards, pete
  29. - - - - - - - - - - - - - - - - - - - - - - - - - -
  30. Peter N Roth      roth@oasys.dt.navy.mil
  31. Do what you can with what you have where you are. - D L Moody.
  32.