Changeset 704 for LMDZ4/branches/V3_test/libf/phylmd/orografi.F
- Timestamp:
- Aug 17, 2006, 5:41:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/V3_test/libf/phylmd/orografi.F
r675 r704 9 9 s d_t, d_u, d_v) 10 10 c 11 USE dimphy 11 12 IMPLICIT none 12 13 c====================================================================== … … 26 27 c d_v-----output-R-increment de la vitesse v 27 28 c====================================================================== 28 #include "dimensions.h"29 #include "dimphy.h"29 cym#include "dimensions.h" 30 cym#include "dimphy.h" 30 31 #include "YOMCST.h" 31 32 c … … 132 133 r , pvom,pvol,pte ) 133 134 135 USE dimphy 134 136 implicit none 135 137 … … 181 183 c 182 184 c 183 #include "dimensions.h"184 #include "dimphy.h"185 cym#include "dimensions.h" 186 cym#include "dimphy.h" 185 187 #include "YOMCST.h" 186 188 #include "YOEGWD.h" … … 191 193 c 192 194 c 193 integer nlon, nlev, klevm1 195 cym integer nlon, nlev, klevm1 196 integer nlon, nlev 194 197 integer kgwd, jl, ilevp1, jk, ji 195 198 real zdelp, ztemp, zforc, ztend … … 259 262 c ztmst=twodt 260 263 c if(nstep.eq.nstart) ztmst=0.5*twodt 261 klevm1=klev-1264 cym klevm1=klev-1 262 265 ztmst=ptsphy 263 266 zrtmst=1./ztmst … … 466 469 c 467 470 c----------------------------------------------------------------------- 471 USE dimphy 468 472 implicit none 469 473 c 470 474 471 #include "dimensions.h"472 #include "dimphy.h"475 cym#include "dimensions.h" 476 cym#include "dimphy.h" 473 477 #include "YOMCST.h" 474 478 #include "YOEGWD.h" … … 934 938 c 935 939 c----------------------------------------------------------------------- 940 USE dimphy 936 941 implicit none 937 #include "dimensions.h"938 #include "dimphy.h"942 cym#include "dimensions.h" 943 cym#include "dimphy.h" 939 944 #include "YOMCST.h" 940 945 #include "YOEGWD.h" … … 1068 1073 C PASSAGE OF THE NEW GWDRAG TO I.F.S. (F. LOTT, 22/11/93) 1069 1074 C----------------------------------------------------------------------- 1075 USE dimphy 1070 1076 implicit none 1071 1077 C … … 1073 1079 C 1074 1080 1075 #include "dimensions.h"1076 #include "dimphy.h"1081 cym#include "dimensions.h" 1082 cym#include "dimphy.h" 1077 1083 #include "YOMCST.h" 1078 1084 #include "YOEGWD.h" … … 1299 1305 s d_t, d_u, d_v) 1300 1306 c 1307 USE dimphy 1301 1308 IMPLICIT none 1302 1309 c====================================================================== … … 1316 1323 c d_v-----output-R-increment de la vitesse v 1317 1324 c====================================================================== 1318 #include "dimensions.h"1319 #include "dimphy.h"1325 cym#include "dimensions.h" 1326 cym#include "dimphy.h" 1320 1327 #include "YOMCST.h" 1321 1328 c … … 1439 1446 C F.LOTT LMD 22/11/95 1440 1447 C 1448 USE dimphy 1441 1449 implicit none 1442 1450 C 1443 1451 C 1444 #include "dimensions.h"1445 #include "dimphy.h"1452 cym#include "dimensions.h" 1453 cym#include "dimphy.h" 1446 1454 #include "YOMCST.h" 1447 1455 #include "YOEGWD.h" … … 1473 1481 C* 0.2 LOCAL ARRAYS 1474 1482 C ------------ 1475 logical lifthigh 1476 integer klevm1, jl, ilevh, jk 1483 logical lifthigh, ll1 1484 cym integer klevm1, jl, ilevh, jk 1485 integer jl, ilevh, jk 1477 1486 real zcons1, ztmst, zrtmst,zpi, zhgeo 1478 1487 real zdelp, zslow, zsqua, zscav, zbet … … 1497 1506 IF(NLON.NE.KLON.OR.NLEV.NE.KLEV)STOP 1498 1507 ZCONS1=1./RD 1499 KLEVM1=KLEV-11508 cym KLEVM1=KLEV-1 1500 1509 ZTMST=PTSPHY 1501 1510 ZRTMST=1./ZTMST … … 1698 1707 RETURN 1699 1708 END 1709 1710 1700 1711 SUBROUTINE SUGWD(NLON,NLEV,paprs,pplay) 1712 USE dimphy 1713 c USE parallel 1701 1714 C 1702 1715 C**** *SUGWD* INITIALIZE COMMON YOEGWD CONTROLLING GRAVITY WAVE DRAG … … 1751 1764 REAL pplay(nlon,nlev) 1752 1765 real zpr,zstra,zsigt,zpm1r 1766 REAL,SAVE,ALLOCATABLE :: pplay_mpi(:,:) 1767 REAL,SAVE,ALLOCATABLE :: paprs_mpi(:,:) 1768 REAL,SAVE,ALLOCATABLE :: pplay_glo(:,:) 1769 REAL,SAVE,ALLOCATABLE :: paprs_glo(:,:) 1770 1753 1771 C 1754 1772 C* 1. SET THE VALUES OF THE PARAMETERS … … 1766 1784 cold ZSIGT=0.85 1767 1785 C 1786 c$OMP MASTER 1787 ALLOCATE(pplay_mpi(klon_mpi,nlev)) 1788 ALLOCATE(paprs_mpi(klon_mpi,nlev+1)) 1789 ALLOCATE(pplay_glo(klon2,nlev)) 1790 ALLOCATE(paprs_glo(klon2,nlev+1)) 1791 c$OMP END MASTER 1792 c$OMP BARRIER 1793 1794 CALL GatherField_omp(pplay,pplay_mpi,nlev) 1795 CALL GatherField_omp(paprs,paprs_mpi,nlev+1) 1796 1797 c$OMP MASTER 1798 CALL AllGatherField(pplay_mpi,pplay_glo,nlev) 1799 CALL AllGatherField(paprs_mpi,paprs_glo,nlev+1) 1800 c$OMP END MASTER 1801 c$OMP BARRIER 1802 1768 1803 DO 110 JK=1,NLEV 1769 ZPM1R=pplay (nlon/2,jk)/paprs(nlon/2,1)1804 ZPM1R=pplay_glo(klon2/2,jk)/paprs_glo(klon2/2,1) 1770 1805 IF(ZPM1R.GE.ZSIGT)THEN 1771 1806 nktopg=JK 1772 1807 ENDIF 1773 ZPM1R=pplay (nlon/2,jk)/paprs(nlon/2,1)1808 ZPM1R=pplay_glo(klon2/2,jk)/paprs_glo(klon2/2,1) 1774 1809 IF(ZPM1R.GE.ZSTRA)THEN 1775 1810 NSTRA=JK 1776 1811 ENDIF 1777 1812 110 CONTINUE 1813 1814 c$OMP BARRIER 1815 c$OMP MASTER 1816 DEALLOCATE(pplay_mpi) 1817 DEALLOCATE(paprs_mpi) 1818 DEALLOCATE(pplay_glo) 1819 DEALLOCATE(paprs_glo) 1820 c$OMP END MASTER 1821 c$OMP BARRIER 1822 1778 1823 c 1779 1824 c inversion car dans orodrag on compte les niveaux a l'envers
Note: See TracChangeset
for help on using the changeset viewer.