Skip to content

Commit

Permalink
Final commit to resolve issue #126
Browse files Browse the repository at this point in the history
- added similiar logic to Species_GetBiomass, as what exists for RGroup_GetBiomass.
  • Loading branch information
kpalmqui committed Jun 12, 2018
1 parent 7766fa7 commit a160364
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ST_species.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,16 @@ IntS Species_NumEstablish(SppIndex sp)
}

/**************************************************************/
RealF Species_GetBiomass(SppIndex sp)
{
RealF Species_GetBiomass(SppIndex sp) {
/*======================================================*/
/* PURPOSE */

/* Retrieve species biomass */
/* HISTORY */
/* Chris Bennett @ LTER-CSU 6/15/2000 */

/*------------------------------------------------------*/

if (Species[sp]->est_count == 0)
return 0.0;
return (Species[sp]->relsize * Species[sp]->mature_biomass);
}

Expand Down

0 comments on commit a160364

Please sign in to comment.