Ignore:
Timestamp:
Jun 4, 2007 8:07:41 AM (17 years ago)
Author:
raasch
Message:

more preliminary uncomplete changes for ocean version

File:
1 edited

Legend:

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

    r95 r96  
    190190       ALLOCATE( saswsb_1(nys-1:nyn+1,nxl-1:nxr+1), &
    191191                 saswst_1(nys-1:nyn+1,nxl-1:nxr+1) )
    192        ALLOCATE( rho(nzb:nzt+1,nys-1:nyn+1,nxl-1:nxr+1), &
    193                  sa_1(nzb:nzt+1,nys-1:nyn+1,nxl-1:nxr+1), &
    194                  sa_2(nzb:nzt+1,nys-1:nyn+1,nxl-1:nxr+1), &
     192       ALLOCATE( rho_1(nzb:nzt+1,nys-1:nyn+1,nxl-1:nxr+1), &
     193                 sa_1(nzb:nzt+1,nys-1:nyn+1,nxl-1:nxr+1),  &
     194                 sa_2(nzb:nzt+1,nys-1:nyn+1,nxl-1:nxr+1),  &
    195195                 sa_3(nzb:nzt+1,nys-1:nyn+1,nxl-1:nxr+1) )
     196       rho => rho_1  ! routine calc_mean_profile requires density to be a
     197                     ! pointer
    196198    ENDIF
    197199
     
    826828
    827829!
    828 !-- If required, initialize quantities needed for the ocean model
    829     IF ( ocean )  CALL init_ocean
    830 
    831 !
    832830!-- If required, initialize dvrp-software
    833831    IF ( dt_dvrp /= 9999999.9 )  CALL init_dvrp
    834832
    835 !
    836 !-- If required, initialize quantities for handling cloud physics
    837 !-- This routine must be called before init_particles, because
    838 !-- otherwise, array pt_d_t, needed in data_output_dvrp (called by
    839 !-- init_particles) is not defined.
    840     CALL init_cloud_physics
     833    IF ( ocean )  THEN
     834!
     835!--    Initialize quantities needed for the ocean model
     836       CALL init_ocean
     837    ELSE
     838!
     839!--    Initialize quantities for handling cloud physics
     840!--    This routine must be called before init_particles, because
     841!--    otherwise, array pt_d_t, needed in data_output_dvrp (called by
     842!--    init_particles) is not defined.
     843       CALL init_cloud_physics
     844    ENDIF
    841845
    842846!
Note: See TracChangeset for help on using the changeset viewer.