Ignore:
Timestamp:
Sep 7, 2012 10:41:47 AM (12 years ago)
Author:
raasch
Message:

parameter use_prior_plot1d_parameters removed; little reformatting

File:
1 edited

Legend:

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

    r979 r996  
    44! Current revisions:
    55! -----------------
    6 !
     6! little reformatting
    77
    88! Former revisions:
     
    259259
    260260!
    261 !--       Calculate the phase speeds for u,v, and w, first local and then
    262 !--       average parallel along the outflow boundary. 
    263           DO k = nzb+1, nzt+1
    264              DO i = nxl, nxr
     261!--       Calculate the phase speeds for u, v, and w, first local and then
     262!--       average along the outflow boundary.
     263          DO  k = nzb+1, nzt+1
     264             DO  i = nxl, nxr
    265265
    266266                denom = u_m_s(k,0,i) - u_m_s(k,1,i)
    267267
    268268                IF ( denom /= 0.0 )  THEN
    269                    c_u(k,i) = -c_max * ( u(k,0,i) - u_m_s(k,0,i) )             &
    270                               / ( denom * tsc(2) )
     269                   c_u(k,i) = -c_max * ( u(k,0,i) - u_m_s(k,0,i) ) / ( denom * tsc(2) )
    271270                   IF ( c_u(k,i) < 0.0 )  THEN
    272271                      c_u(k,i) = 0.0
     
    281280
    282281                IF ( denom /= 0.0 )  THEN
    283                    c_v(k,i) = -c_max * ( v(k,1,i) - v_m_s(k,1,i) )             &
    284                               / ( denom * tsc(2) )
     282                   c_v(k,i) = -c_max * ( v(k,1,i) - v_m_s(k,1,i) ) / ( denom * tsc(2) )
    285283                   IF ( c_v(k,i) < 0.0 )  THEN
    286284                      c_v(k,i) = 0.0
     
    295293
    296294                IF ( denom /= 0.0 )  THEN
    297                    c_w(k,i) = -c_max * ( w(k,0,i) - w_m_s(k,0,i) )             &
    298                               / ( denom * tsc(2) )
     295                   c_w(k,i) = -c_max * ( w(k,0,i) - w_m_s(k,0,i) ) / ( denom * tsc(2) )
    299296                   IF ( c_w(k,i) < 0.0 )  THEN
    300297                      c_w(k,i) = 0.0
     
    343340!
    344341!--       Calculate the new velocities
    345           DO k = nzb+1, nzt+1
    346              DO i = nxlg, nxrg
     342          DO  k = nzb+1, nzt+1
     343             DO  i = nxlg, nxrg
    347344                u_p(k,-1,i) = u(k,-1,i) - dt_3d * tsc(2) * c_u_m(k) *          &
    348345                                       ( u(k,-1,i) - u(k,0,i) ) * ddy
     
    401398
    402399!
    403 !--       Calculate the phase speeds for u,v, and w, first local and then
    404 !--       average parallel along the outflow boundary. 
    405           DO k = nzb+1, nzt+1
    406              DO i = nxl, nxr
     400!--       Calculate the phase speeds for u, v, and w, first local and then
     401!--       average along the outflow boundary.
     402          DO  k = nzb+1, nzt+1
     403             DO  i = nxl, nxr
    407404
    408405                denom = u_m_n(k,ny,i) - u_m_n(k,ny-1,i)
    409406
    410407                IF ( denom /= 0.0 )  THEN
    411                    c_u(k,i) = -c_max * ( u(k,ny,i) - u_m_n(k,ny,i) )           &
    412                               / ( denom * tsc(2) )
     408                   c_u(k,i) = -c_max * ( u(k,ny,i) - u_m_n(k,ny,i) ) / ( denom * tsc(2) )
    413409                   IF ( c_u(k,i) < 0.0 )  THEN
    414410                      c_u(k,i) = 0.0
     
    423419
    424420                IF ( denom /= 0.0 )  THEN
    425                    c_v(k,i) = -c_max * ( v(k,ny,i) - v_m_n(k,ny,i) )           &
    426                               / ( denom * tsc(2) )
     421                   c_v(k,i) = -c_max * ( v(k,ny,i) - v_m_n(k,ny,i) ) / ( denom * tsc(2) )
    427422                   IF ( c_v(k,i) < 0.0 )  THEN
    428423                      c_v(k,i) = 0.0
     
    437432
    438433                IF ( denom /= 0.0 )  THEN
    439                    c_w(k,i) = -c_max * ( w(k,ny,i) - w_m_n(k,ny,i) )           &
    440                               / ( denom * tsc(2) )
     434                   c_w(k,i) = -c_max * ( w(k,ny,i) - w_m_n(k,ny,i) ) / ( denom * tsc(2) )
    441435                   IF ( c_w(k,i) < 0.0 )  THEN
    442436                      c_w(k,i) = 0.0
     
    485479!
    486480!--       Calculate the new velocities
    487           DO k = nzb+1, nzt+1
    488              DO i = nxlg, nxrg
     481          DO  k = nzb+1, nzt+1
     482             DO  i = nxlg, nxrg
    489483                u_p(k,ny+1,i) = u(k,ny+1,i) - dt_3d * tsc(2) * c_u_m(k) *      &
    490484                                       ( u(k,ny+1,i) - u(k,ny,i) ) * ddy
     
    543537
    544538!
    545 !--       Calculate the phase speeds for u,v, and w, first local and then
    546 !--       average parallel along the outflow boundary. 
    547           DO k = nzb+1, nzt+1
    548              DO j = nys, nyn
     539!--       Calculate the phase speeds for u, v, and w, first local and then
     540!--       average along the outflow boundary.
     541          DO  k = nzb+1, nzt+1
     542             DO  j = nys, nyn
    549543
    550544                denom = u_m_l(k,j,1) - u_m_l(k,j,2)
    551545
    552546                IF ( denom /= 0.0 )  THEN
    553                    c_u(k,j) = -c_max * ( u(k,j,1) - u_m_l(k,j,1) )             &
    554                               / ( denom * tsc(2) )
     547                   c_u(k,j) = -c_max * ( u(k,j,1) - u_m_l(k,j,1) ) / ( denom * tsc(2) )
    555548                   IF ( c_u(k,j) < 0.0 )  THEN
    556549                      c_u(k,j) = 0.0
     
    565558
    566559                IF ( denom /= 0.0 )  THEN
    567                    c_v(k,j) = -c_max * ( v(k,j,0) - v_m_l(k,j,0) )             &
    568                               / ( denom * tsc(2) )
     560                   c_v(k,j) = -c_max * ( v(k,j,0) - v_m_l(k,j,0) ) / ( denom * tsc(2) )
    569561                   IF ( c_v(k,j) < 0.0 )  THEN
    570562                      c_v(k,j) = 0.0
     
    579571
    580572                IF ( denom /= 0.0 )  THEN
    581                    c_w(k,j) = -c_max * ( w(k,j,0) - w_m_l(k,j,0) )             &
    582                               / ( denom * tsc(2) )
     573                   c_w(k,j) = -c_max * ( w(k,j,0) - w_m_l(k,j,0) ) / ( denom * tsc(2) )
    583574                   IF ( c_w(k,j) < 0.0 )  THEN
    584575                      c_w(k,j) = 0.0
     
    627618!
    628619!--       Calculate the new velocities
    629           DO k = nzb+1, nzt+1
    630              DO i = nxlg, nxrg
     620          DO  k = nzb+1, nzt+1
     621             DO  i = nxlg, nxrg
    631622                u_p(k,j,0) = u(k,j,0) - dt_3d * tsc(2) * c_u_m(k) *            &
    632623                                       ( u(k,j,0) - u(k,j,1) ) * ddx
     
    685676
    686677!
    687 !--       Calculate the phase speeds for u,v, and w, first local and then
    688 !--       average parallel along the outflow boundary. 
    689           DO k = nzb+1, nzt+1
    690              DO j = nys, nyn
     678!--       Calculate the phase speeds for u, v, and w, first local and then
     679!--       average along the outflow boundary.
     680          DO  k = nzb+1, nzt+1
     681             DO  j = nys, nyn
    691682
    692683                denom = u_m_r(k,j,nx) - u_m_r(k,j,nx-1)
    693684
    694685                IF ( denom /= 0.0 )  THEN
    695                    c_u(k,j) = -c_max * ( u(k,j,nx) - u_m_r(k,j,nx) )           &
    696                               / ( denom * tsc(2) )
     686                   c_u(k,j) = -c_max * ( u(k,j,nx) - u_m_r(k,j,nx) ) / ( denom * tsc(2) )
    697687                   IF ( c_u(k,j) < 0.0 )  THEN
    698688                      c_u(k,j) = 0.0
     
    707697
    708698                IF ( denom /= 0.0 )  THEN
    709                    c_v(k,j) = -c_max * ( v(k,j,nx) - v_m_r(k,j,nx) )           &
    710                               / ( denom * tsc(2) )
     699                   c_v(k,j) = -c_max * ( v(k,j,nx) - v_m_r(k,j,nx) ) / ( denom * tsc(2) )
    711700                   IF ( c_v(k,j) < 0.0 )  THEN
    712701                      c_v(k,j) = 0.0
     
    721710
    722711                IF ( denom /= 0.0 )  THEN
    723                    c_w(k,j) = -c_max * ( w(k,j,nx) - w_m_r(k,j,nx) )           &
    724                               / ( denom * tsc(2) )
     712                   c_w(k,j) = -c_max * ( w(k,j,nx) - w_m_r(k,j,nx) ) / ( denom * tsc(2) )
    725713                   IF ( c_w(k,j) < 0.0 )  THEN
    726714                      c_w(k,j) = 0.0
     
    769757!
    770758!--       Calculate the new velocities
    771           DO k = nzb+1, nzt+1
    772              DO i = nxlg, nxrg
     759          DO  k = nzb+1, nzt+1
     760             DO  i = nxlg, nxrg
    773761                u_p(k,j,nx+1) = u(k,j,nx+1) - dt_3d * tsc(2) * c_u_m(k) *      &
    774762                                       ( u(k,j,nx+1) - u(k,j,nx) ) * ddx
Note: See TracChangeset for help on using the changeset viewer.