Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
strange out of memory error
Posted 02.04.2010, 15:01 GMT-4 1 Reply
Please login with a confirmed email address before reporting spam
I'm solving a 3d eigenfrequency problem in the structural mechanics module of Femlab 3.1, which I use with Matlab 6.5. (Yes, its old, but it still works well, mostly.) It's on a Windows 2000 machine with 2GB memory.
I have a matlab function which, given a few parameters, computes the geometry of my object and gives it to femlab with heavy use of curve2, embed, and geomcoerce. The function then tells femlab to mesh and solve the structure, to save the fem structure and to return several computations based on postint.
The structure has a single subdomain, about 46000 mesh elements and 260000 degrees of freedom. It solves with the SPOOLES solver. And it works splendidly when I just call a single instance of my function.
The problem is when I try to get matlab to step through my parameters automatically. It will compute one or maybe two instances, but then I get an "Out of memory in eigenvalue solver" error.
This is different from most of the out-of-memory messages I see in the archives because I know that femlab can compute the structure, and it does when I do it one at a time by hand.
How can I get femlab/matlab to clear out their memories between computations?
I'm trying to do something like:
parameter_vector=1:10;
for p=parameter_vector;
values(p)=my_fem_function(p);
end;
I have a matlab function which, given a few parameters, computes the geometry of my object and gives it to femlab with heavy use of curve2, embed, and geomcoerce. The function then tells femlab to mesh and solve the structure, to save the fem structure and to return several computations based on postint.
The structure has a single subdomain, about 46000 mesh elements and 260000 degrees of freedom. It solves with the SPOOLES solver. And it works splendidly when I just call a single instance of my function.
The problem is when I try to get matlab to step through my parameters automatically. It will compute one or maybe two instances, but then I get an "Out of memory in eigenvalue solver" error.
This is different from most of the out-of-memory messages I see in the archives because I know that femlab can compute the structure, and it does when I do it one at a time by hand.
How can I get femlab/matlab to clear out their memories between computations?
I'm trying to do something like:
parameter_vector=1:10;
for p=parameter_vector;
values(p)=my_fem_function(p);
end;
1 Reply Last Post 04.04.2010, 02:35 GMT-4