Skip to content

Commit

Permalink
Fixed typo in precip scaling as used in PDD model
Browse files Browse the repository at this point in the history
  • Loading branch information
talbrecht committed Dec 1, 2017
1 parent 9d148b8 commit 4bba34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coupler/atmosphere/LapseRates.cc
Expand Up @@ -145,7 +145,7 @@ void LapseRates::precip_time_series_impl(int i, int j, std::vector<double> &resu
for (unsigned int m = 0; m < m_ts_times.size(); ++m) {

if (do_precip_scale) {
result[m] *= exp(m_precip_lapse_rate * ((*m_surface)(i, j) - usurf[m]));
result[m] *= exp(m_precip_scale_factor * ((*m_surface)(i, j) - usurf[m]));
} else {
result[m] -= m_precip_lapse_rate * ((*m_surface)(i, j) - usurf[m]);
}
Expand Down

0 comments on commit 4bba34f

Please sign in to comment.