Changeset 5103 for LMDZ6/branches/Amaury_dev/libf/phydev/physiq_mod.F90
- Timestamp:
- Jul 23, 2024, 3:29:36 PM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phydev/physiq_mod.F90
r5101 r5103 56 56 real :: temp_newton(klon,klev) 57 57 integer :: k 58 logical, save :: first=. true.58 logical, save :: first=.TRUE. 59 59 !$OMP THREADPRIVATE(first) 60 60 … … 75 75 76 76 ! initializations 77 if(debut) then ! Things to do only for the first CALL to physics77 IF (debut) then ! Things to do only for the first CALL to physics 78 78 ! load initial conditions for physics (including the grid) 79 79 CALL phys_state_var_init() ! some initializations, required before calling phyetat0 … … 137 137 !$OMP END MASTER 138 138 !$OMP BARRIER 139 endif! of if (debut)139 END IF ! of if (debut) 140 140 141 141 ! increment local time counter itau … … 154 154 d_v(1:klon,1)=-v(1:klon,1)/86400. 155 155 ! newtonian relaxation towards temp_newton() 156 dok=1,klev156 DO k=1,klev 157 157 temp_newton(1:klon,k)=280.+cos(latitude(1:klon))*40.-pphi(1:klon,k)/rg*6.e-3 158 158 d_t(1:klon,k)=(temp_newton(1:klon,k)-t(1:klon,k))/1.e5 159 enddo 159 END DO 160 160 161 161 162 print*,'PHYDEV: itau=',itau162 PRINT*,'PHYDEV: itau=',itau 163 163 164 164 ! write some outputs: 165 165 ! IOIPSL 166 166 #ifndef CPP_IOIPSL_NO_OUTPUT 167 if(modulo(itau,iwrite_phys)==0) then168 CALL histwrite_phy(nid_hist,. false.,"temperature",itau,t)169 CALL histwrite_phy(nid_hist,. false.,"u",itau,u)170 CALL histwrite_phy(nid_hist,. false.,"v",itau,v)171 CALL histwrite_phy(nid_hist,. false.,"ps",itau,paprs(:,1))172 endif 167 IF (modulo(itau,iwrite_phys)==0) then 168 CALL histwrite_phy(nid_hist,.FALSE.,"temperature",itau,t) 169 CALL histwrite_phy(nid_hist,.FALSE.,"u",itau,u) 170 CALL histwrite_phy(nid_hist,.FALSE.,"v",itau,v) 171 CALL histwrite_phy(nid_hist,.FALSE.,"ps",itau,paprs(:,1)) 172 END IF 173 173 #endif 174 174 … … 191 191 192 192 ! if lastcall, then it is time to write "restartphy.nc" file 193 if(lafin) then193 IF (lafin) then 194 194 CALL phyredem("restartphy.nc") 195 endif 195 END IF 196 196 197 end subroutinephysiq197 END SUBROUTINE physiq 198 198 199 199 END MODULE physiq_mod
Note: See TracChangeset
for help on using the changeset viewer.