Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. $Pre = Function[expr,
  2. MemoryConstrained[expr, Round[.45 $SystemMemory],
  3. Print[Style["[WarningSign]", 28, Red],
  4. Style["Memory limit exceeded and Computation aborted!", 15,
  5. Red]]], {HoldAll}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement