X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fmorpheus.git;a=blobdiff_plain;f=main.c;fp=main.c;h=2ac8d6a9ac86d2331786445218e7eb9199b42066;hp=c019f0a20a798d0f962054ae076be0e466d91474;hb=2fc464b1e03445cd60e9305dc9b75471ebdb04af;hpb=b5e94b1493e7c9359a5703e3e68013c064097225 diff --git a/main.c b/main.c index c019f0a..2ac8d6a 100644 --- a/main.c +++ b/main.c @@ -27,6 +27,7 @@ /* global variables */ u32 *rand_buf,*rand_current; +char random_file[MAX_CHARS_RANDOM_FILE]; u32 gr; int random_fd; /* /dev/urandom file descriptor */ @@ -49,6 +50,7 @@ int usage() printf("-p \t p0 for probability of cell getting amorph (default %f)\n",DEFAULT_A_P_P0); printf("-C \t C start concentration (default %d)\n",DEFAULT_C_DIST_START_CONC); printf("-S \t slope of linear C distribution (default %d)\n",DEFAULT_C_DIST_SLOPE); + puts("-R \t read random datat from file (default not used)"); return -23; } @@ -199,6 +201,7 @@ int main(int argc,char **argv) display_y=y_cell/2; display_z=z_cell/2; display_refresh_rate=DEFAULT_DISPLAY_REF_RATE; + strcpy(random_file,""); /* parse command args */ for(i=1;i