Skip to content

Commit

Permalink
Revise a bug for getting snow density (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaobhub committed Feb 23, 2024
1 parent 26799fb commit 25b7b94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ AlbedoTwoComponentEvaluator::Evaluate_(const State& S, const std::vector<Composi

for (auto c : lc_ids) {
// albedo of the snow
albedo[1][c] = is_constant_snow_albedo_ ? a_snow_ : Relations::CalcAlbedoSnow(*(snow_dens)[0][c]);
albedo[1][c] = is_constant_snow_albedo_ ? a_snow_ : Relations::CalcAlbedoSnow((*snow_dens)[0][c]);

double albedo_water =
unfrozen_fraction[0][c] * a_water_ + (1 - unfrozen_fraction[0][c]) * a_ice_;
Expand Down

0 comments on commit 25b7b94

Please sign in to comment.