Changeset 3756


Ignore:
Timestamp:
May 7, 2025, 5:49:03 PM (4 weeks ago)
Author:
emillour
Message:

Mars PCM:
Code tidying: turn aerave.F and suaer.F90 into modules and modernize
"blackl" routine (enforce "implicit none", make true constants "parameters")
and include it in the aerave module since it is only called there.
EM

Location:
trunk/LMDZ.MARS
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3743 r3756  
    48264826== 28/04/2025 == EM
    48274827OpenMP bug fix: add some missing threadprivate statements in moldiff_MPF
     4828
     4829== 07/05/2025 == EM
     4830Code tidying: turn aerave.F and suaer.F90 into modules and modernize
     4831"blackl" routine (enforce "implicit none", make true constants "parameters")
     4832and include it in the aerave module since it is only called there.
  • trunk/LMDZ.MARS/libf/phymars/aerave.F

    r38 r3756  
     1      MODULE aerave_mod
     2     
     3      IMPLICIT NONE
     4     
     5      CONTAINS
     6
    17      SUBROUTINE aerave ( ndata,
    28     & longdata,epdata,omegdata,gdata,         
     
    191197c......................................................................
    192198c
    193       RETURN
    194       END
     199      END SUBROUTINE aerave
     200
     201c.......................................................................
     202
     203      subroutine blackl(blalong,blat,blae)
     204
     205      implicit none
     206c.......................................................................
     207      double precision,intent(in) :: blalong,blat
     208      double precision,intent(out) :: blae
     209c.....parameters
     210      double precision,parameter :: sigma=5.6693d-08
     211      double precision,parameter :: pi=datan(1.d0)*4.d0
     212      double precision,parameter :: c0=2.9979d+08
     213      double precision,parameter :: h=6.6262d-34
     214      double precision,parameter :: cbol=1.3806d-23
     215      double precision,parameter :: rind=1.d0
     216      double precision,parameter :: c=c0/rind
     217      double precision,parameter :: c1=h*(c**2)
     218      double precision,parameter :: c2=h*c/cbol
     219c.......................................................................
     220      blae=2.d0*pi*c1/blalong**5/(exp(c2/blalong/blat)-1.d0)
     221c.......................................................................
     222
     223      end subroutine blackl
     224
     225      END MODULE aerave_mod
  • trunk/LMDZ.MARS/libf/phymars/callradite_mod.F

    r3726 r3756  
    2727      use lwmain_mod, only: lwmain
    2828      use swmain_mod, only: swmain
     29      use suaer_mod, only: suaer
    2930      use dust_param_mod, only: doubleq, active, submicron
    3031      use callkeys_mod, only: water, activice, rdstorm, topflows,
  • trunk/LMDZ.MARS/libf/phymars/suaer.F90

    r3726 r3756  
     1MODULE suaer_mod
     2
     3IMPLICIT NONE
     4
     5CONTAINS
     6
    17SUBROUTINE suaer
    28use dimradmars_mod, only: longrefvis, longrefir, nsizemax, long1vis, &
     
    1521USE mod_phys_lmdz_transfert_para, ONLY: bcast
    1622use callkeys_mod, only: dustrefir
     23use aerave_mod, only: aerave
    1724
    1825IMPLICIT NONE
     
    568575
    569576!==================================================================
    570 RETURN
    571 END
     577
     578END SUBROUTINE suaer
     579
     580END MODULE suaer_mod
Note: See TracChangeset for help on using the changeset viewer.