Changeset 4694 for palm/trunk/SOURCE/urban_surface_mod.f90
- Timestamp:
- Sep 23, 2020 3:09:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/urban_surface_mod.f90
r4693 r4694 27 27 ! ----------------- 28 28 ! $Id$ 29 ! Fix writing and reading of surface data to/from MPI restart file 30 ! 31 ! 4693 2020-09-22 19:47:04Z maronga 29 32 ! Bugfix for last commit 30 33 ! … … 6498 6501 global_start ) 6499 6502 6503 IF ( MAXVAL( surf_usm_h(l)%end_index ) <= 0 ) CYCLE 6504 6500 6505 IF ( .NOT. ALLOCATED( t_surf_wall_h_1(l)%val ) ) & 6501 6506 ALLOCATE( t_surf_wall_h_1(l)%val(1:surf_usm_h(l)%ns) ) … … 6510 6515 CALL rrd_mpi_io_surface( 't_surf_green_h(' // dum // ')', t_surf_green_h_1(l)%val ) 6511 6516 6517 IF ( .NOT. ALLOCATED( m_liq_usm_h_1(l)%val ) ) & 6518 ALLOCATE( m_liq_usm_h_1(l)%val(1:surf_usm_h(l)%ns) ) 6519 CALL rrd_mpi_io_surface( 'm_liq_usm_h(' // dum // ')', m_liq_usm_h_1(l)%val ) 6520 6521 IF ( indoor_model ) THEN 6522 IF ( .NOT. ALLOCATED( surf_usm_h(l)%waste_heat ) ) & 6523 ALLOCATE( surf_usm_h(l)%waste_heat(1:surf_usm_h(l)%ns) ) 6524 CALL rrd_mpi_io_surface( 'waste_heat_h(' // dum // ')', surf_usm_h(l)%waste_heat ) 6525 ENDIF 6526 6512 6527 ENDDO 6513 6528 DO l = 0, 3 … … 6522 6537 global_start ) 6523 6538 6539 IF ( MAXVAL( surf_usm_v(l)%end_index ) <= 0 ) CYCLE 6540 6524 6541 IF ( .NOT. ALLOCATED( t_surf_wall_v_1(l)%val ) ) & 6525 6542 ALLOCATE( t_surf_wall_v_1(l)%val(1:surf_usm_v(l)%ns) ) … … 6547 6564 global_start ) 6548 6565 6566 IF ( MAXVAL( surf_usm_h(l)%end_index ) <= 0 ) CYCLE 6567 6549 6568 IF ( .NOT. ALLOCATED( t_wall_h_1(l)%val ) ) & 6550 6569 ALLOCATE( t_wall_h_1(l)%val(nzb_wall:nzt_wall+1,1:surf_usm_h(l)%ns) ) … … 6558 6577 ALLOCATE( t_green_h_1(l)%val(nzb_wall:nzt_wall+1,1:surf_usm_h(l)%ns) ) 6559 6578 CALL rrd_mpi_io_surface( 't_green_h(' // dum // ')', t_green_h_1(l)%val ) 6579 6560 6580 ENDDO 6561 6581 … … 6570 6590 CALL rd_mpi_io_surface_filetypes( surf_usm_v(l)%start_index, surf_usm_v(l)%end_index, ldum, & 6571 6591 global_start ) 6592 6593 IF ( MAXVAL( surf_usm_v(l)%end_index ) <= 0 ) CYCLE 6572 6594 6573 6595 IF ( .NOT. ALLOCATED( t_wall_v_1(l)%val ) ) & … … 7392 7414 WRITE( dum, '(I1)') l 7393 7415 7394 END DO7395 7416 CALL rd_mpi_io_surface_filetypes( surf_usm_h(l)%start_index, surf_usm_h(l)%end_index, & 7396 7417 surface_data_to_write, global_start_index ) … … 7400 7421 CALL wrd_mpi_io( 'usm_global_start_h_' // dum, global_start_index ) 7401 7422 7402 CALL wrd_mpi_io_surface( 't_surf_wall_h_' // dum, t_surf_wall_h(l)%val ) 7403 CALL wrd_mpi_io_surface( 't_surf_window_h_' // dum, t_surf_window_h(l)%val ) 7404 CALL wrd_mpi_io_surface( 't_surf_green_h_' // dum, t_surf_green_h(l)%val ) 7405 7406 CALL wrd_mpi_io_surface( 'm_liq_usm_h_' // dum, m_liq_usm_h(l)%val ) 7423 IF ( .NOT. surface_data_to_write ) CYCLE 7424 7425 CALL wrd_mpi_io_surface( 't_surf_wall_h(' // dum // ')', t_surf_wall_h(l)%val ) 7426 CALL wrd_mpi_io_surface( 't_surf_window_h(' // dum // ')', t_surf_window_h(l)%val ) 7427 CALL wrd_mpi_io_surface( 't_surf_green_h(' // dum // ')', t_surf_green_h(l)%val ) 7428 7429 CALL wrd_mpi_io_surface( 'm_liq_usm_h(' // dum // ')', m_liq_usm_h(l)%val ) 7407 7430 IF ( indoor_model ) THEN 7408 CALL wrd_mpi_io_surface( 'waste_heat_h_' // dum, surf_usm_h(l)%waste_heat ) ! NEED TO BE CHECKED!!!!! 7409 ENDIF 7431 CALL wrd_mpi_io_surface( 'waste_heat_h(' // dum // ')', surf_usm_h(l)%waste_heat ) ! NEED TO BE CHECKED!!!!! 7432 ENDIF 7433 7434 ENDDO 7410 7435 7411 7436 DO l = 0, 3 … … 7439 7464 CALL wrd_mpi_io( 'usm_global_start_h_2_' // dum, global_start_index ) 7440 7465 7441 CALL wrd_mpi_io_surface( 't_wall_h_' // dum, t_wall_h(l)%val ) 7442 CALL wrd_mpi_io_surface( 't_window_h_' // dum, t_window_h(l)%val ) 7443 CALL wrd_mpi_io_surface( 't_green_h_' // dum, t_green_h(l)%val ) 7466 IF ( .NOT. surface_data_to_write ) CYCLE 7467 7468 CALL wrd_mpi_io_surface( 't_wall_h(' // dum // ')', t_wall_h(l)%val ) 7469 CALL wrd_mpi_io_surface( 't_window_h(' // dum // ')', t_window_h(l)%val ) 7470 CALL wrd_mpi_io_surface( 't_green_h(' // dum // ')', t_green_h(l)%val ) 7444 7471 7445 7472 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.