[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-users] memory problem with gf_asm()

From: Hicham Tber
Subject: [Getfem-users] memory problem with gf_asm()
Date: Wed, 08 Oct 2008 12:05:13 +0200
User-agent: Thunderbird (X11/20070801)

I am using gf_asm(), from the Matlab interface, inside a loop. I realized that 
the used memory increases with iterations until my program runs out of memory. 
I would like to know if this is a bug or just something wrong with my program. 
The example below illustrate my problem.

Thank you in advance.


dx = 0.01;
Omega = gf_mesh('triangles grid',[0:dx:1],[0:dx:1]);
Vh = gf_mesh_fem(Omega,1);
im = gf_mesh_im(Omega, gf_integ('IM_EXACT_SIMPLEX(2)')) ;
VhNdof=gf_mesh_fem_get(Vh, 'nbdof');

e = ones(VhNdof,1);   
Nmax = 100;

for k = 1:Nmax
     Mat = gf_asm('laplacian', im, Vh, Vh,  ones(1,VhNdof));
     % memory monitoring on Linux 
     !free -m

reply via email to

[Prev in Thread] Current Thread [Next in Thread]