Ignore:
Timestamp:
Aug 12, 2016 3:14:59 PM (8 years ago)
Author:
suehring
Message:

Prescribing scalar flux at model top; several bugfixes concering data output of scalars and output of flight data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/init_3d_model.f90

    r1961 r1992  
    1919! Current revisions:
    2020! ------------------
    21 !
     21! Initializaton of scalarflux at model top
     22! Bugfixes in initialization of surface and top salinity flux, top scalar and
     23! humidity fluxes
    2224!
    2325! Former revisions:
     
    12051207                ENDIF
    12061208             ENDIF
    1207           ENDIF         
     1209          ENDIF   
     1210!
     1211!--       Initialize near-surface salinity flux
     1212          IF ( ocean )  saswsb = bottom_salinityflux
    12081213
    12091214       ENDIF
     
    12141219!--    The latent flux is zero in this case!
    12151220       IF ( use_top_fluxes )  THEN
    1216 
    1217           IF ( constant_top_heatflux )  THEN
    1218 !
    1219 !--          Heat flux is prescribed
    1220              tswst = top_heatflux
    1221 
    1222              IF ( humidity )  THEN
    1223                 qswst = 0.0_wp
    1224                 IF ( cloud_physics  .AND.  microphysics_seifert ) THEN
    1225                    nrswst = 0.0_wp
    1226                    qrswst = 0.0_wp
    1227                 ENDIF
     1221!
     1222!--       Prescribe to heat flux
     1223          IF ( constant_top_heatflux )  tswst = top_heatflux
     1224!
     1225!--       Prescribe zero latent flux at the top     
     1226          IF ( humidity )  THEN
     1227             qswst = 0.0_wp
     1228             IF ( cloud_physics  .AND.  microphysics_seifert ) THEN
     1229                nrswst = 0.0_wp
     1230                qrswst = 0.0_wp
    12281231             ENDIF
    1229              IF ( passive_scalar )  sswst = 0.0_wp
    1230 
    1231              IF ( ocean )  THEN
    1232                 saswsb = bottom_salinityflux
    1233                 saswst = top_salinityflux
    1234              ENDIF
    1235           ENDIF
    1236 
     1232          ENDIF
     1233!
     1234!--       Prescribe top scalar flux
     1235          IF ( passive_scalar .AND. constant_top_scalarflux )                  &
     1236             sswst = top_scalarflux
     1237!
     1238!--       Prescribe top salinity flux
     1239          IF ( ocean .AND. constant_top_salinityflux)                          &
     1240             saswst = top_salinityflux
    12371241!
    12381242!--       Initialization in case of a coupled model run
Note: See TracChangeset for help on using the changeset viewer.