| 8 |
|
|
| 9 |
C *==========================================================* |
C *==========================================================* |
| 10 |
C | Determines weights to be used for external files. | |
C | Determines weights to be used for external files. | |
|
C | | |
|
|
c | | |
|
| 11 |
C *==========================================================* |
C *==========================================================* |
| 12 |
|
|
| 13 |
IMPLICIT NONE |
IMPLICIT NONE |
| 20 |
C !INPUT/OUTPUT PARAMETERS: |
C !INPUT/OUTPUT PARAMETERS: |
| 21 |
C === Routine arguments === |
C === Routine arguments === |
| 22 |
C curTime - Simulation time (s) starting from year 0 |
C curTime - Simulation time (s) starting from year 0 |
| 23 |
|
C iloop - loop counter for main loop (coupled periods) |
| 24 |
|
C aloop - loop counter for atm time steps (within a coupled per.) |
| 25 |
|
C wght0, wght1 - weights of the two months to average |
| 26 |
|
C intime0 - first of the two month to average |
| 27 |
|
C intime1 - latter of the two months to average |
| 28 |
|
C iftime - return true if time to do a file re-load |
| 29 |
C myThid - Thread no. that called this routine. |
C myThid - Thread no. that called this routine. |
| 30 |
_RL curTime |
_RL curTime |
| 31 |
INTEGER iloop |
INTEGER iloop |
| 53 |
_RL secYr |
_RL secYr |
| 54 |
DATA secYr /31536000.D0/ !ignore externForcingCycle from data |
DATA secYr /31536000.D0/ !ignore externForcingCycle from data |
| 55 |
_RL ifcyc ! time in current year, in seconds |
_RL ifcyc ! time in current year, in seconds |
| 56 |
INTEGER mn ! loop counter |
INTEGER mn ! loop counter |
| 57 |
|
|
| 58 |
iftime=.FALSE. |
iftime=.FALSE. |
| 59 |
ifcyc=mod(curTime,secYr) |
ifcyc=mod(curTime,secYr) |