Ignore:
Timestamp:
08/01/15 15:05:27 (9 years ago)
Author:
dubos
Message:

Synced with aquaplanet branch HEAT@45 - tested with DCMIP4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/trunk/src/caldyn_gcm.f90

    r327 r347  
    223223          CALL compute_pvort(ps,u,theta_rhodz, mass,theta,qu,qv) 
    224224       ENDDO 
     225!       CALL checksum(f_mass) 
     226!       CALL checksum(f_theta) 
    225227 
    226228       CALL send_message(f_qu,req_qu) 
     
    252254          END IF 
    253255       ENDDO        
     256    
     257!       CALL checksum(f_geopot) 
     258!       CALL checksum(f_dmass) 
     259!       CALL checksum(f_pk) 
     260!       CALL checksum(f_pk) 
    254261        
    255262    CASE(enstrophy) ! enstrophy-conserving 
     
    294301!       CALL write_output_fields(f_ps, f_phis, f_dps, f_u, f_theta_rhodz, f_q, & 
    295302!            f_buf_i, f_buf_v, f_buf_u3d, f_buf_ulon, f_buf_ulat, f_buf_s, f_buf_p) 
    296        CALL un2ulonlat(f_u, f_buf_ulon, f_buf_ulat) 
    297        CALL output_field("ulon",f_buf_ulon) 
    298        CALL output_field("ulat",f_buf_ulat) 
    299  
    300        CALL output_field("ps",f_ps) 
    301        CALL output_field("dps",f_dps) 
    302        CALL output_field("mass",f_mass) 
    303        CALL output_field("dmass",f_dmass) 
    304        CALL output_field("vort",f_qv) 
    305        CALL output_field("theta",f_theta) 
    306        CALL output_field("exner",f_pk) 
    307        CALL output_field("pv",f_qv) 
    308   
     303!       CALL un2ulonlat(f_u, f_buf_ulon, f_buf_ulat) 
     304!       CALL output_field("ulon",f_buf_ulon) 
     305!       CALL output_field("ulat",f_buf_ulat) 
     306 
     307!       CALL output_field("ps",f_ps) 
     308!       CALL output_field("dps",f_dps) 
     309!       CALL output_field("mass",f_mass) 
     310!       CALL output_field("dmass",f_dmass) 
     311!       CALL output_field("vort",f_qv) 
     312!       CALL output_field("theta",f_theta) 
     313!       CALL output_field("exner",f_pk) 
     314!       CALL output_field("pv",f_qv) 
     315!  
    309316    END IF 
    310317     
     
    439446    INTEGER :: i,j,ij,l 
    440447    REAL(rstd) :: p_ik, exner_ik 
    441     INTEGER,SAVE ::ij_omp_begin_ext, ij_omp_end_ext 
    442 !$OMP THREADPRIVATE(ij_omp_begin_ext, ij_omp_end_ext) 
    443     LOGICAL,SAVE :: first=.TRUE. 
    444 !$OMP THREADPRIVATE(first) 
     448    INTEGER    :: ij_omp_begin_ext, ij_omp_end_ext 
    445449 
    446450 
    447451    CALL trace_start("compute_geopot") 
    448452     
    449     IF (first) THEN 
    450       first=.FALSE. 
    451       CALL distrib_level(ij_end_ext-ij_begin_ext+1,ij_omp_begin_ext,ij_omp_end_ext) 
    452       ij_omp_begin_ext=ij_omp_begin_ext+ij_begin_ext-1 
    453       ij_omp_end_ext=ij_omp_end_ext+ij_begin_ext-1 
    454     ENDIF 
     453    CALL distrib_level(ij_end_ext-ij_begin_ext+1,ij_omp_begin_ext,ij_omp_end_ext) 
     454    ij_omp_begin_ext=ij_omp_begin_ext+ij_begin_ext-1 
     455    ij_omp_end_ext=ij_omp_end_ext+ij_begin_ext-1 
    455456 
    456457    IF(caldyn_eta==eta_mass) THEN 
     
    798799    INTEGER :: i,j,ij,l 
    799800    REAL(rstd) :: p_ik, exner_ik 
    800     INTEGER,SAVE ::ij_omp_begin, ij_omp_end 
    801 !$OMP THREADPRIVATE(ij_omp_begin, ij_omp_end) 
    802     LOGICAL,SAVE :: first=.TRUE. 
    803 !$OMP THREADPRIVATE(first) 
     801    INTEGER    :: ij_omp_begin, ij_omp_end 
    804802 
    805803 
    806804    CALL trace_start("compute_geopot") 
    807      
    808     IF (first) THEN 
    809       first=.FALSE. 
    810       CALL distrib_level(ij_end-ij_begin+1,ij_omp_begin,ij_omp_end) 
    811       ij_omp_begin=ij_omp_begin+ij_begin-1 
    812       ij_omp_end=ij_omp_end+ij_begin-1 
    813     ENDIF 
     805 
     806    CALL distrib_level(ij_end-ij_begin+1,ij_omp_begin,ij_omp_end) 
     807    ij_omp_begin=ij_omp_begin+ij_begin-1 
     808    ij_omp_end=ij_omp_end+ij_begin-1 
    814809 
    815810!    REAL(rstd) :: wwuu(iim*3*jjm,llm+1) ! tmp var, don't know why but gain 30% on the whole code in opemp 
     
    959954    USE pression_mod 
    960955    USE omega_mod 
    961     USE write_field 
     956    USE write_field_mod 
    962957    USE vertical_interp_mod 
    963958    USE wind_mod 
Note: See TracChangeset for help on using the changeset viewer.