X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fnlsop.git;a=blobdiff_plain;f=nlsop.c;h=0e06c77432cb0385ba0298cb7e1382341ce2e3af;hp=11f81f5f569e26c02024a23ebe6fc091713f8c3e;hb=1bdb2f409daecf16a7bf641a5061435ca4a062e2;hpb=a04f85207ca9c68e39c6e2f1b0f29eeb062451bd diff --git a/nlsop.c b/nlsop.c index 11f81f5..0e06c77 100644 --- a/nlsop.c +++ b/nlsop.c @@ -78,6 +78,7 @@ int usage(void) puts("-S \t save to file"); puts("-R \t read from random file"); puts("-P \t specify implantation profile file"); + puts("-N \t specify nuclear energy loss profile file"); printf("-H \t collisions per ion in simulation window (default %d)\n",CPI); return 1; @@ -334,7 +335,7 @@ int calc_max_extra(d3_lattice *d3_l) int write_ac_distr(d3_lattice *d3_l,int ac_distr) { int fd,x,y,z; - int count=0,offset; + int count,offset; char file[16]; if(ac_distr==1) strcpy(file,"a.plot"); @@ -349,6 +350,7 @@ int write_ac_distr(d3_lattice *d3_l,int ac_distr) for(z=0;zmax_z;z++) { + count=0; for(x=0;xmax_x;x++) { for(y=0;ymax_y;y++) @@ -771,6 +773,7 @@ int main(int argc,char **argv) char l_file[MAX_CHARS]; char c_file[MAX_CHARS]; char p_file[MAX_CHARS]; + char n_e_file[MAX_CHARS]; char convert; char r_file[MAX_CHARS]; #ifdef USE_DFB_API @@ -835,6 +838,7 @@ int main(int argc,char **argv) strcpy(l_file,""); strcpy(c_file,""); strcpy(p_file,IMP_PROFILE); + strcpy(n_e_file,NEL_PROFILE); convert=0; strcpy(r_file,""); mode=0; @@ -928,6 +932,9 @@ int main(int argc,char **argv) case 'P': strcpy(p_file,argv[++i]); break; + case 'N': + strcpy(n_e_file,argv[++i]); + break; case 'g': strcpy(l_file,argv[++i]); if(i