Skip to content

Commit

Permalink
For the user defined multiple power-law IMF (-f2), there is a bug for…
Browse files Browse the repository at this point in the history
… the Maximum mass.
  • Loading branch information
lwang-astro committed Mar 4, 2016
1 parent cf3f085 commit 2ba10cf
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 @@ -219,7 +219,7 @@ int main (int argv, char **argc) {
if (mn < MAX_MN) {
mlim[mn] = atof(optarg);
if (mn == 0) mlow = atof(optarg);
if (mn == 1) mup = atof(optarg);
if (mn == MAX_MN-1) mup = atof(optarg);
mn++;
break;
} else { printf("\nError: Number of mass params exceded maximum limit of %d\n", MAX_MN); return 1; }
Expand Down

0 comments on commit 2ba10cf

Please sign in to comment.