Changeset 1775 for LMDZ5/trunk


Ignore:
Timestamp:
Jun 19, 2013, 2:24:47 PM (11 years ago)
Author:
Laurent Fairhead
Message:

On rajoute des prints de debug pour les sorties si prt_level >=9


Added some prints statements on outputs for debugging purposes.
Nedds prt_level>=9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/iophy.F90

    r1674 r1775  
    328328  implicit none
    329329  include 'dimensions.h'
     330  include 'iniprint.h'
    330331   
    331332    integer,intent(in) :: nid
     
    349350     ALLOCATE(index2d(iim*jj_nb))
    350351     ALLOCATE(fieldok(iim*jj_nb))
     352     IF (prt_level >= 9) write(lunout,*)'Sending ',name,' to IOIPSL'
    351353     CALL histwrite(nid,name,itau,Field2d,iim*jj_nb,index2d)
     354     IF (prt_level >= 9) write(lunout,*)'Finished sending ',name,' to IOIPSL'
    352355    else
    353356     ALLOCATE(fieldok(npstn))
     
    369372      ENDDO
    370373     endif
     374     IF (prt_level >= 9) write(lunout,*)'Sending ',name,' to IOIPSL'
    371375     CALL histwrite(nid,name,itau,fieldok,npstn,index2d)
     376     IF (prt_level >= 9) write(lunout,*)'Finished sending ',name,' to IOIPSL'
    372377!
    373378    endif
     
    384389  implicit none
    385390  include 'dimensions.h'
     391  include 'iniprint.h'
    386392   
    387393    integer,intent(in) :: nid
     
    411417     ALLOCATE(index3d(iim*jj_nb*nlev))
    412418     ALLOCATE(fieldok(iim*jj_nb,nlev))
     419     IF (prt_level >= 9) write(lunout,*)'Sending ',name,' to IOIPSL'
    413420     CALL histwrite(nid,name,itau,Field3d,iim*jj_nb*nlev,index3d)
    414     else
     421     IF (prt_level >= 9) write(lunout,*)'Finished sending ',name,' to IOIPSL'
     422   else
    415423      nlev=size(field,2)
    416424      ALLOCATE(index3d(npstn*nlev))
     
    435443       ENDDO
    436444      endif
     445      IF (prt_level >= 9) write(lunout,*)'Sending ',name,' to IOIPSL'
    437446      CALL histwrite(nid,name,itau,fieldok,npstn*nlev,index3d)
     447      IF (prt_level >= 9) write(lunout,*)'Finished sending ',name,' to IOIPSL'
    438448    endif
    439449  deallocate(index3d)
Note: See TracChangeset for help on using the changeset viewer.