From: hackbard Date: Mon, 20 Mar 2006 23:29:00 +0000 (+0000) Subject: more testing X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6eb09b305eb6f565d844979b68dd2542e9a0d5fa;p=physik%2Fposic.git more testing --- diff --git a/clean b/clean new file mode 100755 index 0000000..2e1cd0e --- /dev/null +++ b/clean @@ -0,0 +1,3 @@ +#!/bin/bash + +rm -f saves/* video/* diff --git a/doit b/doit new file mode 100755 index 0000000..04ece04 --- /dev/null +++ b/doit @@ -0,0 +1,9 @@ +#!/bin/bash + +./clean +gcc -o posic posic.c -Wall +./posic +./perms +rasmol +./ppm2avi +mplayer video/md.avi diff --git a/perms b/perms new file mode 100755 index 0000000..d1f5e41 --- /dev/null +++ b/perms @@ -0,0 +1,3 @@ +#!/bin/bash + +chmod 640 saves/* diff --git a/posic.c b/posic.c index 997127e..8910ddd 100644 --- a/posic.c +++ b/posic.c @@ -26,7 +26,8 @@ int main(int argc,char **argv) { double lj1,lj2,lj; /* silicon */ - amount_si=AMOUNT_SI; + //amount_si=AMOUNT_SI; + amount_si=2; printf("simulating %d silicon atoms\n",amount_si); si=malloc(amount_si*sizeof(t_atom)); if(!si) { @@ -38,6 +39,7 @@ int main(int argc,char **argv) { /* init */ printf("placing silicon atoms\n"); + /* for(i=0;i