81 |
character*(MAX_LEN_MBUF) msgbuf |
character*(MAX_LEN_MBUF) msgbuf |
82 |
|
|
83 |
#ifdef GENERIC_BAR_MONTH |
#ifdef GENERIC_BAR_MONTH |
84 |
integer mrec, nyears, iyear, tmpmon |
integer mrec, nyears, iyear |
85 |
#endif |
#endif |
86 |
c == external functions == |
c == external functions == |
87 |
|
|
107 |
|
|
108 |
#ifdef ALLOW_CTDSCLIM_COST_CONTRIBUTION |
#ifdef ALLOW_CTDSCLIM_COST_CONTRIBUTION |
109 |
|
|
|
#ifdef ECCO_VERBOSE |
|
|
_BEGIN_MASTER( mythid ) |
|
|
write(msgbuf,'(a)') ' ' |
|
|
call print_message( msgbuf, standardmessageunit, |
|
|
& SQUEEZE_RIGHT , mythid) |
|
|
write(msgbuf,'(a,i8.8)') |
|
|
& ' cost_Ctdsclim: number of records to process = ',nmonsrec |
|
|
call print_message( msgbuf, standardmessageunit, |
|
|
& SQUEEZE_RIGHT , mythid) |
|
|
write(msgbuf,'(a)') ' ' |
|
|
call print_message( msgbuf, standardmessageunit, |
|
|
& SQUEEZE_RIGHT , mythid) |
|
|
_END_MASTER( mythid ) |
|
|
#endif |
|
|
|
|
110 |
if (optimcycle .ge. 0) then |
if (optimcycle .ge. 0) then |
111 |
ilctdsclim = ilnblnk( sbarfile ) |
ilctdsclim = ilnblnk( sbarfile ) |
112 |
write(fnamesalt(1:80),'(2a,i10.10)') |
write(fnamesalt(1:80),'(2a,i10.10)') |
117 |
|
|
118 |
#ifdef GENERIC_BAR_MONTH |
#ifdef GENERIC_BAR_MONTH |
119 |
c-- Loop over month |
c-- Loop over month |
|
if (nmonsrec.GT.12) then |
|
|
tmpmon = 12 |
|
|
else |
|
|
tmpmon = nmonsrec |
|
|
endif |
|
120 |
do irec = 1,12 |
do irec = 1,12 |
121 |
nyears=int((nmonsrec-irec)/12)+1 |
nyears=int((nmonsrec-irec)/12)+1 |
122 |
if(nyears.gt.0) then |
if(nyears.gt.0) then |