--- In Fortran@yahoogroups.com, "Balwinder Singh"
<handsome_2k_21@...> wrote:
>
> Hi all,
> I am new to fortran, so I am just trying to know how fortran code
> uses memory.
> I run a fortran program and want to look up how much memory it
uses
> while its running. I look at the task manager(windows XP) to know
> the memory usage.
> I am using the following code to know how much memory my arrays
are
> using:
> >>>>
> allocate(a(nx))
> ............
> ............
> ............
> .............using a() here..........
> ..........
> .........
>
> pause -----[1]
>
> dealocate(a)
> pause-----[2]
>
> >>>>>>>>>>
>
> I check the task manager at [1] and [2].
> When I ran the code with multiple arrays (instead of just one), I
> didn't see any significant change in memory at [1] and [2] pause
> statement. I am just wondering if there is any other program which
> can tell me 'not so significant' memory changes?
>
> Thanks.
>
I think Process Explorer is probably better than winxp's Task
Manager. Otherwise, just a guess, whilst running, try the "mem"
command from a Dos_prompt.
Dyl.