Ignore:
Timestamp:
Jul 24, 2015, 7:32:31 PM (9 years ago)
Author:
lguez
Message:

Bug fix. maase, pbaru and pbarv cannot be intent(in) in caldyn0
because they are modified in caldyn0 (masse is computed by massdair
and pbaru, pbarv are computed by flumass). Also masse is already
computed in etat0dyn_netcdf, and the difference with the computation
in caldyn0 is the averaging at the poles. If we do not want to lose
this averaging, we should not overwrite masse with an output argument
from caldyn0. So the simplest thing to do is to downgrade masse from
argument to local variable of caldyn0. We also simply downgrade pbaru,
pbarv from arguments to local variables of caldyn0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dynlonlat_phylonlat/phylmd/etat0dyn_netcdf.F90

    r2331 r2334  
    215215  CALL geopot( ip1jmp1, tpot, pk, pks, phis, phi )
    216216  WRITE(lunout,*)'sortie geopot'
    217   CALL caldyn0( itau, uvent, vvent, tpot, psol, masse, pk, phis,               &
    218                 phi,  w, pbaru, pbarv, time+iday-dayref)
     217  CALL caldyn0( itau, uvent, vvent, tpot, psol, pk, phis,               &
     218                phi,  w, time+iday-dayref)
    219219  WRITE(lunout,*)'sortie caldyn0'     
    220220  CALL dynredem0( "start.nc", dayref, phis)
Note: See TracChangeset for help on using the changeset viewer.