File indexing completed on 2018-03-02 18:38:01 UTC
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
53b68b7823 Dimi*0001 #include "BBL_OPTIONS.h"
0002
0003
0004
0005
0006 SUBROUTINE BBL_CALC_RHO(
0007 I tFld, sFld,
0008 O rhoLoc,
0009 I k, bi, bj, myTime, myIter, myThid )
0010
0011
0012
0013
0014
0015
3831aca339 Dimi*0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
53b68b7823 Dimi*0026
3831aca339 Dimi*0027
53b68b7823 Dimi*0028
0029
0030
0031 IMPLICIT NONE
0032
0033
0034 #include "SIZE.h"
0035 #include "EEPARAMS.h"
0036 #include "PARAMS.h"
0037 #include "GRID.h"
0038 #include "BBL.h"
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050 _RL tFld (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
0051 _RL sFld (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
15338fa568 Dimi*0052 _RL rhoLoc (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
53b68b7823 Dimi*0053 INTEGER k, bi, bj
0054 _RL myTime
0055 INTEGER myIter, myThid
0056
0057
0058
0059
0060
0061
0062 _RL rBBL (1-OLx:sNx+OLx,1-OLy:sNy+OLy)
0063 INTEGER i,j,kl
0064
0065
0066
0067
0068 CALL FIND_RHO_2D(
0069 I 1-OLx, sNx+OLx, 1-OLy, sNy+OLy, k,
0070 I tFld(1-OLx,1-OLy,k,bi,bj),
0071 I sFld(1-OLx,1-OLy,k,bi,bj),
0072 O rhoLoc(1-OLx,1-OLy,k,bi,bj),
0073 I k, bi, bj, myThid )
0074
0075
0076 kl = MAX(k-1,1)
0077 CALL FIND_RHO_2D(
0078 I 1-OLx, sNx+OLx, 1-OLy, sNy+OLy, kl,
b5d97f904e Jean*0079 I bbl_theta(1-OLx,1-OLy,bi,bj),
0080 I bbl_salt(1-OLx,1-OLy,bi,bj),
53b68b7823 Dimi*0081 O rBBL,
0082 I kl, bi, bj, myThid )
0083
0084
0085 DO j=1-OLy,sNy+OLy
0086 DO i=1-OLx,sNx+OLx
b5d97f904e Jean*0087 IF ( k .GT. kLowC(i,j,bi,bj) )
53b68b7823 Dimi*0088 & rhoLoc(i,j,k,bi,bj) = rBBL(i,j)
0089 ENDDO
0090 ENDDO
0091
15338fa568 Dimi*0092
53b68b7823 Dimi*0093 IF ( k .EQ. Nr ) THEN
0094 CALL FIND_RHO_2D(
0095 I 1-OLx, sNx+OLx, 1-OLy, sNy+OLy, Nr,
b5d97f904e Jean*0096 I bbl_theta(1-OLx,1-OLy,bi,bj),
0097 I bbl_salt(1-OLx,1-OLy,bi,bj),
15338fa568 Dimi*0098 O bbl_rho_nr(1-OLx,1-OLy,bi,bj),
53b68b7823 Dimi*0099 I Nr, bi, bj, myThid )
0100 ENDIF
0101
0102
0103
0104 RETURN
0105 END