Changeset 1414 for LMDZ4/trunk/libf/cosp/cosp.F90
- Timestamp:
- Jul 15, 2010, 5:21:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/cosp/cosp.F90
r1327 r1414 23 23 ! OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 24 25 !!#include "cosp_defs.h" 25 26 MODULE MOD_COSP 26 27 USE MOD_COSP_TYPES … … 128 129 ! and reff_zero == .false. Reff use in lidar and set to 0 for radar 129 130 endif 130 if ((gbx%use_reff) .and. (reff_zero)) then ! Inconsistent choice. Want to use Reff but not inputs passed131 print *, '---------- COSP ERROR ------------'132 print *, ''133 print *, 'use_reff==.true. but Reff is always zero'134 print *, ''135 print *, '----------------------------------'136 stop137 endif131 ! if ((gbx%use_reff) .and. (reff_zero)) then ! Inconsistent choice. Want to use Reff but not inputs passed 132 ! print *, '---------- COSP ERROR ------------' 133 ! print *, '' 134 ! print *, 'use_reff==.true. but Reff is always zero' 135 ! print *, '' 136 ! print *, '----------------------------------' 137 ! stop 138 ! endif 138 139 if ((.not. gbx%use_reff) .and. (reff_zero)) then ! No Reff in radar. Default in lidar 139 140 gbx%Reff = DEFAULT_LIDAR_REFF … … 322 323 integer :: Niter ! Number of calls to cosp_simulator 323 324 integer :: i,j,k 325 integer :: I_HYDRO 324 326 real,dimension(:,:),pointer :: column_frac_out ! Array with one column of frac_out 325 327 integer,parameter :: scops_debug=0 ! set to non-zero value to print out inputs for debugging in SCOPS … … 330 332 real,dimension(:,:),allocatable :: frac_ls,prec_ls,frac_cv,prec_cv ! Cloud/Precipitation fraction in each model level 331 333 ! Levels are from SURFACE to TOA 334 real,dimension(:,:),allocatable :: rho ! (Npoints, Nlevels). Atmospheric dens 332 335 type(cosp_sghydro) :: sghydro ! Subgrid info for hydrometeors en each iteration 333 336 … … 378 381 do k=1,Nlevels,1 379 382 do i=1,Ncolumns,1 380 if (sgx%frac_out (j,i,Nlevels+1-k) .eq. 1) frac_ls(j,k)=frac_ls(j,k)+1.381 if (sgx%frac_out (j,i,Nlevels+1-k) .eq. 2) frac_cv(j,k)=frac_cv(j,k)+1.383 if (sgx%frac_out (j,i,Nlevels+1-k) == I_LSC) frac_ls(j,k)=frac_ls(j,k)+1. 384 if (sgx%frac_out (j,i,Nlevels+1-k) == I_CVC) frac_cv(j,k)=frac_cv(j,k)+1. 382 385 if (sgx%prec_frac(j,i,Nlevels+1-k) .eq. 1) prec_ls(j,k)=prec_ls(j,k)+1. 383 386 if (sgx%prec_frac(j,i,Nlevels+1-k) .eq. 2) prec_cv(j,k)=prec_cv(j,k)+1. … … 414 417 !--------- Mixing ratios for clouds and Reff for Clouds and precip ------- 415 418 column_frac_out => sgx%frac_out(:,k,:) 416 where (column_frac_out == 1) !+++++++++++ LS clouds ++++++++419 where (column_frac_out == I_LSC) !+++++++++++ LS clouds ++++++++ 417 420 sghydro%mr_hydro(:,k,:,I_LSCLIQ) = gbx%mr_hydro(:,:,I_LSCLIQ) 418 421 sghydro%mr_hydro(:,k,:,I_LSCICE) = gbx%mr_hydro(:,:,I_LSCICE) … … 423 426 sghydro%Reff(:,k,:,I_LSSNOW) = gbx%Reff(:,:,I_LSSNOW) 424 427 sghydro%Reff(:,k,:,I_LSGRPL) = gbx%Reff(:,:,I_LSGRPL) 425 elsewhere (column_frac_out == 2) !+++++++++++ CONV clouds ++++++++428 elsewhere (column_frac_out == I_CVC) !+++++++++++ CONV clouds ++++++++ 426 429 sghydro%mr_hydro(:,k,:,I_CVCLIQ) = gbx%mr_hydro(:,:,I_CVCLIQ) 427 430 sghydro%mr_hydro(:,k,:,I_CVCICE) = gbx%mr_hydro(:,:,I_CVCICE) … … 434 437 !--------- Precip ------- 435 438 if (.not. gbx%use_precipitation_fluxes) then 436 where (column_frac_out == 1) !+++++++++++ LS Precipitation ++++++++439 where (column_frac_out == I_LSC) !+++++++++++ LS Precipitation ++++++++ 437 440 sghydro%mr_hydro(:,k,:,I_LSRAIN) = gbx%mr_hydro(:,:,I_LSRAIN) 438 441 sghydro%mr_hydro(:,k,:,I_LSSNOW) = gbx%mr_hydro(:,:,I_LSSNOW) 439 442 sghydro%mr_hydro(:,k,:,I_LSGRPL) = gbx%mr_hydro(:,:,I_LSGRPL) 440 elsewhere (column_frac_out == 2) !+++++++++++ CONV Precipitation ++++++++443 elsewhere (column_frac_out == I_CVC) !+++++++++++ CONV Precipitation ++++++++ 441 444 sghydro%mr_hydro(:,k,:,I_CVRAIN) = gbx%mr_hydro(:,:,I_CVRAIN) 442 445 sghydro%mr_hydro(:,k,:,I_CVSNOW) = gbx%mr_hydro(:,:,I_CVSNOW) … … 488 491 sghydro%mr_hydro(:,:,:,I_LSRAIN),sghydro%mr_hydro(:,:,:,I_LSSNOW),sghydro%mr_hydro(:,:,:,I_LSGRPL), & 489 492 sghydro%mr_hydro(:,:,:,I_CVRAIN),sghydro%mr_hydro(:,:,:,I_CVSNOW)) 490 493 endif 491 494 !++++++++++ CRM mode ++++++++++ 492 495 else
Note: See TracChangeset
for help on using the changeset viewer.