Changeset 1507 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
Jan 13, 2016, 9:09:01 AM (9 years ago)
Author:
emillour
Message:

Generic model and Mars model:

  • Fix/improvement on planetwide_min/max/sum for the 3D fields which assumed the vertical dimension to be klev. Now works for any (klon,...) field.

EM

Location:
trunk/LMDZ.GENERIC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/README

    r1498 r1507  
    11091109== 13/11/2015 == MT
    11101110- Spectral Snow Albebdo implemented in the code.
     1111
     1112== 13/01/2016 == EM
     1113- Fix/improvement on planetwide_min/max/sum for the 3D fields which assumed the vertical dimension to be klev.
     1114  Now works for any (klon,...) field (e.g. albedo).
     1115
  • trunk/LMDZ.GENERIC/libf/phystd/planetwide_mod.F90

    r1295 r1507  
    5050
    5151  subroutine planetwide_maxval_i2(values,values_max)
    52   use dimphy, only: klon, klev
    53   use mod_grid_phy_lmdz, only : klon_glo
    54   implicit none
    55   integer,intent(in) :: values(:,:) ! local grid (klon,klev)
    56   integer,intent(out) :: values_max
    57 #ifdef CPP_PARA
    58   integer :: values_glo(klon_glo,klev) ! global grid
     52  use dimphy, only: klon
     53  use mod_grid_phy_lmdz, only : klon_glo
     54  implicit none
     55  integer,intent(in) :: values(:,:) ! local grid (klon,...)
     56  integer,intent(out) :: values_max
     57#ifdef CPP_PARA
     58  integer :: values_glo(klon_glo,size(values,2)) ! global grid
    5959 
    6060  ! gather field on master:
     
    9494
    9595  subroutine planetwide_maxval_r2(values,values_max)
    96   use dimphy, only: klon, klev
    97   use mod_grid_phy_lmdz, only : klon_glo
    98   implicit none
    99   real,intent(in) :: values(:,:) ! local grid (klon,klev)
    100   real,intent(out) :: values_max
    101 #ifdef CPP_PARA
    102   real :: values_glo(klon_glo,klev) ! global grid
     96  use dimphy, only: klon
     97  use mod_grid_phy_lmdz, only : klon_glo
     98  implicit none
     99  real,intent(in) :: values(:,:) ! local grid (klon,...)
     100  real,intent(out) :: values_max
     101#ifdef CPP_PARA
     102  real :: values_glo(klon_glo,size(values,2)) ! global grid
    103103 
    104104  ! gather field on master:
     
    140140
    141141  subroutine planetwide_minval_i2(values,values_max)
    142   use dimphy, only: klon, klev
    143   use mod_grid_phy_lmdz, only : klon_glo
    144   implicit none
    145   integer,intent(in) :: values(:,:) ! local grid (klon,klev)
    146   integer,intent(out) :: values_max
    147 #ifdef CPP_PARA
    148   integer :: values_glo(klon_glo,klev) ! global grid
     142  use dimphy, only: klon
     143  use mod_grid_phy_lmdz, only : klon_glo
     144  implicit none
     145  integer,intent(in) :: values(:,:) ! local grid (klon,...)
     146  integer,intent(out) :: values_max
     147#ifdef CPP_PARA
     148  integer :: values_glo(klon_glo,size(values,2)) ! global grid
    149149 
    150150  ! gather field on master:
     
    184184
    185185  subroutine planetwide_minval_r2(values,values_max)
    186   use dimphy, only: klon, klev
    187   use mod_grid_phy_lmdz, only : klon_glo
    188   implicit none
    189   real,intent(in) :: values(:,:) ! local grid (klon,klev)
    190   real,intent(out) :: values_max
    191 #ifdef CPP_PARA
    192   real :: values_glo(klon_glo,klev) ! global grid
     186  use dimphy, only: klon
     187  use mod_grid_phy_lmdz, only : klon_glo
     188  implicit none
     189  real,intent(in) :: values(:,:) ! local grid (klon,...)
     190  real,intent(out) :: values_max
     191#ifdef CPP_PARA
     192  real :: values_glo(klon_glo,size(values,2)) ! global grid
    193193 
    194194  ! gather field on master:
     
    230230
    231231  subroutine planetwide_sumval_i2(values,values_sum)
    232   use dimphy, only: klon, klev
    233   use mod_grid_phy_lmdz, only : klon_glo
    234   implicit none
    235   integer,intent(in) :: values(:,:) ! local grid (klon,klev)
     232  use dimphy, only: klon
     233  use mod_grid_phy_lmdz, only : klon_glo
     234  implicit none
     235  integer,intent(in) :: values(:,:) ! local grid (klon,...)
    236236  integer,intent(out) :: values_sum
    237237#ifdef CPP_PARA
    238   integer :: values_glo(klon_glo,klev) ! global grid
     238  integer :: values_glo(klon_glo,size(values,2)) ! global grid
    239239 
    240240  ! gather field on master:
     
    274274
    275275  subroutine planetwide_sumval_r2(values,values_sum)
    276   use dimphy, only: klon, klev
    277   use mod_grid_phy_lmdz, only : klon_glo
    278   implicit none
    279   real,intent(in) :: values(:,:) ! local grid (klon,klev)
     276  use dimphy, only: klon
     277  use mod_grid_phy_lmdz, only : klon_glo
     278  implicit none
     279  real,intent(in) :: values(:,:) ! local grid (klon,...)
    280280  real,intent(out) :: values_sum
    281281#ifdef CPP_PARA
    282   real :: values_glo(klon_glo,klev) ! global grid
     282  real :: values_glo(klon_glo,size(values,2)) ! global grid
    283283 
    284284  ! gather field on master:
Note: See TracChangeset for help on using the changeset viewer.