X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=001%2Fbin%2Flife;h=993ca12663e9667acdab91e4e082cb8a3e2bb517;hb=160a4566dcc36d03f6af95e7c588cc7453fdd905;hp=a0f014aef5b7b395e01e612ccb33a5426ee9d12d;hpb=eec4cd1f37ccb353d325f7f8e46e6f9efaa02077;p=cellular-automata.git diff --git a/001/bin/life b/001/bin/life index a0f014a..993ca12 100755 --- a/001/bin/life +++ b/001/bin/life @@ -4,8 +4,14 @@ Y=`expr \`stty size | awk '{print $1}'\` - 3` X=`stty size | awk '{print $2}'` +NUM_BEAM_PROCESSES=31 +NUM_LIFE_CELLS=`expr $X \* $Y` +NUM_LIFE_PROCESSES=`expr $NUM_LIFE_CELLS + 4` +NUM_PROCESSES=`expr $NUM_BEAM_PROCESSES + $NUM_LIFE_PROCESSES` + erl \ + +P $NUM_PROCESSES \ -name life_001@localhost \ -noshell \ -pa ebin \