bad_alloc

Hello,

I am attempting to create a very fine scale tet mesh embedded in a much coarser tet mesh (specifically we are meshing an elastic model of the globe, with high and low resolution regions). Things are progressing smoothly, save for the following error, which is encountered when trying to mesh at the finest scale:

Trelis> refine volume 23 size 0.0025 bias 1.0 depth 1 smooth
Traceback (most recent call last):
File “”, line 1, in
File “/Applications/Trelis-14.0.app/Contents/MacOS/cubit.py”, line 2386, in cmd
return _cubit.cmd(*args)
RuntimeError: std::bad_alloc

Might this be related to a memory issue? If so, we can move the meshing over to one of our large shared-memory clusters.

Interestingly, the program requires a restart every time this situation is encountered. Further refinements to the mesh (if any volume) are met with the error:

Trelis> refine volume 23 size 0.0025 bias 1.0 depth 1 smooth
ERROR: Unexpected keyword entered into the refinement command.
Type ‘help refine’ for correct syntax.

Any advice would be appreciated. Thanks very much.

Any progress on determining the cause of this error?

bad_alloc indicates that there is not enough memory to do the refinement. There is a limitation with the current Mac ACIS engine only supporting 32-bit. No matter how much memory your Mac has, it will only use 4MB. This will be resolved with the next Trelis release which will include 64-bit Mac support.