Ignore:
Timestamp:
Feb 23, 2007 4:53:48 AM (17 years ago)
Author:
raasch
Message:

preliminary version of modified boundary conditions at top

File:
1 edited

Legend:

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

    r4 r19  
    44! Actual revisions:
    55! -----------------
    6 !
     6! Boundary conditions for e(nzt), pt(nzt), and q(nzt) removed because these
     7! values are now calculated by the prognostic equation,
     8! Dirichlet and zero gradient condition for pt established at top boundary
    79!
    810! Former revisions:
     
    100102!
    101103!--    Temperature at top boundary
    102        IF ( ibc_pt_t == 1 )  THEN
    103           pt(nzt,:,:)   = pt(nzt-1,:,:) + bc_pt_t_val * dzu(nzt)
     104       IF ( ibc_pt_t == 0 )  THEN
     105          IF ( timestep_scheme(1:5) /= 'runge' )  THEN
     106             pt(nzt+1,:,:) = pt_m(nzt+1,:,:)
     107          ELSE
     108             pt(nzt+1,:,:) = pt_p(nzt+1,:,:)  ! pt_m not used for Runge-Kutta
     109          ENDIF
     110       ELSEIF ( ibc_pt_t == 1 )  THEN
     111          pt(nzt+1,:,:) = pt(nzt,:,:)
     112       ELSEIF ( ibc_pt_t == 2 )  THEN
    104113          pt(nzt+1,:,:) = pt(nzt,:,:)   + bc_pt_t_val * dzu(nzt+1)
    105114       ENDIF
     
    114123             ENDDO
    115124          ENDDO
    116           e(nzt,:,:)   = e(nzt-1,:,:)
    117125          e(nzt+1,:,:) = e(nzt,:,:)
    118126       ENDIF
     
    147155!
    148156!--       Top boundary
    149           q(nzt,:,:)   = q(nzt-1,:,:) + bc_q_t_val * dzu(nzt)
    150157          q(nzt+1,:,:) = q(nzt,:,:)   + bc_q_t_val * dzu(nzt+1)
    151158       ENDIF
Note: See TracChangeset for help on using the changeset viewer.