Changeset 1345 for trunk/LMDZ.COMMON
- Timestamp:
- Sep 8, 2014, 10:09:19 AM (10 years ago)
- Location:
- trunk/LMDZ.COMMON/libf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/dyn3d_common/comuforc_h.F90
r1300 r1345 2 2 IMPLICIT NONE 3 3 REAL,ALLOCATABLE,DIMENSION(:,:) :: uforc 4 REAL,ALLOCATABLE,DIMENSION(:) :: attenua 4 5 REAL :: facwind 6 REAL :: phalf 5 7 end module comuforc_h 6 8 -
trunk/LMDZ.COMMON/libf/dyn3d_common/relaxetat0.F
r1300 r1345 22 22 ! VARIABLES 23 23 REAL ucov(iip1, jjp1,llm) 24 REAL press(llm) 24 25 INTEGER ierr, nid, nvarid 25 26 INTEGER i,j,l,ij … … 63 64 CALL getin('facwind',facwind) 64 65 66 !! CALCULATE ATTENUATION FACTOR WITH ALTITUDE 67 ierr = NF_INQ_VARID (nid, "presnivs", nvarid) 68 IF (ierr .NE. NF_NOERR) THEN 69 write(lunout,*)"dynetat0: Le champ <presnivs> est absent" 70 CALL abort 71 ENDIF 72 ierr = nf90_get_var(nid, nvarid, press) 73 IF (ierr .NE. NF_NOERR) THEN 74 write(lunout,*)"dynetat0: Lecture echouee pour <press>" 75 CALL abort 76 ENDIF 77 phalf = 1.e5 !! at this pressure, attenua is 0.5 78 CALL getin('phalf',phalf) 79 !! attenua goes from 1 at lowermost levels to 0 at uppermost levels 80 IF (.NOT.ALLOCATED(attenua)) ALLOCATE(attenua(llm)) 81 attenua = 0.5*(1.+tanh(log10(press/phalf))) 82 65 83 !! END 66 84 ierr = NF_CLOSE(nid) -
trunk/LMDZ.COMMON/libf/dyn3dpar/leapfrog_p.F
r1302 r1345 678 678 679 679 #ifdef NODYN 680 WRITE(lunout,*)"NO DYN !!!!!"680 !WRITE(lunout,*)"NO DYN !!!!!" 681 681 dv(:,:) = 0.D+0 682 682 du(:,:) = 0.D+0 … … 684 684 dq(:,:,:) = 0.D+0 685 685 dp(:) = 0.D+0 686 if (planet_type.eq."generic") then 687 if (ok_guide) then 688 DO l=1,llm 689 ucov(:,l) = ucov(:,l) + dt*attenua(l)* 690 & ((uforc(:,l)-ucov(:,l))/facwind) 691 ENDDO 692 endif 693 endif 686 694 #else 687 695 ! ADAPTATION GCM POUR CP(T) … … 719 727 if (planet_type.eq."generic") then 720 728 if (ok_guide) then 721 du(:,:) = du(:,:) + ((uforc(:,:)-ucov(:,:)) / facwind) 729 DO l=1,llm 730 du(:,l)=du(:,l)+attenua(l)*((uforc(:,l)-ucov(:,l))/facwind) 731 ENDDO 722 732 endif 723 733 endif
Note: See TracChangeset
for help on using the changeset viewer.