1 |
C $Header$ |
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
#include "CTRL_CPPOPTIONS.h" |
#include "CTRL_CPPOPTIONS.h" |
5 |
|
|
10 |
|
|
11 |
C !DESCRIPTION: \bv |
C !DESCRIPTION: \bv |
12 |
c *================================================================= |
c *================================================================= |
13 |
c | SUBROUTINE ctrl_hfacc_ini |
c | SUBROUTINE ctrl_hfacc_ini |
14 |
c | Add the hFacC part of the control vector to the model state |
c | Add the hFacC part of the control vector to the model state |
15 |
c | and update the tile halos. |
c | and update the tile halos. |
16 |
c | The control vector is defined in the header file "ctrl.h". |
c | The control vector is defined in the header file "ctrl.h". |
17 |
c *================================================================= |
c *================================================================= |
18 |
C \ev |
C \ev |
80 |
fac = 0. _d 0 |
fac = 0. _d 0 |
81 |
endif |
endif |
82 |
|
|
83 |
Cml write(msgbuf,'(a)') |
Cml write(msgbuf,'(a)') |
84 |
Cml & 'ctrl_hfacc_ini: Re-initialising hFacC,' |
Cml & 'ctrl_hfacc_ini: Re-initialising hFacC,' |
85 |
Cml call print_message( msgbuf, standardmessageunit, |
Cml call print_message( msgbuf, standardmessageunit, |
86 |
Cml & SQUEEZE_RIGHT , mythid) |
Cml & SQUEEZE_RIGHT , mythid) |
87 |
Cml write(msgbuf,'(a)') |
Cml write(msgbuf,'(a)') |
88 |
Cml & ' adding the control vector.' |
Cml & ' adding the control vector.' |
89 |
Cml call print_message( msgbuf, standardmessageunit, |
Cml call print_message( msgbuf, standardmessageunit, |
90 |
Cml & SQUEEZE_RIGHT , mythid) |
Cml & SQUEEZE_RIGHT , mythid) |
91 |
write(standardmessageunit,'(21x,a)') |
write(standardmessageunit,'(21x,a)') |
92 |
& 'ctrl_hfacc_ini: Re-initialising hFacC,' |
& 'ctrl_hfacc_ini: Re-initialising hFacC,' |
93 |
write(standardmessageunit,'(21x,a)') |
write(standardmessageunit,'(21x,a)') |
94 |
& ' adding the control vector.' |
& ' adding the control vector.' |
95 |
|
|
96 |
C Re-initialize hFacC, so that TAMC/TAF can see it |
C Re-initialize hFacC, so that TAMC/TAF can see it |
114 |
Cml _EXCH_XYZ_R8( hFacC ,myThid ) |
Cml _EXCH_XYZ_R8( hFacC ,myThid ) |
115 |
_EXCH_XYZ_R4( hFacC ,myThid ) |
_EXCH_XYZ_R4( hFacC ,myThid ) |
116 |
|
|
117 |
C-- |
C-- |
118 |
il=ilnblnk( xx_hfacc_file ) |
il=ilnblnk( xx_hfacc_file ) |
119 |
write(fnamehfacc(1:80),'(2a,i10.10)') |
write(fnamehfacc(1:80),'(2a,i10.10)') |
120 |
& xx_hfacc_file(1:il),'.',optimcycle |
& xx_hfacc_file(1:il),'.',optimcycle |
144 |
do i = imin,imax |
do i = imin,imax |
145 |
k = k_lowC(i,j,bi,bj) |
k = k_lowC(i,j,bi,bj) |
146 |
c if ( k .gt. 0 ) then |
c if ( k .gt. 0 ) then |
147 |
hFacC(i,j,k,bi,bj) = hFacC(i,j,k,bi,bj) |
hFacC(i,j,k,bi,bj) = hFacC(i,j,k,bi,bj) |
148 |
& + fac*tmpfld2d(i,j,bi,bj) |
& + fac*tmpfld2d(i,j,bi,bj) |
149 |
c end if |
c end if |
150 |
enddo |
enddo |