Ignore:
Timestamp:
Jul 24, 2024, 2:54:37 PM (2 months ago)
Author:
abarral
Message:

rename modules properly lmdz_*
move ismin, ismax, minmax into new lmdz_libmath.f90
(lint) uppercase fortran keywords

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/dyn3dmem/conf_gcm.F90

    r5113 r5116  
    102102  ! adjust=y not implemented in case of OpenMP threads...
    103103  !$OMP PARALLEL
    104   IF ((OMP_GET_NUM_THREADS()>1).and.adjust) then
    105      write(lunout,*)'conf_gcm: Error, adjust should be set to n' &
     104  IF ((OMP_GET_NUM_THREADS()>1).and.adjust) THEN
     105     WRITE(lunout,*)'conf_gcm: Error, adjust should be set to n' &
    106106          ,' when running with OpenMP threads'
    107107     abort_message = 'Wrong value for adjust'
     
    436436  !     .........   (  modif  le 17/04/96 )   .........
    437437
    438   test_etatinit: IF (.not. etatinit) then
     438  test_etatinit: IF (.not. etatinit) THEN
    439439     !Config  Key  = clon
    440440     !Config  Desc = centre du zoom, longitude
     
    454454
    455455     IF( ABS(clat - clatt)>= 0.001 )  THEN
    456         write(lunout,*)'conf_gcm: La valeur de clat passee par run.def', &
     456        WRITE(lunout,*)'conf_gcm: La valeur de clat passee par run.def', &
    457457             ' est differente de celle lue sur le fichier  start '
    458458        CALL abort_gcm("conf_gcm","stopped",1)
     
    468468
    469469     IF( ABS(grossismx - grossismxx)>= 0.001 )  THEN
    470         write(lunout,*)'conf_gcm: La valeur de grossismx passee par ', &
     470        WRITE(lunout,*)'conf_gcm: La valeur de grossismx passee par ', &
    471471             'run.def est differente de celle lue sur le fichier  start '
    472472        CALL abort_gcm("conf_gcm","stopped",1)
     
    482482
    483483     IF( ABS(grossismy - grossismyy)>= 0.001 )  THEN
    484         write(lunout,*)'conf_gcm: La valeur de grossismy passee par ', &
     484        WRITE(lunout,*)'conf_gcm: La valeur de grossismy passee par ', &
    485485             'run.def est differente de celle lue sur le fichier  start '
    486486        CALL abort_gcm("conf_gcm","stopped",1)
     
    488488
    489489     IF( grossismx<1. )  THEN
    490         write(lunout,*) &
     490        WRITE(lunout,*) &
    491491             'conf_gcm: ***  ATTENTION !! grossismx < 1 .   *** '
    492492        CALL abort_gcm("conf_gcm","stopped",1)
     
    496496
    497497     IF( grossismy<1. )  THEN
    498         write(lunout,*) &
     498        WRITE(lunout,*) &
    499499             'conf_gcm: ***  ATTENTION !! grossismy < 1 .   *** '
    500500        CALL abort_gcm("conf_gcm","stopped",1)
     
    503503     ENDIF
    504504
    505      write(lunout,*)'conf_gcm: alphax alphay',alphax,alphay
     505     WRITE(lunout,*)'conf_gcm: alphax alphay',alphax,alphay
    506506
    507507     !    alphax et alphay sont les anciennes formulat. des grossissements
     
    517517     IF( .NOT.fxyhypb )  THEN
    518518        IF( fxyhypbb )     THEN
    519            write(lunout,*)' ********  PBS DANS  CONF_GCM  ******** '
    520            write(lunout,*)' *** fxyhypb lu sur le fichier start est ', &
     519           WRITE(lunout,*)' ********  PBS DANS  CONF_GCM  ******** '
     520           WRITE(lunout,*)' *** fxyhypb lu sur le fichier start est ', &
    521521                'F alors  qu il est  T  sur  run.def  ***'
    522522           CALL abort_gcm("conf_gcm","stopped",1)
     
    524524     ELSE
    525525        IF( .NOT.fxyhypbb )   THEN
    526            write(lunout,*)' ********  PBS DANS  CONF_GCM  ******** '
    527            write(lunout,*)' ***  fxyhypb lu sur le fichier start est ', &
     526           WRITE(lunout,*)' ********  PBS DANS  CONF_GCM  ******** '
     527           WRITE(lunout,*)' ***  fxyhypb lu sur le fichier start est ', &
    528528                'T alors  qu il est  F  sur  run.def  ****  '
    529529           CALL abort_gcm("conf_gcm","stopped",1)
     
    541541     IF( fxyhypb )  THEN
    542542        IF( ABS(dzoomx - dzoomxx)>= 0.001 )  THEN
    543            write(lunout,*)'conf_gcm: La valeur de dzoomx passee par ', &
     543           WRITE(lunout,*)'conf_gcm: La valeur de dzoomx passee par ', &
    544544                'run.def est differente de celle lue sur le fichier  start '
    545545           CALL abort_gcm("conf_gcm","stopped",1)
     
    557557     IF( fxyhypb )  THEN
    558558        IF( ABS(dzoomy - dzoomyy)>= 0.001 )  THEN
    559            write(lunout,*)'conf_gcm: La valeur de dzoomy passee par ', &
     559           WRITE(lunout,*)'conf_gcm: La valeur de dzoomy passee par ', &
    560560                'run.def est differente de celle lue sur le fichier  start '
    561561           CALL abort_gcm("conf_gcm","stopped",1)
     
    572572     IF( fxyhypb )  THEN
    573573        IF( ABS(taux - tauxx)>= 0.001 )  THEN
    574            write(lunout,*)'conf_gcm: La valeur de taux passee par ', &
     574           WRITE(lunout,*)'conf_gcm: La valeur de taux passee par ', &
    575575                'run.def est differente de celle lue sur le fichier  start '
    576576           CALL abort_gcm("conf_gcm","stopped",1)
     
    587587     IF( fxyhypb )  THEN
    588588        IF( ABS(tauy - tauyy)>= 0.001 )  THEN
    589            write(lunout,*)'conf_gcm: La valeur de tauy passee par ', &
     589           WRITE(lunout,*)'conf_gcm: La valeur de tauy passee par ', &
    590590                'run.def est differente de celle lue sur le fichier  start '
    591591        CALL abort_gcm("conf_gcm","stopped",1)
     
    607607        IF( .NOT.ysinus )  THEN
    608608           IF( ysinuss )     THEN
    609               write(lunout,*)' ********  PBS DANS  CONF_GCM  ******** '
    610               write(lunout,*)' *** ysinus lu sur le fichier start est F', &
     609              WRITE(lunout,*)' ********  PBS DANS  CONF_GCM  ******** '
     610              WRITE(lunout,*)' *** ysinus lu sur le fichier start est F', &
    611611                   ' alors  qu il est  T  sur  run.def  ***'
    612612              CALL abort_gcm("conf_gcm","stopped",1)
     
    614614        ELSE
    615615           IF( .NOT.ysinuss )   THEN
    616               write(lunout,*)' ********  PBS DANS  CONF_GCM  ******** '
    617               write(lunout,*)' *** ysinus lu sur le fichier start est T', &
     616              WRITE(lunout,*)' ********  PBS DANS  CONF_GCM  ******** '
     617              WRITE(lunout,*)' *** ysinus lu sur le fichier start est T', &
    618618                   ' alors  qu il est  F  sur  run.def  ****  '
    619619              CALL abort_gcm("conf_gcm","stopped",1)
     
    697697     CALL getin('ok_dyn_xios',ok_dyn_xios)
    698698
    699      write(lunout,*)' #########################################'
    700      write(lunout,*)' Configuration des parametres du gcm: '
    701      write(lunout,*)' planet_type = ', planet_type
    702      write(lunout,*)' calend = ', calend
    703      write(lunout,*)' dayref = ', dayref
    704      write(lunout,*)' anneeref = ', anneeref
    705      write(lunout,*)' nday = ', nday
    706      write(lunout,*)' day_step = ', day_step
    707      write(lunout,*)' iperiod = ', iperiod
    708      write(lunout,*)' nsplit_phys = ', nsplit_phys
    709      write(lunout,*)' iconser = ', iconser
    710      write(lunout,*)' iecri = ', iecri
    711      write(lunout,*)' periodav = ', periodav
    712      write(lunout,*)' output_grads_dyn = ', output_grads_dyn
    713      write(lunout,*)' dissip_period = ', dissip_period
    714      write(lunout,*)' lstardis = ', lstardis
    715      write(lunout,*)' nitergdiv = ', nitergdiv
    716      write(lunout,*)' nitergrot = ', nitergrot
    717      write(lunout,*)' niterh = ', niterh
    718      write(lunout,*)' tetagdiv = ', tetagdiv
    719      write(lunout,*)' tetagrot = ', tetagrot
    720      write(lunout,*)' tetatemp = ', tetatemp
    721      write(lunout,*)' coefdis = ', coefdis
    722      write(lunout,*)' purmats = ', purmats
    723      write(lunout,*)' read_start = ', read_start
    724      write(lunout,*)' iflag_phys = ', iflag_phys
    725      write(lunout,*)' iphysiq = ', iphysiq
    726      write(lunout,*)' clonn = ', clonn
    727      write(lunout,*)' clatt = ', clatt
    728      write(lunout,*)' grossismx = ', grossismx
    729      write(lunout,*)' grossismy = ', grossismy
    730      write(lunout,*)' fxyhypbb = ', fxyhypbb
    731      write(lunout,*)' dzoomxx = ', dzoomxx
    732      write(lunout,*)' dzoomy = ', dzoomyy
    733      write(lunout,*)' tauxx = ', tauxx
    734      write(lunout,*)' tauyy = ', tauyy
    735      write(lunout,*)' offline = ', offline
    736      write(lunout,*)' offline_time = ', offline_time
    737      write(lunout,*)' type_trac = ', type_trac
    738      write(lunout,*)' ok_dynzon = ', ok_dynzon
    739      write(lunout,*)' ok_dyn_ins = ', ok_dyn_ins
    740      write(lunout,*)' ok_dyn_ave = ', ok_dyn_ave
    741      write(lunout,*)' ok_dyn_xios = ', ok_dyn_xios
    742      write(lunout,*)' adv_qsat_liq = ', adv_qsat_liq
     699     WRITE(lunout,*)' #########################################'
     700     WRITE(lunout,*)' Configuration des parametres du gcm: '
     701     WRITE(lunout,*)' planet_type = ', planet_type
     702     WRITE(lunout,*)' calend = ', calend
     703     WRITE(lunout,*)' dayref = ', dayref
     704     WRITE(lunout,*)' anneeref = ', anneeref
     705     WRITE(lunout,*)' nday = ', nday
     706     WRITE(lunout,*)' day_step = ', day_step
     707     WRITE(lunout,*)' iperiod = ', iperiod
     708     WRITE(lunout,*)' nsplit_phys = ', nsplit_phys
     709     WRITE(lunout,*)' iconser = ', iconser
     710     WRITE(lunout,*)' iecri = ', iecri
     711     WRITE(lunout,*)' periodav = ', periodav
     712     WRITE(lunout,*)' output_grads_dyn = ', output_grads_dyn
     713     WRITE(lunout,*)' dissip_period = ', dissip_period
     714     WRITE(lunout,*)' lstardis = ', lstardis
     715     WRITE(lunout,*)' nitergdiv = ', nitergdiv
     716     WRITE(lunout,*)' nitergrot = ', nitergrot
     717     WRITE(lunout,*)' niterh = ', niterh
     718     WRITE(lunout,*)' tetagdiv = ', tetagdiv
     719     WRITE(lunout,*)' tetagrot = ', tetagrot
     720     WRITE(lunout,*)' tetatemp = ', tetatemp
     721     WRITE(lunout,*)' coefdis = ', coefdis
     722     WRITE(lunout,*)' purmats = ', purmats
     723     WRITE(lunout,*)' read_start = ', read_start
     724     WRITE(lunout,*)' iflag_phys = ', iflag_phys
     725     WRITE(lunout,*)' iphysiq = ', iphysiq
     726     WRITE(lunout,*)' clonn = ', clonn
     727     WRITE(lunout,*)' clatt = ', clatt
     728     WRITE(lunout,*)' grossismx = ', grossismx
     729     WRITE(lunout,*)' grossismy = ', grossismy
     730     WRITE(lunout,*)' fxyhypbb = ', fxyhypbb
     731     WRITE(lunout,*)' dzoomxx = ', dzoomxx
     732     WRITE(lunout,*)' dzoomy = ', dzoomyy
     733     WRITE(lunout,*)' tauxx = ', tauxx
     734     WRITE(lunout,*)' tauyy = ', tauyy
     735     WRITE(lunout,*)' offline = ', offline
     736     WRITE(lunout,*)' offline_time = ', offline_time
     737     WRITE(lunout,*)' type_trac = ', type_trac
     738     WRITE(lunout,*)' ok_dynzon = ', ok_dynzon
     739     WRITE(lunout,*)' ok_dyn_ins = ', ok_dyn_ins
     740     WRITE(lunout,*)' ok_dyn_ave = ', ok_dyn_ave
     741     WRITE(lunout,*)' ok_dyn_xios = ', ok_dyn_xios
     742     WRITE(lunout,*)' adv_qsat_liq = ', adv_qsat_liq
    743743  else
    744744     !Config  Key  = clon
     
    775775
    776776     IF( grossismx<1. )  THEN
    777         write(lunout,*) 'conf_gcm: ***ATTENTION !! grossismx < 1 . *** '
     777        WRITE(lunout,*) 'conf_gcm: ***ATTENTION !! grossismx < 1 . *** '
    778778        CALL abort_gcm("conf_gcm","stopped",1)
    779779     ELSE
     
    782782
    783783     IF( grossismy<1. )  THEN
    784         write(lunout,*) 'conf_gcm: ***ATTENTION !! grossismy < 1 . *** '
     784        WRITE(lunout,*) 'conf_gcm: ***ATTENTION !! grossismy < 1 . *** '
    785785        CALL abort_gcm("conf_gcm","stopped",1)
    786786     ELSE
     
    788788     ENDIF
    789789
    790      write(lunout,*) 'conf_gcm: alphax alphay ',alphax,alphay
     790     WRITE(lunout,*) 'conf_gcm: alphax alphay ',alphax,alphay
    791791
    792792     !    alphax et alphay sont les anciennes formulat. des grossissements
     
    907907     CALL getin('use_filtre_fft',use_filtre_fft)
    908908     IF (use_filtre_fft .AND. grossismx /= 1.0) THEN
    909         write(lunout,*)'WARNING !!! '
    910         write(lunout,*)"A zoom in longitude is not compatible", &
     909        WRITE(lunout,*)'WARNING !!! '
     910        WRITE(lunout,*)"A zoom in longitude is not compatible", &
    911911             " with the FFT filter ", &
    912912             "---> FFT filter deactivated"
     
    970970     CALL getin('read_orop',read_orop)
    971971
    972      write(lunout,*)' #########################################'
    973      write(lunout,*)' Configuration des parametres de cel0_limit: '
    974      write(lunout,*)' planet_type = ', planet_type
    975      write(lunout,*)' calend = ', calend
    976      write(lunout,*)' dayref = ', dayref
    977      write(lunout,*)' anneeref = ', anneeref
    978      write(lunout,*)' nday = ', nday
    979      write(lunout,*)' day_step = ', day_step
    980      write(lunout,*)' iperiod = ', iperiod
    981      write(lunout,*)' iconser = ', iconser
    982      write(lunout,*)' iecri = ', iecri
    983      write(lunout,*)' periodav = ', periodav
    984      write(lunout,*)' output_grads_dyn = ', output_grads_dyn
    985      write(lunout,*)' dissip_period = ', dissip_period
    986      write(lunout,*)' lstardis = ', lstardis
    987      write(lunout,*)' nitergdiv = ', nitergdiv
    988      write(lunout,*)' nitergrot = ', nitergrot
    989      write(lunout,*)' niterh = ', niterh
    990      write(lunout,*)' tetagdiv = ', tetagdiv
    991      write(lunout,*)' tetagrot = ', tetagrot
    992      write(lunout,*)' tetatemp = ', tetatemp
    993      write(lunout,*)' coefdis = ', coefdis
    994      write(lunout,*)' purmats = ', purmats
    995      write(lunout,*)' read_start = ', read_start
    996      write(lunout,*)' iflag_phys = ', iflag_phys
    997      write(lunout,*)' iphysiq = ', iphysiq
    998      write(lunout,*)' clon = ', clon
    999      write(lunout,*)' clat = ', clat
    1000      write(lunout,*)' grossismx = ', grossismx
    1001      write(lunout,*)' grossismy = ', grossismy
    1002      write(lunout,*)' fxyhypb = ', fxyhypb
    1003      write(lunout,*)' dzoomx = ', dzoomx
    1004      write(lunout,*)' dzoomy = ', dzoomy
    1005      write(lunout,*)' taux = ', taux
    1006      write(lunout,*)' tauy = ', tauy
    1007      write(lunout,*)' offline = ', offline
    1008      write(lunout,*)' type_trac = ', type_trac
    1009      write(lunout,*)' ok_dynzon = ', ok_dynzon
    1010      write(lunout,*)' ok_dyn_ins = ', ok_dyn_ins
    1011      write(lunout,*)' ok_dyn_ave = ', ok_dyn_ave
    1012      write(lunout,*)' ok_dyn_xios = ', ok_dyn_xios
    1013      write(lunout,*)' use_filtre_fft = ', use_filtre_fft
    1014      write(lunout,*)' use_mpi_alloc = ', use_mpi_alloc
    1015      write(lunout,*)' ok_strato = ', ok_strato
    1016      write(lunout,*)' ok_gradsfile = ', ok_gradsfile
    1017      write(lunout,*)' ok_limit = ', ok_limit
    1018      write(lunout,*)' ok_etat0 = ', ok_etat0
    1019      write(lunout,*)' ok_guide = ', ok_guide
    1020      write(lunout,*)' read_orop = ', read_orop
     972     WRITE(lunout,*)' #########################################'
     973     WRITE(lunout,*)' Configuration des parametres de cel0_limit: '
     974     WRITE(lunout,*)' planet_type = ', planet_type
     975     WRITE(lunout,*)' calend = ', calend
     976     WRITE(lunout,*)' dayref = ', dayref
     977     WRITE(lunout,*)' anneeref = ', anneeref
     978     WRITE(lunout,*)' nday = ', nday
     979     WRITE(lunout,*)' day_step = ', day_step
     980     WRITE(lunout,*)' iperiod = ', iperiod
     981     WRITE(lunout,*)' iconser = ', iconser
     982     WRITE(lunout,*)' iecri = ', iecri
     983     WRITE(lunout,*)' periodav = ', periodav
     984     WRITE(lunout,*)' output_grads_dyn = ', output_grads_dyn
     985     WRITE(lunout,*)' dissip_period = ', dissip_period
     986     WRITE(lunout,*)' lstardis = ', lstardis
     987     WRITE(lunout,*)' nitergdiv = ', nitergdiv
     988     WRITE(lunout,*)' nitergrot = ', nitergrot
     989     WRITE(lunout,*)' niterh = ', niterh
     990     WRITE(lunout,*)' tetagdiv = ', tetagdiv
     991     WRITE(lunout,*)' tetagrot = ', tetagrot
     992     WRITE(lunout,*)' tetatemp = ', tetatemp
     993     WRITE(lunout,*)' coefdis = ', coefdis
     994     WRITE(lunout,*)' purmats = ', purmats
     995     WRITE(lunout,*)' read_start = ', read_start
     996     WRITE(lunout,*)' iflag_phys = ', iflag_phys
     997     WRITE(lunout,*)' iphysiq = ', iphysiq
     998     WRITE(lunout,*)' clon = ', clon
     999     WRITE(lunout,*)' clat = ', clat
     1000     WRITE(lunout,*)' grossismx = ', grossismx
     1001     WRITE(lunout,*)' grossismy = ', grossismy
     1002     WRITE(lunout,*)' fxyhypb = ', fxyhypb
     1003     WRITE(lunout,*)' dzoomx = ', dzoomx
     1004     WRITE(lunout,*)' dzoomy = ', dzoomy
     1005     WRITE(lunout,*)' taux = ', taux
     1006     WRITE(lunout,*)' tauy = ', tauy
     1007     WRITE(lunout,*)' offline = ', offline
     1008     WRITE(lunout,*)' type_trac = ', type_trac
     1009     WRITE(lunout,*)' ok_dynzon = ', ok_dynzon
     1010     WRITE(lunout,*)' ok_dyn_ins = ', ok_dyn_ins
     1011     WRITE(lunout,*)' ok_dyn_ave = ', ok_dyn_ave
     1012     WRITE(lunout,*)' ok_dyn_xios = ', ok_dyn_xios
     1013     WRITE(lunout,*)' use_filtre_fft = ', use_filtre_fft
     1014     WRITE(lunout,*)' use_mpi_alloc = ', use_mpi_alloc
     1015     WRITE(lunout,*)' ok_strato = ', ok_strato
     1016     WRITE(lunout,*)' ok_gradsfile = ', ok_gradsfile
     1017     WRITE(lunout,*)' ok_limit = ', ok_limit
     1018     WRITE(lunout,*)' ok_etat0 = ', ok_etat0
     1019     WRITE(lunout,*)' ok_guide = ', ok_guide
     1020     WRITE(lunout,*)' read_orop = ', read_orop
    10211021  ENDIF test_etatinit
    10221022
Note: See TracChangeset for help on using the changeset viewer.