Changeset 2969 for trunk/LMDZ.VENUS
- Timestamp:
- May 26, 2023, 8:37:28 AM (18 months ago)
- Location:
- trunk/LMDZ.VENUS/libf/phyvenus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.VENUS/libf/phyvenus/conf_phys.F90
r2836 r2969 504 504 call getin('ok_ionchem',ok_ionchem) 505 505 506 if ((ok_jonline.eq ..false.).and.(.true..eq.ok_ionchem)) then507 write(*,*) " Attention, incoherence:"506 if ((ok_jonline.eqv..false.).and.(.true..eqv.ok_ionchem)) then 507 write(*,*) "Error incoherent flags :" 508 508 write(*,*) "ok_jonline=",ok_jonline," / ok_ionchem=",ok_ionchem 509 write(*,*) " Si vous souhaitez lesions, ok_jonline==.true."510 write(*,*) " Si vous ne voulez pas desions, ok_ionchem==.false."511 write(*,*) " Verifiez votrephysiq.def"509 write(*,*) "If you include ions, ok_jonline==.true." 510 write(*,*) "If you do not include ions, ok_ionchem==.false." 511 write(*,*) "Check physiq.def" 512 512 stop 513 513 endif -
trunk/LMDZ.VENUS/libf/phyvenus/iono_h.F90
r2836 r2969 222 222 223 223 logical, save :: firstcall = .true. 224 real,parameter :: pi = 4.*atan(1.0) 225 real,parameter :: deg2rad = pi/180. 224 226 real, save :: a(4,4), b(4,4) ! Fourrier coefficient 225 227 integer :: jj … … 257 259 do jj=1,4 258 260 P_indice_factor_local = P_indice_factor_local + & 259 ( a(indice,jj)*cos d((jj-1)*sza_local)+ &260 b(indice,jj)*sin d((jj-1)*sza_local) )261 ( a(indice,jj)*cos((jj-1)*sza_local*deg2rad)+ & 262 b(indice,jj)*sin((jj-1)*sza_local*deg2rad) ) 261 263 enddo 262 264 … … 285 287 ! local variables: 286 288 287 logical, save :: firstcall = .true. 289 logical, save :: firstcall = .true. 290 real,parameter :: pi = 4.*atan(1.0) 291 real,parameter :: deg2rad = pi/180. 288 292 real :: temp_elect ! electronic temperatures 289 293 … … 360 364 enddo 361 365 dfx = (t_Theis(jsza2,1) - t_Theis(jsza1,1)) & 362 / (cosd(sza_Theis(jsza2))-cosd(sza_Theis(jsza1))) 366 / (cos(sza_Theis(jsza2)*deg2rad) & 367 -cos(sza_Theis(jsza1)*deg2rad)) 363 368 364 369 dT = t_Theis(jsza1,1) + & 365 dfx*(cosd(sza_local)-cosd(sza_Theis(jsza1))) 370 dfx*(cos(sza_local*deg2rad) & 371 -cos(sza_Theis(jsza1)*deg2rad)) 366 372 367 373 dfy = (tt-dT) / (z_Theis(1)-130.) … … 394 400 395 401 z_incre =(zkm-z_Theis(iz1))/(z_Theis(iz2)-z_Theis(iz1)) 396 sza_incre =(cosd(sza_local)-cosd(sza_Theis(jsza1))) & 397 /(cosd(sza_Theis(jsza2))-cosd(sza_Theis(jsza1))) 402 sza_incre =(cos(sza_local*deg2rad) & 403 -cos(sza_Theis(jsza1)*deg2rad)) & 404 /(cos(sza_Theis(jsza2)*deg2rad) & 405 -cos(sza_Theis(jsza1)*deg2rad)) 398 406 399 407 temp_elect = dfx*sza_incre + dfy*z_incre & … … 424 432 enddo 425 433 dfx = (t_Theis(jsza2,nz_Theis) - t_Theis(jsza1,nz_Theis)) & 426 / (cosd(sza_Theis(jsza2))-cosd(sza_Theis(jsza1))) 434 / (cos(sza_Theis(jsza2)*deg2rad) & 435 -cos(sza_Theis(jsza1)*deg2rad)) 427 436 428 437 temp_elect = t_Theis(jsza1,nz_Theis) + & 429 dfx*(cosd(sza_local)-cosd(sza_Theis(jsza1))) 438 dfx*(cos(sza_local*deg2rad) & 439 -cos(sza_Theis(jsza1)*deg2rad)) 430 440 endif 431 441 endif … … 500 510 501 511 logical, save :: firstcall = .true. 512 real,parameter :: pi = 4.*atan(1.0) 513 real,parameter :: deg2rad = pi/180. 502 514 real :: temp_ion ! electronic temperatures 503 515 … … 589 601 if(zkm_security .lt. Altimini) then 590 602 dfx = (t_Miller(jsza2,1) - t_Miller(jsza1,1)) & 591 / (cosd(sza_Miller(jsza2))-cosd(sza_Miller(jsza1))) 603 / (cos(sza_Miller(jsza2)*deg2rad) & 604 -cos(sza_Miller(jsza1)*deg2rad)) 592 605 593 606 dT = t_Miller(jsza1,1) + & 594 dfx*(cosd(sza_security)-cosd(sza_Miller(jsza1))) 607 dfx*(cos(sza_security*deg2rad) & 608 -cos(sza_Miller(jsza1)*deg2rad)) 595 609 596 610 dfy = (tt-dT) / (z_Miller(1)-130.) … … 611 625 z_incre =(zkm_security-z_Miller(iz1)) & 612 626 /(z_Miller(iz2)-z_Miller(iz1)) 613 sza_incre =(cosd(sza_security)-cosd(sza_Miller(jsza1))) & 614 /(cosd(sza_Miller(jsza2))-cosd(sza_Miller(jsza1))) 627 sza_incre =(cos(sza_security*deg2rad) & 628 -cos(sza_Miller(jsza1)*deg2rad)) & 629 /(cos(sza_Miller(jsza2)*deg2rad) & 630 -cos(sza_Miller(jsza1)*deg2rad)) 615 631 616 632 temp_ion = dfx*sza_incre + dfy*z_incre &
Note: See TracChangeset
for help on using the changeset viewer.