- Timestamp:
- Nov 21, 2019, 4:43:45 PM (5 years ago)
- Location:
- LMDZ6/branches/Ocean_skin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Ocean_skin
-
LMDZ6/branches/Ocean_skin/libf/phylmd/phys_state_var_mod.F90
r3458 r3605 18 18 INTEGER, SAVE :: radpas ! radiation is called every "radpas" step 19 19 INTEGER, SAVE :: cvpas ! convection is called every "cvpas" step 20 INTEGER, SAVE :: cvpas_0 ! reference value for cvpas20 INTEGER, SAVE :: cvpas_0 = 1 ! reference value for cvpas 21 21 INTEGER, SAVE :: wkpas ! wake scheme is called every "wkpas" step 22 22 REAL, PARAMETER :: missing_val_nf90=nf90_fill_real … … 25 25 !$OMP THREADPRIVATE(cvpas_0) 26 26 !$OMP THREADPRIVATE(wkpas) 27 REAL, SAVE :: dtime, solaire_etat028 !$OMP THREADPRIVATE( dtime, solaire_etat0)27 REAL, SAVE :: phys_tstep=0, solaire_etat0 28 !$OMP THREADPRIVATE(phys_tstep, solaire_etat0) 29 29 30 30 REAL, ALLOCATABLE, SAVE :: pctsrf(:,:) … … 202 202 REAL,ALLOCATABLE,SAVE :: ema_pcb(:), ema_pct(:) 203 203 !$OMP THREADPRIVATE(ema_pcb,ema_pct) 204 REAL,ALLOCATABLE,SAVE :: Ma(:,:) ! undilute upward mass flux 204 REAL,ALLOCATABLE,SAVE :: Mipsh(:,:) ! mass flux shed from adiab. ascents 205 !$OMP THREADPRIVATE(Mipsh) 206 REAL,ALLOCATABLE,SAVE :: Ma(:,:) ! undilute upward mass flux 205 207 !$OMP THREADPRIVATE(Ma) 206 208 REAL,ALLOCATABLE,SAVE :: qcondc(:,:) ! in-cld water content from convect … … 286 288 REAL,ALLOCATABLE,SAVE :: total_rain(:), nday_rain(:) 287 289 !$OMP THREADPRIVATE(total_rain,nday_rain) 290 REAL,ALLOCATABLE,SAVE :: paire_ter(:) 291 !$OMP THREADPRIVATE(paire_ter) 288 292 ! albsol1: albedo du sol total pour SW visible 289 293 ! albsol2: albedo du sol total pour SW proche IR … … 312 316 ! toplwdown : downward CS LW flux at TOA 313 317 ! toplwdownclr : downward CS LW flux at TOA 318 ! heat_volc : chauffage solaire du au volcanisme 319 ! cool_volc : refroidissement infrarouge du au volcanisme 314 320 REAL,ALLOCATABLE,SAVE :: clwcon0(:,:),rnebcon0(:,:) 315 321 !$OMP THREADPRIVATE(clwcon0,rnebcon0) … … 322 328 REAL,ALLOCATABLE,SAVE :: cool0(:,:) 323 329 !$OMP THREADPRIVATE(cool0) 330 REAL,ALLOCATABLE,SAVE :: heat_volc(:,:) 331 !$OMP THREADPRIVATE(heat_volc) 332 REAL,ALLOCATABLE,SAVE :: cool_volc(:,:) 333 !$OMP THREADPRIVATE(cool_volc) 324 334 REAL,ALLOCATABLE,SAVE :: topsw(:), toplw(:) 325 335 !$OMP THREADPRIVATE(topsw,toplw) … … 417 427 ! tendencies on wind due to gravity waves 418 428 429 LOGICAL,SAVE :: is_initialized=.FALSE. 430 !$OMP THREADPRIVATE(is_initialized) 431 419 432 ! Ocean-atmosphere interface, subskin ocean and near-surface ocean: 420 433 … … 452 465 include "clesphys.h" 453 466 467 IF (is_initialized) RETURN 468 is_initialized=.TRUE. 454 469 ALLOCATE(pctsrf(klon,nbsrf)) 455 470 ALLOCATE(ftsol(klon,nbsrf)) … … 467 482 ALLOCATE(snow_fall(klon)) 468 483 ALLOCATE(solsw(klon), sollw(klon)) 484 sollw=0.0 469 485 ALLOCATE(radsol(klon)) 470 486 ALLOCATE(swradcorr(klon)) … … 542 558 ALLOCATE(ema_pcb(klon), ema_pct(klon)) 543 559 ! 560 ALLOCATE(Mipsh(klon,klev)) 544 561 ALLOCATE(Ma(klon,klev)) 545 562 ALLOCATE(qcondc(klon,klev)) … … 551 568 ALLOCATE(ale_wake(klon)) 552 569 ALLOCATE(ale_bl_stat(klon)) 570 ale_bl_stat(:)=0 553 571 ALLOCATE(Alp_bl(klon)) 554 572 ALLOCATE(lalim_conv(klon)) … … 556 574 ALLOCATE(wake_deltat(klon,klev), wake_deltaq(klon,klev)) 557 575 ALLOCATE(wake_s(klon), awake_dens(klon), wake_dens(klon)) 576 awake_dens = 0. 558 577 ALLOCATE(wake_Cstar(klon)) 559 578 ALLOCATE(wake_pe(klon), wake_fip(klon)) … … 564 583 ALLOCATE(pfrac_1nucl(klon,klev)) 565 584 ALLOCATE(total_rain(klon), nday_rain(klon)) 585 ALLOCATE(paire_ter(klon)) 566 586 ALLOCATE(albsol1(klon), albsol2(klon)) 567 587 !albedo SB >>> … … 579 599 ALLOCATE(heat(klon,klev), heat0(klon,klev)) 580 600 ALLOCATE(cool(klon,klev), cool0(klon,klev)) 601 ALLOCATE(heat_volc(klon,klev), cool_volc(klon,klev)) 581 602 ALLOCATE(topsw(klon), toplw(klon)) 582 603 ALLOCATE(sollwdown(klon), sollwdownclr(klon)) 604 sollwdown = 0. 583 605 ALLOCATE(toplwdown(klon), toplwdownclr(klon)) 584 606 ALLOCATE(topsw0(klon),toplw0(klon),solsw0(klon),sollw0(klon)) 607 sollw0 = 0. 585 608 ALLOCATE(albpla(klon)) 586 609 !IM ajout variables CFMIP2/CMIP5 … … 619 642 ALLOCATE(ale_bl_trig(klon)) 620 643 !!! fin nrlmd le 10/04/2012 621 if (ok_gwd_rando) allocate(du_gwd_rando(klon, klev)) 622 if (.not. ok_hines .and. ok_gwd_rando) allocate(du_gwd_front(klon, klev)) 623 644 IF (ok_gwd_rando) THEN 645 allocate(du_gwd_rando(klon, klev)) 646 du_gwd_rando(:,:)=0. 647 ENDIF 648 IF (.not. ok_hines .and. ok_gwd_rando) THEN 649 ALLOCATE(du_gwd_front(klon, klev)) 650 du_gwd_front(:,:) = 0 !ym missing init 651 ENDIF 624 652 if (activate_ocean_skin >= 1) ALLOCATE(ds_ns(klon), dt_ns(klon)) 625 653 … … 693 721 deallocate(ema_cbmf) 694 722 deallocate(ema_pcb, ema_pct) 695 deallocate(M a, qcondc)723 deallocate(Mipsh, Ma, qcondc) 696 724 deallocate(wd, sigd) 697 725 deallocate(cin, ALE, ALP) … … 710 738 deallocate(pfrac_1nucl) 711 739 deallocate(total_rain, nday_rain) 740 deallocate(paire_ter) 712 741 deallocate(albsol1, albsol2) 713 742 !albedo SB >>> … … 718 747 deallocate(heat, heat0) 719 748 deallocate(cool, cool0) 749 deallocate(heat_volc, cool_volc) 720 750 deallocate(topsw, toplw) 721 751 deallocate(sollwdown, sollwdownclr) … … 757 787 deallocate(ale_bl_trig) 758 788 !!! fin nrlmd le 10/04/2012 789 759 790 if (activate_ocean_skin >= 1) deALLOCATE(ds_ns, dt_ns) 760 791 792 is_initialized=.FALSE. 793 761 794 END SUBROUTINE phys_state_var_end 762 795
Note: See TracChangeset
for help on using the changeset viewer.