Changeset 5682 for LMDZ6/trunk
- Timestamp:
- May 26, 2025, 4:07:59 PM (12 days ago)
- Location:
- LMDZ6/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/cv3_routines.f90
r5622 r5682 12 12 USE conema3_mod_h 13 13 USE lmdz_cv_ini, ONLY : alpha,alpha1,beta,betad,coef_peel,cv_flag_feed,delta,dpbase,dtcrit,dtovsh,dttrig,ejectice,ejectliq,elcrit,flag_epkeorig,flag_wb,minorig,nl,nlm,nlp,noconv_stop,noff,omtrain,pbcrit,ptcrit,sigdz,spfac,t_top_max,tau,tau_stop,tlcrit,wbmax 14 USE lmdz_cv_ini, ONLY : keep_bug_indices_cv3_tracer 14 USE lmdz_cv_ini, ONLY : keep_bug_indices_cv3_tracer,restore_bug_cvdn 15 15 16 16 … … 142 142 keep_bug_indices_cv3_tracer = .FALSE. 143 143 CALL getin_p('keep_bug_indices_cv3_tracer', keep_bug_indices_cv3_tracer) 144 restore_bug_cvdn=.false. 145 CALL getin_p('restore_bug_cvdn',restore_bug_cvdn) 144 146 145 147 … … 169 171 WRITE (*, *) 'keepbug_ice_frac =', keepbug_ice_frac 170 172 WRITE (*, *) 'keep_bug_indices_cv3_tracer =', keep_bug_indices_cv3_tracer 173 WRITE (*, *) 'restore_bug_cvdn=',restore_bug_cvdn 171 174 172 175 first = .FALSE. … … 3457 3460 USE cvflag_mod_h 3458 3461 USE lmdz_cv_ini, ONLY : grav,minorig,nl,nlp,rowl,rrd,nl,ci,cl,cpd,cpv 3462 USE lmdz_cv_ini, ONLY : restore_bug_cvdn 3463 3459 3464 IMPLICIT NONE 3460 3465 … … 4032 4037 IF (ok_optim_yield) THEN !| 4033 4038 !----------------------------------------------------------- 4039 4040 ! Restoring a bug that was found and corrected in svn release 4041 ! 5544; which appears to have a much stronger impact than initially 4042 ! thought 4043 4044 if ( restore_bug_cvdn ) then 4045 print*,'DOWND BUG' 4046 DO il = 1, ncum 4047 amp1(il) = upwd(il,i+1) 4048 ad(il) = dnwd(il,i) 4049 ENDDO 4050 else 4051 print*,'DOWND NO BUG' 4034 4052 DO il = 1, ncum 4035 4053 amp1(il) = upwd(il,i+1) 4036 4054 ad(il) = - dnwd(il,i) 4037 4055 ENDDO 4056 endif 4038 4057 !----------------------------------------------------------- 4039 4058 ELSE !(ok_optim_yield) !| -
LMDZ6/trunk/libf/phylmd/lmdz_cv_ini.f90
r5622 r5682 14 14 nl, nlp, nlm 15 15 PUBLIC cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl, & 16 clmci, eps, epsi, epsim1, ginv, hrd, grav, keep_bug_indices_cv3_tracer 16 clmci, eps, epsi, epsim1, ginv, hrd, grav, keep_bug_indices_cv3_tracer, restore_bug_cvdn 17 17 18 18 19 … … 69 70 !$OMP , dtmax, cu, damp) 70 71 71 LOGICAL keep_bug_indices_cv3_tracer 72 !$OMP THREADPRIVATE( keep_bug_indices_cv3_tracer )72 LOGICAL keep_bug_indices_cv3_tracer,restore_bug_cvdn 73 !$OMP THREADPRIVATE( keep_bug_indices_cv3_tracer,restore_bug_cvdn) 73 74 74 75 END MODULE lmdz_cv_ini
Note: See TracChangeset
for help on using the changeset viewer.