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/ecrad/utilities/easy_netcdf.F90

    r4773 r5158  
    392392
    393393    ndimlens(:) = 0
    394     do j = 1,ndims
     394    DO j = 1,ndims
    395395      istatus = nf90_inquire_dimension(this%ncid, idimids(j), len=ndimlens(j))
    396396      if (istatus /= NF90_NOERR) then
     
    404404    if (present(ntotal)) then
    405405      ntotal = 1
    406       do j = 1, ndims
     406      DO j = 1, ndims
    407407        ntotal = ntotal * ndimlens(j)
    408408      end do
     
    613613    ! Compute number of elements of the variable in the file
    614614    ntotal = 1
    615     do j = 1, ndims
     615    DO j = 1, ndims
    616616      ntotal = ntotal * ndimlens(j)
    617617    end do
     
    658658    ! Compute number of elements of the variable in the file
    659659    ntotal = 1
    660     do j = 1, ndims
     660    DO j = 1, ndims
    661661      ntotal = ntotal * ndimlens(j)
    662662    end do
     
    707707    ! i.e. excluding the slowest varying dimension, indexed by "index"
    708708    ntotal = 1
    709     do j = 1, ndims-1
     709    DO j = 1, ndims-1
    710710      ntotal = ntotal * ndimlens(j)
    711711    end do
     
    761761    ! Ensure variable has only one dimension in the file
    762762    n = 1
    763     do j = 1, ndims
     763    DO j = 1, ndims
    764764      n = n * ndimlens(j)
    765765      if (j > 1 .and. ndimlens(j) > 1) then
     
    819819    ! Ensure variable has only one dimension in the file
    820820    n = 1
    821     do j = 1, ndims
     821    DO j = 1, ndims
    822822      n = n * ndimlens(j)
    823823      if (j > 1 .and. ndimlens(j) > 1) then
     
    878878    ! Ensure variable has only one dimension in the file
    879879    n = 1
    880     do j = 1, ndims
     880    DO j = 1, ndims
    881881      n = n * ndimlens(j)
    882882      if (j > 1 .and. ndimlens(j) > 1) then
     
    938938    ! Ensure variable has only one dimension aside from the last one
    939939    n = 1
    940     do j = 1, ndims-1
     940    DO j = 1, ndims-1
    941941      n = n * ndimlens(j)
    942942      if (j > 1 .and. ndimlens(j) > 1) then
     
    10211021    ! dimensions
    10221022    ntotal = 1
    1023     do j = 1, ndims
     1023    DO j = 1, ndims
    10241024      ntotal = ntotal * ndimlens(j)
    10251025      if (j > 2 .and. ndimlens(j) > 1) then
     
    11331133    ! dimensions
    11341134    ntotal = 1
    1135     do j = 1, ndims
     1135    DO j = 1, ndims
    11361136      ntotal = ntotal * ndimlens(j)
    11371137      if (j > 2 .and. ndimlens(j) > 1) then
     
    12021202      vcount(1:2) = [ndimlen1,1]
    12031203     
    1204       do j = 1,ndimlen2
     1204      DO j = 1,ndimlen2
    12051205        vstart(2) = j
    12061206        istatus = nf90_get_var(this%ncid, ivarid, matrix(:,j), start=vstart, count=vcount)
     
    12521252    ! dimensions aside from the last one
    12531253    ntotal = 1
    1254     do j = 1, ndims-1
     1254    DO j = 1, ndims-1
    12551255      ntotal = ntotal * ndimlens(j)
    12561256      if (j > 2 .and. ndimlens(j) > 1) then
     
    13761376    ! dimensions
    13771377    ntotal = 1
    1378     do j = 1, ndims
     1378    DO j = 1, ndims
    13791379      ntotal = ntotal * ndimlens(j)
    13801380      if (j > 3 .and. ndimlens(j) > 1) then
     
    15121512    ! dimensions aside from the last one
    15131513    ntotal = 1
    1514     do j = 1, ndims-1
     1514    DO j = 1, ndims-1
    15151515      ntotal = ntotal * ndimlens(j)
    15161516      if (j > 3 .and. ndimlens(j) > 1) then
     
    16541654    ! dimensions
    16551655    ntotal = 1
    1656     do j = 1, ndims
     1656    DO j = 1, ndims
    16571657      ntotal = ntotal * ndimlens(j)
    16581658      if (j > 4 .and. ndimlens(j) > 1) then
     
    18041804
    18051805    ! Pad with blanks since nf90_get_att does not do this
    1806     do j = i_attr_len+1,len(attr_str)
     1806    DO j = i_attr_len+1,len(attr_str)
    18071807      attr_str(j:j) = ' '
    18081808    end do
     
    18781878
    18791879    ! Pad with blanks since nf90_get_att does not do this
    1880     do j = i_attr_len+1,len(attr_str)
     1880    DO j = i_attr_len+1,len(attr_str)
    18811881      attr_str(j:j) = ' '
    18821882    end do
     
    27052705    end if
    27062706
    2707     do jdim = 1,ndims
     2707    DO jdim = 1,ndims
    27082708      istatus = nf90_inquire_dimension(infile%ncid, idimids(jdim), &
    27092709           &  name=dimname, len=dimlen)
     
    27712771
    27722772    ! Map dimension IDs
    2773     do jdim = 1,ndims
     2773    DO jdim = 1,ndims
    27742774      istatus = nf90_inquire_dimension(infile%ncid, idimids_in(jdim), name=dim_name)
    27752775      if (istatus /= NF90_NOERR) then
     
    28012801
    28022802    ! Copy attributes
    2803     do jattr = 1,nattr
     2803    DO jattr = 1,nattr
    28042804      istatus = nf90_inq_attname(infile%ncid, ivarid_in, jattr, attr_name)
    28052805      if (istatus /= NF90_NOERR) then
Note: See TracChangeset for help on using the changeset viewer.