home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!caen!destroyer!news.iastate.edu!pv7440.vincent.iastate.edu!btd
- From: btd@iastate.edu (Benjamin T Dehner)
- Newsgroups: comp.lang.fortran
- Subject: Re: Dynamic Memory Allocation in FORTRAN, Question
- Message-ID: <btd.724882064@pv7440.vincent.iastate.edu>
- Date: 20 Dec 92 20:07:44 GMT
- References: <Dec.20.02.22.20.1992.7312@spade.rutgers.edu>
- Sender: news@news.iastate.edu (USENET News System)
- Organization: Iowa State University, Ames IA
- Lines: 23
-
- In <Dec.20.02.22.20.1992.7312@spade.rutgers.edu> 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.
-
- As far as I know, in standard fortran, the answer is no. On Ultrix
- systems there is are three system calls: malloc, free, and falloc, (obviously
- stolen and added into C :) which are capable of dynamic memory allocation.
- If you are on an Ultrix system, see the man pages. If you aren't,
- I have no idea where these routines come from (decfort?) or if they are
- available.
-
- Ben
-
- -----------------------------------------------------------------------------
- Benjamin T. Dehner Dept. of Physics and Astronomy
- btd@iastate.edu Iowa State University
- Ames, IA 50011
-