!copyright (C) 2001 MSC-RPN COMM %%%RPNPHY%%% ***S/P RIFLUX *SUBROUTINE RIFLUX(R,PRI,N,M,NK) 1 #include "impnone.cdk"
INTEGER N,M,NK REAL R(N,NK),PRI(N,NK) * *Author * J. Cote (RPN 1983) * *Revision * 001 J. Cote RPN(Nov 1984)SEF version documentation * * 002 J. Mailhot RPN(Feb 1985)'Clipping' of GAMA (CG) * 003 J. Mailhot RPN(Mar 1985)Derive by logarithm * 004 M. Lepine - RFE model code revision project (Feb 87) * 005 R. Benoit - Option of 'E' levels interval (Mar 89) * 006 Y. Delage (May89) Revision of the vertical diffusion * 007 J. Mailhot RPN(Feb 1990)Compatible with *RIGRAD* * 008 C. Girard (March 1993) Clean-up * *Object * to calculate the flux Richardson number * *Arguments * * - Input/Output - * R gradient Richardson number as input (if STAGE, R(*,NK)=0) * flux Richardson number as output (if STAGE, R(*,NK)=0) * * - Input - * PRI inverse of generalized Prandtl number (KT/KM) * N horizontal dimension * M 1st dimension of Q * NK vertical dimension * * *IMPLICITES * #include "clefcon.cdk"
* ** * INTEGER J,K * DO 2 K=1,NK-1 DO 2 J=1,N * * CALCUL DE RIF * R(J,K)=PRI(J,K)*R(J,K) * 2 CONTINUE * DO 3 J=1,N R(J,NK)=0. 3 CONTINUE * RETURN END