! ! $Header$ ! SUBROUTINE covnat_p(klevel,ucov, vcov, unat, vnat ) USE parallel_lmdz IMPLICIT NONE c======================================================================= c c Auteur: F Hourdin Phu LeVan c ------- c c Objet: c ------ c c ********************************************************************* c calcul des compos. naturelles a partir des comp.covariantes c ******************************************************************** c c======================================================================= #include "dimensions.h" #include "paramet.h" #include "comgeom.h" INTEGER klevel REAL ucov( ip1jmp1,klevel ), vcov( ip1jm,klevel ) REAL unat( ip1jmp1,klevel ), vnat( ip1jm,klevel ) INTEGER l,ij INTEGER :: ijb,ije ijb=ij_begin ije=ij_end if (pole_nord) then DO l = 1,klevel DO ij = 1, iip1 unat (ij,l) =0. END DO ENDDO endif if (pole_sud) then DO l = 1,klevel DO ij = ip1jm+1, ip1jmp1 unat (ij,l) =0. END DO ENDDO endif ijb=ij_begin ije=ij_end if (pole_nord) ijb=ij_begin+iip1 if (pole_sud) ije=ij_end-iip1 DO l = 1,klevel DO ij = ijb, ije unat( ij,l ) = ucov( ij,l ) / cu(ij) ENDDO END DO ijb=ij_begin-iip1 ije=ij_end if (pole_nord) ijb=ij_begin if (pole_sud) ije=ij_end-iip1 DO l = 1,klevel DO ij = ijb,ije vnat( ij,l ) = vcov( ij,l ) / cv(ij) ENDDO ENDDO RETURN END