422 |
C way it won't blow up for weird diagnostics periods. |
C way it won't blow up for weird diagnostics periods. |
423 |
C we fill before updating, so the diag is the one used in this time |
C we fill before updating, so the diag is the one used in this time |
424 |
C step |
C step |
425 |
CALL DIAGNOSTICS_FILL( |
IF ( useDiagnostics ) THEN |
426 |
|
CALL DIAGNOSTICS_FILL( |
427 |
& PARday(1-Olx,1-Oly,1,bi,bj,PARiprev),'PARday ', |
& PARday(1-Olx,1-Oly,1,bi,bj,PARiprev),'PARday ', |
428 |
& 0,Nr,2,bi,bj,myThid ) |
& 0,Nr,2,bi,bj,myThid ) |
429 |
|
ENDIF |
430 |
#endif |
#endif |
431 |
#endif /* ALLOW_PAR_DAY */ |
#endif /* ALLOW_PAR_DAY */ |
432 |
|
|
610 |
O solz) |
O solz) |
611 |
|
|
612 |
#else /* not DAR_RADTRANS_USE_MODEL_CALENDAR */ |
#else /* not DAR_RADTRANS_USE_MODEL_CALENDAR */ |
613 |
C use calendar date for full solar zenith angle computation |
C Use calendar date for full solar zenith angle computation. |
614 |
C oj: average light effective at noon? |
C Use local noon zenith angle to avoid problems with zero cosine and |
615 |
solz = 0.0 _d 0 |
C non-zero light. One should really use a zenith angle compatible with |
616 |
isec = 12*3600 |
C the light fields, in particular averaged over the same time period. |
617 |
|
isec = MOD(36.*3600. - 240.*XC(i,j,bi,bj), 86400.) |
618 |
call radtrans_sfcsolz(rad,iyr,imon,iday,isec, |
call radtrans_sfcsolz(rad,iyr,imon,iday,isec, |
619 |
I XC(i,j,bi,bj),YC(i,j,bi,bj), |
I XC(i,j,bi,bj),YC(i,j,bi,bj), |
620 |
O solz) |
O solz) |