Changeset 5084 for LMDZ6/trunk/libf/misc


Ignore:
Timestamp:
Jul 19, 2024, 6:40:44 PM (5 months ago)
Author:
Laurent Fairhead
Message:

Reverting to r4065. Updating fortran standard broke too much stuff. Will do it by smaller chunks
AB, LF

Location:
LMDZ6/trunk/libf/misc
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/misc/lmdz_xios.F90

    r5066 r5084  
    1212MODULE lmdz_xios
    1313  !!!! Wrapper XIOS
    14   !! => must be replaced later by official xios wrapper when available
     14  !! => must be replaced latter by official xios wrapper when available
    1515
    1616  LOGICAL,PARAMETER :: using_xios = .FALSE.
  • LMDZ6/trunk/libf/misc/write_field.F90

    r5075 r5084  
     1!
     2! $Id$
     3!
    14module write_field
    2   USE lmdz_netcdf, ONLY: nf_sync, nf90_put_var, nf_enddef, nf_def_dim, nf_unlimited, &
    3       nf_clobber, nf90_format, nf_create, nf_def_var
    4 
    5   implicit none
     5implicit none
    66
    77  integer, parameter :: MaxWriteField = 100
     
    7373    subroutine WriteField_gen(name,Field,dimx,dimy,dimz)
    7474    implicit none
     75    include 'netcdf.inc'
    7576      character(len=*) :: name
    7677      integer :: dimx,dimy,dimz
     
    101102      count(4)=1
    102103
    103       status = nf90_put_var(FieldId(Index),FieldVarId(Index),Field,start,count)
     104      status = NF_PUT_VARA_DOUBLE(FieldId(Index),FieldVarId(Index),start,count,Field)
    104105      status = NF_SYNC(FieldId(Index))
    105106     
     
    108109    subroutine CreateNewField(name,dimx,dimy,dimz)
    109110    implicit none
     111    include 'netcdf.inc' 
    110112      character(len=*) :: name
    111113      integer :: dimx,dimy,dimz
     
    124126      status = NF_DEF_DIM(FieldId(NbField),'Z',dimz,TabDim(3))
    125127      status = NF_DEF_DIM(FieldId(NbField),'iter',NF_UNLIMITED,TabDim(4))
    126       status = NF_DEF_VAR(FieldId(NbField),FieldName(NbField),NF90_FORMAT,4,TabDim,FieldVarId(NbField))
     128      status = NF_DEF_VAR(FieldId(NbField),FieldName(NbField),NF_DOUBLE,4,TabDim,FieldVarId(NbField))
    127129      status = NF_ENDDEF(FieldId(NbField))
    128130
    129131    end subroutine CreateNewField
     132   
     133   
    130134   
    131135  subroutine write_field1D(name,Field)
     
    281285                      //trim(int2str(pos+offset))      &   
    282286                      //'," ---> ",g22.16," | ")'
    283 ! d�pent de l'impl�mention, sur compaq, c'est necessaire
     287! dépent de l'implémention, sur compaq, c'est necessaire
    284288!            Pos=Pos+ColumnSize
    285289          endif
  • LMDZ6/trunk/libf/misc/wxios.F90

    r5075 r5084  
    7070        reformaop = "average"
    7171       
    72         IF (op=="inst(X)") THEN
     72        IF (op.EQ."inst(X)") THEN
    7373            reformaop = "instant"
    7474        END IF
    7575       
    76         IF (op=="once") THEN
     76        IF (op.EQ."once") THEN
    7777            reformaop = "once"
    7878        END IF
    7979       
    80         IF (op=="t_max(X)") THEN
     80        IF (op.EQ."t_max(X)") THEN
    8181            reformaop = "maximum"
    8282        END IF
    8383       
    84         IF (op=="t_min(X)") THEN
     84        IF (op.EQ."t_min(X)") THEN
    8585            reformaop = "minimum"
    8686        END IF
     
    604604    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    605605    SUBROUTINE wxios_add_field(fieldname, fieldgroup, fieldlongname, fieldunit)
    606         USE lmdz_netcdf, only: nf90_fill_real
     606        USE netcdf, only: nf90_fill_real
    607607
    608608        IMPLICIT NONE
     
    621621        def = nf90_fill_real
    622622       
    623         IF (fieldunit == " ") THEN
     623        IF (fieldunit .EQ. " ") THEN
    624624            newunit = "-"
    625625        ELSE
     
    666666       
    667667        ! Ajout Abd pour NMC:
    668         IF (fid<=6) THEN
     668        IF (fid.LE.6) THEN
    669669          axis_id="presnivs"
    670670        ELSE
     
    682682       
    683683        !On selectionne le bon groupe de champs:
    684         IF (fdim==2) THEN
     684        IF (fdim.EQ.2) THEN
    685685          CALL xios_get_handle("fields_2D", fieldgroup)
    686686        ELSE
     
    726726            CALL xios_set_attr(field, level=field_level, enabled=.TRUE.)
    727727           
    728             IF (fdim==2) THEN
     728            IF (fdim.EQ.2) THEN
    729729                !Si c'est un champ 2D:
    730730                IF (prt_level >= 10) THEN
Note: See TracChangeset for help on using the changeset viewer.