Changeset 4845 for palm/trunk/SOURCE/init_3d_model.f90
- Timestamp:
- Jan 18, 2021 11:15:37 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_3d_model.f90
r4828 r4845 24 24 ! ----------------- 25 25 ! $Id$ 26 ! removed allocation and initialization of arrays required for radiation boundary conditions 27 ! 28 ! 4828 2021-01-05 11:21:41Z Giersch 26 29 ! Add possibility to initialize surface flux of passive scalar via static driver 27 30 ! … … 560 563 561 564 ! 562 !-- Arrays to store velocity data from t-dt and the phase speeds which are needed for radiation563 !-- boundary conditions.564 IF ( bc_radiation_l ) THEN565 ALLOCATE( u_m_l(nzb:nzt+1,nysg:nyng,1:2), &566 v_m_l(nzb:nzt+1,nysg:nyng,0:1), &567 w_m_l(nzb:nzt+1,nysg:nyng,0:1) )568 ENDIF569 IF ( bc_radiation_r ) THEN570 ALLOCATE( u_m_r(nzb:nzt+1,nysg:nyng,nx-1:nx), &571 v_m_r(nzb:nzt+1,nysg:nyng,nx-1:nx), &572 w_m_r(nzb:nzt+1,nysg:nyng,nx-1:nx) )573 ENDIF574 IF ( bc_radiation_l .OR. bc_radiation_r ) THEN575 ALLOCATE( c_u(nzb:nzt+1,nysg:nyng), c_v(nzb:nzt+1,nysg:nyng), c_w(nzb:nzt+1,nysg:nyng) )576 ENDIF577 IF ( bc_radiation_s ) THEN578 ALLOCATE( u_m_s(nzb:nzt+1,0:1,nxlg:nxrg), &579 v_m_s(nzb:nzt+1,1:2,nxlg:nxrg), &580 w_m_s(nzb:nzt+1,0:1,nxlg:nxrg) )581 ENDIF582 IF ( bc_radiation_n ) THEN583 ALLOCATE( u_m_n(nzb:nzt+1,ny-1:ny,nxlg:nxrg), &584 v_m_n(nzb:nzt+1,ny-1:ny,nxlg:nxrg), &585 w_m_n(nzb:nzt+1,ny-1:ny,nxlg:nxrg) )586 ENDIF587 IF ( bc_radiation_s .OR. bc_radiation_n ) THEN588 ALLOCATE( c_u(nzb:nzt+1,nxlg:nxrg), c_v(nzb:nzt+1,nxlg:nxrg), c_w(nzb:nzt+1,nxlg:nxrg) )589 ENDIF590 IF ( bc_radiation_l .OR. bc_radiation_r .OR. bc_radiation_s .OR. bc_radiation_n ) THEN591 ALLOCATE( c_u_m_l(nzb:nzt+1), c_v_m_l(nzb:nzt+1), c_w_m_l(nzb:nzt+1) )592 ALLOCATE( c_u_m(nzb:nzt+1), c_v_m(nzb:nzt+1), c_w_m(nzb:nzt+1) )593 ENDIF594 595 !596 565 !-- Initial assignment of the pointers 597 566 IF ( .NOT. neutral ) THEN … … 1344 1313 message_string = 'unknown initializing problem' 1345 1314 CALL message( 'init_3d_model', 'PA0193', 1, 2, 0, 6, 0 ) 1346 ENDIF1347 1348 1349 IF ( TRIM( initializing_actions ) /= 'read_restart_data' ) THEN1350 !1351 !-- Initialize old timelevels needed for radiation boundary conditions1352 IF ( bc_radiation_l ) THEN1353 u_m_l(:,:,:) = u(:,:,1:2)1354 v_m_l(:,:,:) = v(:,:,0:1)1355 w_m_l(:,:,:) = w(:,:,0:1)1356 ENDIF1357 IF ( bc_radiation_r ) THEN1358 u_m_r(:,:,:) = u(:,:,nx-1:nx)1359 v_m_r(:,:,:) = v(:,:,nx-1:nx)1360 w_m_r(:,:,:) = w(:,:,nx-1:nx)1361 ENDIF1362 IF ( bc_radiation_s ) THEN1363 u_m_s(:,:,:) = u(:,0:1,:)1364 v_m_s(:,:,:) = v(:,1:2,:)1365 w_m_s(:,:,:) = w(:,0:1,:)1366 ENDIF1367 IF ( bc_radiation_n ) THEN1368 u_m_n(:,:,:) = u(:,ny-1:ny,:)1369 v_m_n(:,:,:) = v(:,ny-1:ny,:)1370 w_m_n(:,:,:) = w(:,ny-1:ny,:)1371 ENDIF1372 1373 1315 ENDIF 1374 1316
Note: See TracChangeset
for help on using the changeset viewer.