Changeset 1851 for LMDZ5/trunk/libf
- Timestamp:
- Aug 29, 2013, 4:48:39 PM (11 years ago)
- Location:
- LMDZ5/trunk/libf/phylmd
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/iniphysiq.F
r1671 r1851 14 14 & klon_omp_end,klon_mpi_begin 15 15 USE comgeomphy, only : airephy,cuphy,cvphy,rlond,rlatd 16 16 USE phyaqua_mod, only: iniaqua 17 17 IMPLICIT NONE 18 18 c -
LMDZ5/trunk/libf/phylmd/phyaqua_mod.F
r1849 r1851 1 module phyaqua_mod 1 2 ! Routines complementaires pour la physique planetaire. 2 3 implicit none 4 5 contains 3 6 4 7 subroutine iniaqua(nlon,latfi,lonfi,iflag_phys) … … 89 92 integer, save:: read_climoz=0 ! read ozone climatology 90 93 91 ! intermediate variables to use getin 92 integer :: nbapp_rad_omp93 real :: co2_ppm_omp,solaire_omp94 logical :: alb_ocean_omp95 real :: rugos_omp94 ! intermediate variables to use getin (need to be "save" to be shared by all threads) 95 integer,save :: nbapp_rad_omp 96 real,save :: co2_ppm_omp,solaire_omp 97 logical,save :: alb_ocean_omp 98 real,save :: rugos_omp 96 99 !------------------------------------------------------------------------- 97 100 ! declaration pour l'appel a phyredem … … 187 190 !$OMP BARRIER 188 191 co2_ppm=co2_ppm_omp 192 write(*,*)"iniaqua: co2_ppm=",co2_ppm 189 193 solaire=solaire_omp 194 write(*,*)"iniaqua: solaire=",solaire 190 195 alb_ocean=alb_ocean_omp 196 write(*,*)"iniaqua: alb_ocean=",alb_ocean 191 197 192 198 radsol=0. … … 229 235 !$OMP BARRIER 230 236 rugos=rugos_omp 237 write(*,*) "iniaqua: rugos=",rugos 231 238 zmasq(:)=pctsrf(:,is_oce) 232 239 … … 359 366 360 367 return 361 end 368 end subroutine iniaqua 362 369 363 370 … … 475 482 476 483 RETURN 477 END 484 END subroutine zenang_an 478 485 479 486 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 486 493 use mod_grid_phy_lmdz, only : klon_glo 487 494 use mod_phys_lmdz_transfert_para, only : gather 495 implicit none 488 496 !#include "dimensions.h" 489 497 !#include "dimphy.h" … … 504 512 real :: phy_glo(klon_glo,360) ! temporary variable, to store phy_***(:) 505 513 ! on the whole physics grid 514 integer :: k 506 515 INTEGER ierr 507 516 INTEGER dimfirst(3) … … 564 573 c 565 574 ierr = NF_ENDDEF(nid) 575 if (ierr.ne.NF_NOERR) then 576 write(*,*) "writelim error: failed to end define mode" 577 write(*,*) NF_STRERROR(ierr) 578 endif 566 579 c 567 580 … … 573 586 ierr = NF_PUT_VAR1_REAL (nid,id_tim,k,FLOAT(k)) 574 587 #endif 588 if (ierr.ne.NF_NOERR) then 589 write(*,*) "writelim error with temps(k),k=",k 590 write(*,*) NF_STRERROR(ierr) 591 endif 575 592 enddo 576 593 … … 701 718 endif 702 719 703 end 720 end subroutine writelim 704 721 705 722 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 717 734 c 718 735 if (klon.ne.nlon) stop'probleme de dimensions dans iniaqua' 736 write(*,*)" profil_sst: type_profil=",type_profil 719 737 do i=1,360 720 738 c phy_sst(:,i) = 260.+50.*cos(rlatd(:))**2 … … 887 905 amn=MIN(phy_sst(1,1),1000.) 888 906 amx=MAX(phy_sst(1,1),-1000.) 907 imn=1 ; kmn=1 ; imx=1 ; kmx=1 889 908 DO k=1, 360 890 909 DO i=2, nlon … … 902 921 ENDDO 903 922 c 904 PRINT*,' debut avant writelim min max phy_sst',imn,kmn,amn,905 &imx,kmx,amx923 PRINT*,'profil_sst: imn, kmn, phy_sst(imn,kmn) ',imn,kmn,amn 924 PRINT*,'profil_sst: imx, kmx, phy_sst(imx,kmx) ',imx,kmx,amx 906 925 cIM end : verif profil SST: phy_sst 907 926 908 927 return 909 end 928 end subroutine profil_sst 929 930 end module phyaqua_mod -
LMDZ5/trunk/libf/phylmd/physiq.F
r1849 r1851 45 45 use conf_phys_m, only: conf_phys 46 46 use radlwsw_m, only: radlwsw 47 use phyaqua_mod, only: zenang_an 47 48 USE control_mod 48 49 #ifdef REPROBUS
Note: See TracChangeset
for help on using the changeset viewer.