Ignore:
Timestamp:
Mar 31, 2015, 3:49:07 PM (10 years ago)
Author:
emillour
Message:

All models: Reorganizing the physics/dynamics interface.

  • makelmdz and makelmdz_fcm scripts adapted to handle the new directory settings
  • misc: (replaces what was the "bibio" directory)
  • Should only contain extremely generic (and non physics or dynamics-specific) routines
  • Therefore moved initdynav.F90, initfluxsto.F, inithist.F, writedynav.F90, write_field.F90, writehist.F to "dyn3d_common"
  • dynlonlat_phylonlat: (new interface directory)
  • This directory contains routines relevent to physics/dynamics grid interactions, e.g. routines gr_dyn_fi or gr_fi_dyn and calfis
  • Moreover the dynlonlat_phylonlat contains directories "phy*" corresponding to each physics package "phy*" to be used. These subdirectories should only contain specific interfaces (e.g. iniphysiq) or main programs (e.g. newstart)
  • phy*/dyn1d: this subdirectory contains the 1D model using physics from phy*

EM

Location:
trunk/LMDZ.GENERIC/libf/dynlonlat_phylonlat
Files:
5 added
21 moved

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/dynlonlat_phylonlat/phystd/datareadnc.F

    r1401 r1403  
    188188c    initialisation
    189189c-----------------------------------------------------------------------
    190       call initial0(iimp1*jjp1,pfield)
    191       call initial0(imd*jmdp1,zdata)
    192       call initial0(imdp1*jmdp1,zdataS)
     190      pfield(1:iimp1*jjp1)=0
     191      zdata(1:imd*jmdp1)=0
     192      zdataS(1:iimp1*jjp1)=0
    193193
    194194c-----------------------------------------------------------------------
     
    208208      if (k.eq.4) then
    209209
    210           call multscal(imd*jmdp1,zdata,1000.,zdata)
    211           call multscal(imd,longitude,pi/180.,longitude)
    212           call multscal(jmdp1,latitude,pi/180.,latitude)
     210          zdata(:)=1000.*zdata(:)
     211          longitude(:)=(pi/180.)*longitude(:)
     212          latitude(:)=(pi/180.)*latitude(:)
    213213
    214214          call grid_noro1(360, 180, longitude, latitude, zdata,
     
    261261      elseif (k.eq.3) then                ! relief
    262262        if (relief.eq.'pla') then
    263               call initial0(iimp1*jjp1,phisinit)
     263             phisinit(1:iimp1*jjp1)=0
    264264        else
    265              do i=1,iimp1*jjp1
    266                   phisinit(i) = pfield(i)
    267               enddo
     265             phisinit(1:iimp1*jjp1)=pfield(1:iimp1*jjp1)
    268266        endif
    269267      endif
     
    275273c-----------------------------------------------------------------------
    276274
    277       DO i=1,iimp1*jjp1
    278             phisinit(i)=1000.*phisinit(i)
    279       ENDDO
     275      phisinit(1:iimp1*jjp1)=1000.*phisinit(1:iimp1*jjp1)
    280276      !CALL dump2d(iimp1,jjp1,phisinit,'Altitude en m')
    281       CALL multscal(iimp1*jjp1,phisinit,g,phisinit)
     277      phisinit(:)=g*phisinit(:)
    282278
    283279c-----------------------------------------------------------------------
  • trunk/LMDZ.GENERIC/libf/dynlonlat_phylonlat/phystd/newstart.F

    r1401 r1403  
    3030      use comgeomphy, only: initcomgeomphy
    3131      use slab_ice_h, only:noceanmx
     32      use filtreg_mod, only: inifilr
    3233      implicit none
    3334
  • trunk/LMDZ.GENERIC/libf/dynlonlat_phylonlat/phystd/start2archive.F

    r1401 r1403  
    2929      USE planete_mod, only: year_day
    3030      USE callkeys_mod, ONLY: ok_slab_ocean
    31 
     31      use filtreg_mod, only: inifilr
    3232      implicit none
    3333
Note: See TracChangeset for help on using the changeset viewer.