Skip to content

Commit

Permalink
Fixes negatively biased bare soil albedo: #178
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Hamman committed Dec 19, 2014
1 parent f411198 commit cd23a6a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/full_energy.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,12 @@ int full_energy(int gridcell,
prepare_full_energy(iveg, Nveg, options.Nnode, all_vars, soil_con, moist0, ice0);

/** Compute Bare (free of snow) Albedo **/
bare_albedo = veg_var[iveg][0].albedo;
if (iveg!=Nveg){
bare_albedo = veg_var[iveg][0].albedo;
}
else {
bare_albedo = BARE_SOIL_ALBEDO;
}

/*************************************
Compute the aerodynamic resistance
Expand Down

0 comments on commit cd23a6a

Please sign in to comment.