Ignore:
Timestamp:
Jul 23, 2024, 8:22:55 AM (4 months ago)
Author:
abarral
Message:

Handle DEBUG_IO in lmdz_cppkeys_wrapper.F90
Transform some files .F -> .[fF]90
[ne compile pas à cause de writefield_u non défini - en attente de réponse Laurent]

Location:
LMDZ6/branches/Amaury_dev/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/tools/fcm/lib/Ecmwf/Fortran90_stuff.pm

    r1578 r5101  
    601601    next if(/^ *$/ | /^ *!/);
    602602# The following two substitutions should be restored at end of processing
    603     s/(\'[^!]*)!+(.*\')/$1\£$2/;   # Protect against mischief
    604     s/(["][^!]*)!+(.*["])/$1\£$2/;      # Protect against mischief
     603    s/(\'[^!]*)!+(.*\')/$1\$2/;   # Protect against mischief
     604    s/(["][^!]*)!+(.*["])/$1\$2/;      # Protect against mischief
    605605    $im=$im+/JPIM\b/i unless($im);
    606606    $rb=$rb+/JPRB\b/i unless($rb);
     
    629629    next unless (/^\#/);
    630630    if(@pars) {
    631       s/^#include +"tsmbkind.h"/USE PARKIND1  ,ONLY : $string/ ;
     631      s/^#include +"tsmbkind.h"/USE PARKIND1  ,ONLY: $string/ ;
    632632    }
    633633    else {
     
    635635    }
    636636#    if($rh) {
    637       s/^#include +"hugekind.h"/USE PARKIND2  ,ONLY : JPRH/ ;
     637      s/^#include +"hugekind.h"/USE PARKIND2  ,ONLY: JPRH/ ;
    638638#    }
    639639#    else {
     
    14181418    if($hook_status == 0) {   # $hook_status == 0 means we have not done anything yet
    14191419      if($cont eq 'USE') {    # Add USE YOMHOOK as second use statement
    1420         $href->{post_insert}="USE YOMHOOK   ,ONLY : LHOOK,   DR_HOOK\n";
     1420        $href->{post_insert}="USE YOMHOOK   ,ONLY: LHOOK,   DR_HOOK\n";
    14211421        $hook_status=1;
    14221422      }
    14231423      elsif($cont eq 'IMPLICIT NONE') { # No previous USE, add USE YOMHOOK before IMPLICIT NONE
    1424         $href->{pre_insert} ="USE PARKIND1  ,ONLY : JPRB\n".
    1425           "USE YOMHOOK   ,ONLY : LHOOK,   DR_HOOK\n";
     1424        $href->{pre_insert} ="USE PARKIND1  ,ONLY: JPRB\n".
     1425          "USE YOMHOOK   ,ONLY: LHOOK,   DR_HOOK\n";
    14261426        $hook_status=1;
    14271427      }
     
    24712471  s/($name)%$name/$1/g;
    24722472  $_=uc($_);
    2473 #  print "PROPAG $called $_ ££ @inpars \n";
     2473#  print "PROPAG $called $_ �� @inpars \n";
    24742474  my @call_args=split ',' , $_;
    24752475  my $i=0;
  • LMDZ6/branches/Amaury_dev/tools/make_sso/make_sso_SpherePack.f90

    r5100 r5101  
    136136    msg='Missing or wrong "-m" option ; can be "noro", "spec" or a mask file'
    137137    CALL err(nf90_open(fmsk,nf90_nowrite,fID)/=nf90_noerr,msg)
    138     CALL nc(NF90_INQ_VARID(fID,"MaskOcean",vID),"MaskOcean")    !--- MASK ID
    139     CALL nc(NF90_INQUIRE_VARIABLE(fID,vID,dimids=dIDs))         !--- DIMS IDS
     138    CALL nc(nf90_inq_varid(fID,"MaskOcean",vID),"MaskOcean")    !--- MASK ID
     139    CALL nc(nf90_inquire_variable(fID,vID,dimids=dIDs))         !--- DIMS IDS
    140140    CALL nc(nf90_inquire_dimension(fID,dIDs(1),len=nlon_ou),'x')!--- NB LONG
    141141    CALL nc(nf90_inquire_dimension(fID,dIDs(2),len=nlat_ou),'y')!--- NB LAT
     
    151151
    152152!--- GET HEIGHT VARIABLE AND ITS DIMENSIONS
    153   CALL nc(NF90_INQ_VARID(fID,vnam,vID))
    154   CALL nc(NF90_INQUIRE_VARIABLE (fID,vID,dimids=dIDs))
     153  CALL nc(nf90_inq_varid(fID,vnam,vID))
     154  CALL nc(nf90_inquire_variable (fID,vID,dimids=dIDs))
    155155  CALL nc(nf90_inquire_dimension(fID,dIDs(1),len=nlon_in,name=lonn))
    156156  CALL nc(nf90_inquire_dimension(fID,dIDs(2),len=nlat_in,name=latn))
     
    159159  nlon_in=nlon_in-1                                   !--- DISTINCT POINTS NUMBER
    160160  ALLOCATE(lon_in(nlon_in+1),lat_in(nlat_in),h(nlon_in+1,nlat_in))
    161   CALL nc(NF90_INQ_VARID(fID,lonn,loID)        ,lonn)
    162   CALL nc(NF90_INQ_VARID(fID,latn,laID)        ,latn)
     161  CALL nc(nf90_inq_varid(fID,lonn,loID)        ,lonn)
     162  CALL nc(nf90_inq_varid(fID,latn,laID)        ,latn)
    163163  CALL nc(nf90_get_var  (fID,loID,lon_in)      ,lonn)
    164164  CALL nc(nf90_get_var  (fID,laID,lat_in)      ,latn)
     
    369369      msg='Missing or wrong "-m" option ; can be "noro", "spec" or a mask file'
    370370      CALL err(nf90_open(fmsk,nf90_nowrite,fID)/=nf90_noerr,msg)
    371       CALL nc(NF90_INQ_VARID(fID,"MaskOcean",vID),"MaskOcean")    !--- MASK ID
     371      CALL nc(nf90_inq_varid(fID,"MaskOcean",vID),"MaskOcean")    !--- MASK ID
    372372      CALL nc(nf90_get_var(fID,vID,msko(:,:)))                    !--- MASK
    373373      CALL nc(nf90_close(fID))
     
    460460
    461461  CALL nc(nf90_def_dim(fID,'x',nlon_ou,xID))
    462   CALL nc(nf90_def_var(fID,'x',NF90_REAL,xID,loID)      ,'x')
     462  CALL nc(nf90_def_var(fID,'x',nf90_real,xID,loID)      ,'x')
    463463  CALL nc(nf90_put_att(fID,loID,'long_name','Longitude'),'x')
    464464  CALL nc(nf90_put_att(fID,loID,'units','degrees_east') ,'x')
    465465
    466466  CALL nc(nf90_def_dim(fID,'y',nlat_ou,yID))
    467   CALL nc(nf90_def_var(fID,'y',NF90_REAL,yID,laID)      ,'y')
     467  CALL nc(nf90_def_var(fID,'y',nf90_real,yID,laID)      ,'y')
    468468  CALL nc(nf90_put_att(fID,laID,'long_name','Latitude') ,'y')
    469469  CALL nc(nf90_put_att(fID,laID,'units','degrees_north'),'y')
    470470
    471   CALL nc(nf90_def_var(fID,'mask',NF90_REAL,[xID,yID],mskID),'mask')
     471  CALL nc(nf90_def_var(fID,'mask',nf90_real,[xID,yID],mskID),'mask')
    472472  IF(fmsk=='noro') &
    473   CALL nc(nf90_def_var(fID,'Zphi',NF90_REAL,[xID,yID],phiID),'Zphi')
    474   CALL nc(nf90_def_var(fID,'Zmea',NF90_REAL,[xID,yID],meaID),'Zmea')
    475   CALL nc(nf90_def_var(fID,'mu'  ,NF90_REAL,[xID,yID], muID),'mu'  )
    476   CALL nc(nf90_def_var(fID,'Zsig',NF90_REAL,[xID,yID],sigID),'Zsig')
    477   CALL nc(nf90_def_var(fID,'Zgam',NF90_REAL,[xID,yID],gamID),'Zgam')
    478   CALL nc(nf90_def_var(fID,'Zthe',NF90_REAL,[xID,yID],theID),'Zthe')
    479   CALL nc(nf90_def_var(fID,'Zpic',NF90_REAL,[xID,yID],picID),'Zpic')
    480   CALL nc(nf90_def_var(fID,'Zval',NF90_REAL,[xID,yID],valID),'Zval')
     473  CALL nc(nf90_def_var(fID,'Zphi',nf90_real,[xID,yID],phiID),'Zphi')
     474  CALL nc(nf90_def_var(fID,'Zmea',nf90_real,[xID,yID],meaID),'Zmea')
     475  CALL nc(nf90_def_var(fID,'mu'  ,nf90_real,[xID,yID], muID),'mu'  )
     476  CALL nc(nf90_def_var(fID,'Zsig',nf90_real,[xID,yID],sigID),'Zsig')
     477  CALL nc(nf90_def_var(fID,'Zgam',nf90_real,[xID,yID],gamID),'Zgam')
     478  CALL nc(nf90_def_var(fID,'Zthe',nf90_real,[xID,yID],theID),'Zthe')
     479  CALL nc(nf90_def_var(fID,'Zpic',nf90_real,[xID,yID],picID),'Zpic')
     480  CALL nc(nf90_def_var(fID,'Zval',nf90_real,[xID,yID],valID),'Zval')
    481481
    482482  CALL nc(nf90_put_att(fID,mskID,'long_name','Fractional land mask'                      ),'mask')
     
    834834    IF(fnam/='')     msg=TRIM(msg)//' for file "'//TRIM(fnam)//'"'
    835835    IF(PRESENT(var)) msg=TRIM(msg)//'" and variable "'//TRIM(var)//'"'
    836     WRITE(*,*)TRIM(msg)//': '//NF90_STRERROR(ncres); STOP
     836    WRITE(*,*)TRIM(msg)//': '//nf90_strerror(ncres); STOP
    837837  END IF
    838838
Note: See TracChangeset for help on using the changeset viewer.