diff --git a/ST_species.c b/ST_species.c index c3d63b46..361b3f6c 100644 --- a/ST_species.c +++ b/ST_species.c @@ -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); }