Skip to content

Commit

Permalink
Removed unnecessary logerror and printf statements
Browse files Browse the repository at this point in the history
- resolves issue #368
  • Loading branch information
kpalmqui committed Aug 8, 2019
1 parent fcec88f commit a3874f4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions ST_resgroups.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,6 @@ void rgroup_Establish(void) {
if (Species[sp]->max_age == 1) {
//printf("Globals.currYear = %hu, call to _add_annuals sp=%d Species[sp]->lastyear_relsize : %.5f \n", Globals.currYear, sp, Species[sp]->lastyear_relsize);
num_est = _add_annuals(rg, sp, Species[sp]->lastyear_relsize);
// printf("g->seedbank annuals=%d \n",g->seedbank);
}

/* Establishment for species that belong to perennial functional groups*/
Expand Down Expand Up @@ -679,14 +678,6 @@ void rgroup_Establish(void) {
}
} /* end ForEachGroup() */


if (ZRO(used_space)) {
// We shouldn't have arrived here
LogError(stderr, LOGFATAL, "Invalid space values");
}

//RealF tmp = 0.;

// If there is unused (or too much used) space we need to redistribute
if (!EQ(used_space, 1.0)) {
//printf("\nYear %d: used_space = %f\n", Globals.currYear, used_space);
Expand All @@ -698,13 +689,9 @@ void rgroup_Establish(void) {
if (g->est_count > 0) {
//printf("%s before: %f -- ", g->name, g->min_res_req);
g->min_res_req = g->min_res_req / used_space;
//printf("%s after: %f\n", g->name, g->min_res_req);
//tmp += g->min_res_req;
}
}
}

//printf("Sum of space after adjustment = %f\n", tmp);
}

/***********************************************************/
Expand Down

0 comments on commit a3874f4

Please sign in to comment.