30 |
|
|
31 |
#ifdef ALLOW_COST_TEST |
#ifdef ALLOW_COST_TEST |
32 |
C == Local variables |
C == Local variables |
|
_RS maskC (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
|
33 |
_RL thetaRef |
_RL thetaRef |
34 |
|
|
35 |
integer i, j, k |
integer i, j, k |
52 |
C-- Calculate mask for tracer cells (0 => land, 1 => water) |
C-- Calculate mask for tracer cells (0 => land, 1 => water) |
53 |
k=1 |
k=1 |
54 |
|
|
|
do bj = jtlo,jthi |
|
|
do bi = itlo,ithi |
|
|
do j=1,sNy |
|
|
do i=1,sNx |
|
|
maskC(i,j) = 1. |
|
|
if (_hFacC(i,j,k,bi,bj) .eq. 0.) maskC(i,j)=0. |
|
|
end do |
|
|
end do |
|
|
end do |
|
|
end do |
|
|
|
|
55 |
C-- Calculate cost function on tile of this instance |
C-- Calculate cost function on tile of this instance |
56 |
do bj = jtlo,jthi |
do bj = jtlo,jthi |
57 |
do bi = itlo,ithi |
do bi = itlo,ithi |