run programe movingWall and get error "std::bad_alloc"

hi chaps, when i compile and run the programme movingWall, the following errors occurred

terminate called after throwing an instance of “std::bad_alloc”

what<>: std::bad_alloc

can someone help?

thanks

Too little information. Mine works fine.

hi firstly i compiled and run programme cavity2d. it worked fine but the problem happened when i replaced the cavity2d.cpp with movingWall.cpp. all i did is followed the instructions for users guide.

still no idea what is wrong ?

http://www.cplusplus.com/reference/new/bad_alloc/

Possible causes:
[ul]
[li] You don’t have enough RAM
[/li][li] you are compiling for 32bit and the allocation attempts to create an array larger than the limit allowed, try compiling for 64bit
[/li][/ul]

Bruce

Can you please post the full error message?

best
Philippe