Hello,
it appears there are a couple of bugs in this file. These can cause problems at run-time when running with more than a single OpenMP thread. Please can someone take a look. The fixes are mentioned below.
The bugs are at lines 182 and 368.
At line 182, in the call to gwdo2d, dx is a 2-d array which is being passed to dxmeter which is a 1-d array, so the following
,dxmeter=dx,deltim=dt &
should be
,dxmeter=dx(ims,j),deltim=dt &
At line 368, in the subroutine gwdo2d the 1-d arrays cleff and dxmeter may have different bounds, so the following
cleff(its:ite) = dxmeter
should be
cleff(its:ite) = dxmeter(its:ite)
Thanks.
it appears there are a couple of bugs in this file. These can cause problems at run-time when running with more than a single OpenMP thread. Please can someone take a look. The fixes are mentioned below.
The bugs are at lines 182 and 368.
At line 182, in the call to gwdo2d, dx is a 2-d array which is being passed to dxmeter which is a 1-d array, so the following
,dxmeter=dx,deltim=dt &
should be
,dxmeter=dx(ims,j),deltim=dt &
At line 368, in the subroutine gwdo2d the 1-d arrays cleff and dxmeter may have different bounds, so the following
cleff(its:ite) = dxmeter
should be
cleff(its:ite) = dxmeter(its:ite)
Thanks.