X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fmorpheus.git;a=blobdiff_plain;f=main.c;h=2f1cff56184764e4f2b48a652859d1bed21c0b85;hp=08c6a6c42be5bea2c3a0b230da94bf9b2ba53884;hb=HEAD;hpb=8d3f810a0ef6906e51969d4afb1f00302cd025d9 diff --git a/main.c b/main.c index 08c6a6c..2f1cff5 100644 --- a/main.c +++ b/main.c @@ -50,11 +50,13 @@ int usage() printf("-r \t pressure range from amorphous SiCx (default %d)\n",DEFAULT_A_P_RANGE); printf("-f \t faktor for pressure from amorphous SiCx (default %f)\n",DEFAULT_A_P_FAKTOR); 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("-C \t C disribution 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); + printf("-b \t initial C concentration (default %d)\n",DEFAULT_C_C0); puts("-R \t read random data from file (default not used)"); puts("-D \t dump cell info into (default not used)"); puts("-L \t load cell info and display it (default no)"); + puts("-n \t do not wait for user interaction (default no)"); return -23; } @@ -255,6 +257,7 @@ int main(int argc,char **argv) int quit=0; /* continue/quit status */ char save_file[MAX_CHARS_SAVE_FILE]; char load_file[MAX_CHARS_LOAD_FILE]; + unsigned char no_wait; printfd("debug: sizeof my u32 variable: %d\n",sizeof(u32)); printfd("debug: sizeof my cell struct: %d\n",sizeof(cell)); @@ -279,6 +282,7 @@ int main(int argc,char **argv) strcpy(random_file,""); strcpy(save_file,""); strcpy(load_file,""); + no_wait=0; /* parse command args */ for(i=1;i