Skip to content

Commit

Permalink
Merge pull request #95 from saeranv/master
Browse files Browse the repository at this point in the history
Revising if/else condition for waterTemp derivation to account for epw with < 3 soil depths.
  • Loading branch information
saeranv authored Dec 4, 2018
2 parents 561e543 + a6b4ba8 commit ad1cf06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uwg/uwg.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ def simulate(self):

for it in range(1, self.simTime.nt, 1): # for every simulation time-step (i.e 5 min) defined by uwg
# Update water temperature (estimated)
if self.is_near_zero(self.nSoil):
if self.nSoil < 3: # correction to original matlab code
# for BUBBLE/CAPITOUL/Singapore only
self.forc.deepTemp = sum(self.forcIP.temp)/float(len(self.forcIP.temp))
self.forc.waterTemp = sum(
Expand Down

0 comments on commit ad1cf06

Please sign in to comment.