Skip to content

Commit

Permalink
Update Updateforcing.cu
Browse files Browse the repository at this point in the history
  • Loading branch information
CyprienBosserelle committed Jan 21, 2021
1 parent 063efab commit 3cdfd8c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Updateforcing.cu
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,14 @@ template <class T> __global__ void AddrainforcingGPU(Param XParam, BlockP<T> XBl

T x = XParam.xo + XBlock.xo[ib] + ix * delta;
T y = XParam.yo + XBlock.yo[ib] + iy * delta;

Rainhh = T(interpDyn2BUQ(x, y, Rain.GPU));

if (Rain.uniform)
{
Rainhh = Rain.nowvalue;
}
else
{
Rainhh = T(interpDyn2BUQ(x, y, Rain.GPU));
}


Rainhh = Rainhh / T(1000.0) / T(3600.0); // convert from mm/hrs to m/s
Expand Down

0 comments on commit 3cdfd8c

Please sign in to comment.