int moldyn_shutdown(t_moldyn *moldyn) {
+ printf("[moldyn] shutdown\n");
moldyn_log_shutdown(moldyn);
link_cell_shutdown(moldyn);
- moldyn_log_shutdown(moldyn);
rand_close(&(moldyn->random));
free(moldyn->atom);
int moldyn_log_shutdown(t_moldyn *moldyn) {
+ printf("[moldyn] log shutdown\n");
if(moldyn->efd) close(moldyn->efd);
if(moldyn->mfd) close(moldyn->mfd);
- if(moldyn->visual) visual_tini(moldyn->visual);
+ if(&(moldyn->vis)) visual_tini(&(moldyn->vis));
return 0;
}
int mfd; /* fd for momentum log */
unsigned int vwrite; /* how often to visualize atom information */
char vfb[64]; /* visualization file name base */
- void *visual; /* pointer (hack!) */
+ //void *visual; /* pointer (hack!) */
unsigned int swrite; /* how often to create a save file */
char sfb[64]; /* visualization file name base */
mkdir -p saves video
./clean
-./sic $@
+./sic
if [ "$?" == "0" ]; then
./perms
- argv="`echo $@ | grep -- '-V'`"
- if [ "$argv" ] ; then
- base=`echo $argv | awk -F'-V' '{ print $2 }' | \
- awk '{ print $2 }'`
- rasmol -nodisplay < ${base}.scr > /dev/null 2>&1
+ if [ "$1" ] ; then
+ rasmol -nodisplay < $1.scr > /dev/null 2>&1
./ppm2avi
fi
fi
/* set (initial) dimensions of simulation volume */
printf("[sic] setting dimensions\n");
set_dim(&md,10*LC_SI,10*LC_SI,10*LC_SI,TRUE);
- printf("%.15f <---\n",md.vis.dim.x);
/* set periodic boundary conditions in all directions */
printf("[sic] setting periodic boundary conditions\n");