Ignore:
Timestamp:
Aug 2, 2024, 2:12:03 PM (3 months ago)
Author:
abarral
Message:

Add missing klon on strataer_emiss_mod.F90
Correct various missing explicit declarations
Replace tabs by spaces (tabs are not part of the fortran charset)
Continue cleaning modules
Removed unused arguments and variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/cosp/mod_cosp.F90

    r5099 r5158  
    6868  integer,dimension(2) :: ix,iy
    6969  logical :: reff_zero
    70   real :: maxp,minp
     70  REAL :: maxp,minp
    7171  integer,dimension(:),allocatable :: & ! Dimensions nPoints
    7272                  seed    !  It is recommended that the seed is set to a different value for each model
     
    9595
    9696!++++++++++ Depth of model layers ++++++++++++
    97   do i=1,Nlevels-1
     97  DO i=1,Nlevels-1
    9898    gbx%dlev(:,i) = gbx%zlev_half(:,i+1) - gbx%zlev_half(:,i)
    9999  enddo
     
    195195        Niter = gbx%Npoints/gbx%Npoints_it ! Integer division
    196196        if (Niter*gbx%Npoints_it < gbx%Npoints) Niter = Niter + 1
    197         do i=1,Niter
     197        DO i=1,Niter
    198198            i_first = (i-1)*gbx%Npoints_it + 1
    199199            i_last  = i_first + gbx%Npoints_it - 1
     
    409409       
    410410        ! Precipitation fraction
    411         do j=1,Npoints,1
    412         do k=1,Nlevels,1
    413             do i=1,Ncolumns,1
     411        DO j=1,Npoints,1
     412        DO k=1,Nlevels,1
     413            DO i=1,Ncolumns,1
    414414                if (sgx%frac_out (j,i,Nlevels+1-k) == I_LSC) frac_ls(j,k)=frac_ls(j,k)+1.
    415415                if (sgx%frac_out (j,i,Nlevels+1-k) == I_CVC) frac_cv(j,k)=frac_cv(j,k)+1.
     
    434434        else
    435435            ! This is done within a loop (unvectorized) over nPoints to save memory
    436             do j=1,Npoints
     436            DO j=1,Npoints
    437437                sgx%frac_out(j,:,1:Nlevels)  = sgx%frac_out(j,:,Nlevels:1:-1)
    438438                sgx%prec_frac(j,:,1:Nlevels) = sgx%prec_frac(j,:,Nlevels:1:-1)
     
    445445        ! Populate the subgrid arrays
    446446        call construct_cosp_sghydro(Npoints,Ncolumns,Nlevels,Nhydro,sghydro)
    447         do k=1,Ncolumns
     447        DO k=1,Ncolumns
    448448            !--------- Mixing ratios for clouds and Reff for Clouds and precip -------
    449449            column_frac_out => sgx%frac_out(:,k,:)
     
    498498        enddo
    499499        ! convert the mixing ratio and precipitation flux from gridbox mean to the fraction-based values
    500         do k=1,Nlevels
    501             do j=1,Npoints
     500        DO k=1,Nlevels
     501            DO j=1,Npoints
    502502                !--------- Clouds -------
    503503                if (frac_ls(j,k) .ne. 0.) then
Note: See TracChangeset for help on using the changeset viewer.