Changeset 875


Ignore:
Timestamp:
Apr 2, 2012 3:35:15 PM (12 years ago)
Author:
gryschka
Message:

Bugfix in case of dirichlet inflow bc at the right or north boundary

File:
1 edited

Legend:

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

    r768 r875  
    44! Current revisions:
    55! -----------------
     6!
     7! Bugfix in case of dirichlet inflow bc at the right or north boundary
    68!
    79
     
    190192
    191193!
    192 !--    Lateral boundary conditions at the inflow. Quasi Neumann conditions
    193 !--    are needed for the wall normal velocity in order to ensure zero
    194 !--    divergence. Dirichlet conditions are used for all other quantities.
     194!--    In case of inflow at the south boundary the boundary for v is at nys
     195!--    and in case of inflow at the left boundary the boundary for u is at nxl.
     196!--    Since in prognostic_equations (cache optimized version) these levels are
     197!--    handled as a prognostic level, boundary values have to be restored here.
    195198       IF ( inflow_s )  THEN
    196199          v_p(:,nys,:) = v_p(:,nys-1,:)
    197        ELSEIF ( inflow_n ) THEN
    198           v_p(:,nyn,:) = v_p(:,nyn+1,:)
    199200       ELSEIF ( inflow_l ) THEN
    200201          u_p(:,:,nxl) = u_p(:,:,nxl-1)
    201        ELSEIF ( inflow_r ) THEN
    202           u_p(:,:,nxr) = u_p(:,:,nxr+1)
    203202       ENDIF
    204203
Note: See TracChangeset for help on using the changeset viewer.