Skip to content

Commit

Permalink
Update due to new version of Nbody6++
Browse files Browse the repository at this point in the history
  • Loading branch information
lwang-astro committed Jan 23, 2018
1 parent 2ba10cf commit d91b324
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4917,13 +4917,13 @@ int output5(char *output, int N, int NNBMAX, double RS0, double dtadj, double dt

//write to .PAR file
fprintf(PAR,"1 5000000.0 5000000.0 40 40 0\n");
fprintf(PAR,"%i 1 10 %i %i 1\n",N,seed,NNBMAX);
fprintf(PAR,"0.02 0.02 %.8f %.8f %.8f %.8f 1.0E-03 %.8f %.8f\n",RS0,dtadj,dtout,tcrit,rvir,mmean);
fprintf(PAR,"%i 1 10 %i %i 1 10\n",N,seed,NNBMAX);
fprintf(PAR,"0.02 0.02 %.8f %.8f %.8f %.8f 1.0E-04 %.8f %.8f\n",RS0,dtadj,dtout,tcrit,rvir,mmean);
fprintf(PAR,"0 2 1 0 1 0 5 %i 3 2\n",(nbin>0?2:0));
fprintf(PAR,"0 %i 0 %i 2 %i %i 0 %i 6\n",hrplot,tf,regupdate,etaupdate,mloss);
fprintf(PAR,"0 6 %i 0 1 2 2 0 0 1\n", esc);
fprintf(PAR,"0 6 %i 0 1 2 1 0 0 1\n", esc);
fprintf(PAR,"1 0 3 2 1 0 0 2 0 0\n");
fprintf(PAR,"0 0 0 0 0 1 2 0 0 0\n");
fprintf(PAR,"0 0 0 0 0 2 -3 0 0 0\n");
fprintf(PAR,"1.0E-5 1.0E-4 0.2 1.0 1.0E-06 0.001 0.125\n");
fprintf(PAR,"2.350000 %.8f %.8f %i 0 %.8f %.8f %.8f\n",MMAX,mlow,nbin,Z,epoch,dtplot);
fprintf(PAR,"%.2f 0.0 0.0 0.00000\n",Q);
Expand Down Expand Up @@ -5054,7 +5054,8 @@ void help(double msort) {
printf(" 3= 2-dimensional EFF/Nuker template, \n");
printf(" -1= no density gradient) \n");
printf(" -W <1-12> (W0 parameter for King model) \n");
printf(" -R <value> (half-mass radius [pc], ignored for P = 3) \n");
printf(" -R <value> (half-mass radius [pc], ignored for P = 3; \n");
printf(" if -1, use Marks & Kroupa (2012) Mcl-Rh relation) \n");
printf(" -r <value> (scale radius of EFF/Nuker template [pc]) \n");
printf(" -c <value> (cut-off radius of EFF/Nuker template [pc]) \n");
printf(" -g <value> (power-law slope(s) of EFF/Nuker template; use \n");
Expand Down

0 comments on commit d91b324

Please sign in to comment.