Skip to content

Commit

Permalink
Remove NMAX limit
Browse files Browse the repository at this point in the history
  • Loading branch information
lwang-astro committed Mar 14, 2018
1 parent ea7f86a commit aa5a8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ int main (int argv, char **argc) {
int create_cumulative_profile = 1; //Creates a radial cumulative profile and prints it to the screen; =0 off, =1 on
double Rgal = 10000.0; //Distance of cluster from sun for artificial CMD with observational errors [pc]
double Zsun = 0.02; //Solar metallicity
int NMAX = 1500000; //Maximum number of stars & orbits allowed in McLuster
int NNBMAX_NBODY6 = 500; //Maximum number of neighbours allowed in NBODY6
double upper_IMF_limit = 150.0; //Maximum stellar mass allowed in McLuster [Msun]
int an = 0; //Counter for number of alpha slopes for mfunc = 2
Expand Down Expand Up @@ -325,6 +324,7 @@ int main (int argv, char **argc) {
***********************/

int columns = 15;
const int NMAX = N*2>1500000?N*2:1500000; //Maximum number of stars & orbits allowed in McLuster
double **star;
star = (double **)calloc(NMAX,sizeof(double *));
for (j=0;j<NMAX;j++){
Expand Down

0 comments on commit aa5a8e7

Please sign in to comment.