Author Topic: Memory allocation error  (Read 5947 times)

sky

  • New Member
  • *
  • Posts: 2
Memory allocation error
« on: March 02, 2013, 11:57:02 PM »
Dear FEAP developer,

I was trying to run with my input file.

For brief explanation, my input file has cylindrical coordinate, mesh size 0.5 mm x 0.625 mm x 0.5 m.

When I run this input file with the mesh size, 1.0 mm x 1.25 mm x 1.0 mm , it works.

But as I change the esh size to the 0.5 mm x 0.625 mm x 0.5 m, I encountered the error message like below

  Memory allocation error
    CALLOC() returns NULL pointer


Why this message happen?

Thank you for your reply in advance

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Memory allocation error
« Reply #1 on: March 05, 2013, 08:13:14 AM »
The error is telling you that there was not enough free memory on your machine to allocate an array that it needed.
If you run with the debugger you can put a break point on that line to see what it was trying to allocate and
why it was so large.

Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2647
Re: Memory allocation error
« Reply #2 on: March 12, 2013, 11:35:18 AM »
You should go back to the smaller mesh and look to see if the numbering is bad. 

If you are using the default solver ust PLOT PROFile to see what it looks like.

Then issue the command OPTI followed by another PLOT PROF (wipe in between).  Maybe the profile is now much smaller and you can do the finer mesh.

It is assumed the lack of memory happens when you issue the TANG command. 

Be sure to do everything in interactive mode so you can understand where things go wrong.

If it still is too large you can use the out of core solver -- which will take lots more time to solve