Changeset 5082 for LMDZ6/branches/Amaury_dev/libf/phylmd/dyn1d
- Timestamp:
- Jul 19, 2024, 5:41:58 PM (4 months ago)
- Location:
- LMDZ6/branches/Amaury_dev/libf/phylmd/dyn1d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/dyn1d/replay1d.F90
r4593 r5082 114 114 call getin_dump 115 115 ! 116 if (ierr .eq.0) then116 if (ierr == 0) then 117 117 write(*,*) 'Everything is cool' 118 118 else … … 142 142 ! ------- 143 143 144 IF(ngrid .NE.2+(jm-2)*(im-1).AND.ngrid.NE.1) &144 IF(ngrid/=2+(jm-2)*(im-1).AND.ngrid/=1) & 145 145 & STOP 'probleme de dim' 146 146 ! traitement des poles -
LMDZ6/branches/Amaury_dev/libf/phylmd/dyn1d/scm.F90
r4933 r5082 292 292 jcode = iflag_nudge 293 293 do i = 1,nudge_max 294 nudge(i) = mod(jcode,10) .ge.1294 nudge(i) = mod(jcode,10) >= 1 295 295 jcode = jcode/10 296 296 enddo … … 417 417 call phys_state_var_init(read_climoz) 418 418 419 if (ngrid .ne.klon) then419 if (ngrid/=klon) then 420 420 print*,'stop in inifis' 421 421 print*,'Probleme de dimensions :' … … 470 470 zlay=-rd*300.*log(play/psurf)/rg ! moved after reading profiles. 471 471 472 IF (forcing_type .eq.59) THEN472 IF (forcing_type == 59) THEN 473 473 ! pour forcing_sandu, on cherche l'indice le plus proche de 700hpa#3000m 474 474 write(*,*) '***********************' 475 475 do l = 1, llm 476 476 write(*,*) 'l,play(l),presnivs(l): ',l,play(l),presnivs(l) 477 if (trouve_700 .and. play(l) .le.70000) then477 if (trouve_700 .and. play(l)<=70000) then 478 478 llm700=l 479 479 print *,'llm700,play=',llm700,play(l)/100. … … 590 590 print*,'avant phyredem' 591 591 pctsrf(1,:)=0. 592 if (nat_surf .eq.0.) then592 if (nat_surf==0.) then 593 593 pctsrf(1,is_oce)=1. 594 594 pctsrf(1,is_ter)=0. 595 595 pctsrf(1,is_lic)=0. 596 596 pctsrf(1,is_sic)=0. 597 else if (nat_surf .eq. 1) then597 else if (nat_surf == 1) then 598 598 pctsrf(1,is_oce)=0. 599 599 pctsrf(1,is_ter)=1. 600 600 pctsrf(1,is_lic)=0. 601 601 pctsrf(1,is_sic)=0. 602 else if (nat_surf .eq. 2) then602 else if (nat_surf == 2) then 603 603 pctsrf(1,is_oce)=0. 604 604 pctsrf(1,is_ter)=0. 605 605 pctsrf(1,is_lic)=1. 606 606 pctsrf(1,is_sic)=0. 607 else if (nat_surf .eq. 3) then607 else if (nat_surf == 3) then 608 608 pctsrf(1,is_oce)=0. 609 609 pctsrf(1,is_ter)=0. … … 780 780 endif 781 781 !====================== end restart ================================= 782 IF (ecrit_slab_oc .eq.1) then782 IF (ecrit_slab_oc==1) then 783 783 open(97,file='div_slab.dat',STATUS='UNKNOWN') 784 elseif (ecrit_slab_oc .eq.0) then784 elseif (ecrit_slab_oc==0) then 785 785 open(97,file='div_slab.dat',STATUS='OLD') 786 786 endif … … 796 796 797 797 it_end = nint(fnday*day_step) 798 do while(it .le.it_end)799 800 if (prt_level .ge.1) then798 do while(it<=it_end) 799 800 if (prt_level>=1) then 801 801 print*,'XXXXXXXXXXXXXXXXXXX ITAP,day,time=', & 802 802 & it,day,time,it_end,day_step 803 803 print*,'PAS DE TEMPS ',timestep 804 804 endif 805 if (it .eq.it_end) lastcall=.True.805 if (it==it_end) lastcall=.True. 806 806 807 807 !--------------------------------------------------------------------- … … 946 946 DO l=1,llm 947 947 948 IF (nudging_u .LT.0) THEN948 IF (nudging_u < 0) THEN 949 949 950 950 d_u_nudge(l)=(u_nudg_mod_cas(l)-u(l))*invtau_u_nudg_mod_cas(l) … … 958 958 959 959 960 IF (nudging_v .LT.0) THEN960 IF (nudging_v < 0) THEN 961 961 962 962 d_v_nudge(l)=(v_nudg_mod_cas(l)-v(l))*invtau_v_nudg_mod_cas(l) … … 971 971 972 972 973 IF (nudging_t .LT.0) THEN973 IF (nudging_t < 0) THEN 974 974 975 975 d_t_nudge(l)=(temp_nudg_mod_cas(l)-temp(l))*invtau_temp_nudg_mod_cas(l) … … 984 984 985 985 986 IF (nudging_qv .LT.0) THEN986 IF (nudging_qv < 0) THEN 987 987 988 988 d_q_nudge(l,1)=(qv_nudg_mod_cas(l)-q(l,1))*invtau_qv_nudg_mod_cas(l) … … 1033 1033 & +d_q_nudge(1:mxcalc,:) ) 1034 1034 1035 if (prt_level .ge.3) then1035 if (prt_level>=3) then 1036 1036 print *, & 1037 1037 & 'physiq-> temp(1),dt_phys(1),d_t_adv(1),dt_cooling(1) ', & … … 1105 1105 enddo 1106 1106 1107 if (ecrit_slab_oc .ne.-1) close(97)1107 if (ecrit_slab_oc/=-1) close(97) 1108 1108 1109 1109 !Al1 Call to 1D equivalent of dynredem (an,mois,jour,heure ?)
Note: See TracChangeset
for help on using the changeset viewer.