home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!oasys!roth
- From: roth@oasys.dt.navy.mil (Pete Roth)
- Newsgroups: comp.lang.fortran
- Subject: Re: Dynamic Memory Allocation in FORTRAN, Question
- Message-ID: <28794@oasys.dt.navy.mil>
- Date: 21 Dec 92 13:07:46 GMT
- References: <Dec.20.02.22.20.1992.7312@spade.rutgers.edu>
- Reply-To: roth@oasys.dt.navy.mil (Pete Roth)
- Organization: The David Taylor Model Basin
- Lines: 20
-
- In comp.lang.fortran, xiong@spade.rutgers.edu (Xiong) writes:
- >Hi, I am wondering if it is possible to allocate memory dynomically in
- >FORTRAN as in C? I am loooking for something equivalent to:
- >
- > int * a;
- > a = (int *) malloc (numx * sizeof (int));
- >
- >in C.
- >
- To complete the spectrum of answers, YES.
-
- Well, sort of. Consider my article STORAGE MANAGEMENT AND OOP in "The Fortran
- Journal," Vol 4 No 4, 1992 July/August. The full code for a Fortran storage
- manager is presented therein, which might solve your problem.
-
-
- regards, pete
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- Peter N Roth roth@oasys.dt.navy.mil
- Do what you can with what you have where you are. - D L Moody.
-