Looking for a solution?

Where there's a problem there's a solution

  • Error: MALLOC Failed in Fluent

  • Comments: A user gets a message similar to the following when attempting to allocate memory for a large problem, because the user resource limits are set too low:

    (MEMORY ALLOCATION)

    (*)- ALLOCATING MEMORY, PLEASE WAIT
    (*)- ERROR: MALLOC FAILED
    (*)- THERE IS NOT ENOUGH MEMORY AVAILABLE TO ENABLE BASIC
    (*)- FLUID FLOW AND HEAT TRANSFER CALCULATIONS.

    Resolution: In the C-shell, check the resource limits with the command: limit

    You get a display similar to:

    cputime unlimited
    filesize unlimited
    datasize 131072 kbytes
    stacksize 2048 kbytes
    coredumpsize unlimited
    memoryuse 123440 kbytes
    descriptors 4096 files
    addressspace 1048576 kbytes

    This is not enough for a 150,000 cell problem. You can increase these limits (to a certain extent) with the command: unlimit

    Issue the the limit command again to show the new limits:

    cputime unlimited
    filesize unlimited
    datasize 1048576 kbytes
    stacksize 32768 kbytes
    coredumpsize unlimited
    memoryuse 123360 kbytes
    descriptors 4096 files
    addressspace 1048576 kbytes

    In this case, you should now be able to allocate enough memory for a 1 GB problem.



  • Show Form
    No comments yet. Be the first to add a comment!