Changeset 2773 for palm/trunk/SOURCE/netcdf_data_input_mod.f90
- Timestamp:
- Jan 30, 2018 2:12:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/netcdf_data_input_mod.f90
r2772 r2773 25 25 ! ----------------- 26 26 ! $Id$ 27 ! - Enable initialization with 3D topography. 28 ! - Move check for correct initialization in nesting mode to check_parameters. 29 ! 30 ! 2772 2018-01-29 13:10:35Z suehring 27 31 ! Initialization of simulation independent on land-surface model. 28 32 ! … … 1699 1703 !-- If available, also read 3D building information. If both are 1700 1704 !-- available, use 3D information. 1701 !IF ( check_existence( var_names, 'buildings_3D' ) ) THEN1702 !buildings_f%from_file = .TRUE.1703 !CALL get_attribute( id_topo, char_lod, buildings_f%lod, &1704 !.FALSE., 'buildings_3D' )1705 ! 1706 !CALL get_attribute( id_topo, char_fill, &1707 !buildings_f%fill2, &1708 !.FALSE., 'buildings_3D' )1709 ! 1710 !CALL get_dimension_length( id_topo, buildings_f%nz, 'z' )1711 !1712 !IF ( buildings_f%lod == 2 ) THEN1713 !ALLOCATE( buildings_f%var_3d(nzb:buildings_f%nz, &1714 !nys:nyn,nxl:nxr) )1715 !buildings_f%var_3d = 01716 ! !1717 ! !-- Read data PE-wise. Read yz-slices.1718 !DO i = nxl, nxr1719 !DO j = nys, nyn1720 !CALL get_variable( id_topo, 'buildings_3D', &1721 !i, j, &1722 !buildings_f%var_3d(:,j,i) )1723 !ENDDO1724 !ENDDO1725 !ELSE1726 !message_string = 'NetCDF attribute lod ' // &1727 !'(level of detail) is not set properly.'1728 !CALL message( 'netcdf_data_input_mod', 'PA0999', &1729 !1, 2, 0, 6, 0 )1730 !ENDIF1731 !ENDIF1705 IF ( check_existence( var_names, 'buildings_3D' ) ) THEN 1706 buildings_f%from_file = .TRUE. 1707 CALL get_attribute( id_topo, char_lod, buildings_f%lod, & 1708 .FALSE., 'buildings_3D' ) 1709 1710 CALL get_attribute( id_topo, char_fill, & 1711 buildings_f%fill2, & 1712 .FALSE., 'buildings_3D' ) 1713 1714 CALL get_dimension_length( id_topo, buildings_f%nz, 'z' ) 1715 1716 IF ( buildings_f%lod == 2 ) THEN 1717 ALLOCATE( buildings_f%var_3d(nzb:buildings_f%nz, & 1718 nys:nyn,nxl:nxr) ) 1719 buildings_f%var_3d = 0 1720 ! 1721 !-- Read data PE-wise. Read yz-slices. 1722 DO i = nxl, nxr 1723 DO j = nys, nyn 1724 CALL get_variable( id_topo, 'buildings_3D', & 1725 i, j, & 1726 buildings_f%var_3d(:,j,i) ) 1727 ENDDO 1728 ENDDO 1729 ELSE 1730 message_string = 'NetCDF attribute lod ' // & 1731 '(level of detail) is not set properly.' 1732 CALL message( 'netcdf_data_input_mod', 'PA0999', & 1733 1, 2, 0, 6, 0 ) 1734 ENDIF 1735 ENDIF 1732 1736 ! 1733 1737 !-- Read building IDs and its FillValue attribute. Further required … … 2691 2695 ONLY: initializing_actions, forcing, message_string 2692 2696 2693 USE pmc_interface, &2694 ONLY: nested_run2695 2696 2697 IMPLICIT NONE 2697 2698 LOGICAL :: check_nest !< flag indicating if a check passed2699 2698 2700 2699 ! … … 2714 2713 TRIM( coupling_char ) 2715 2714 CALL message( 'netcdf_data_input_mod', 'PA0430', 1, 2, 0, 6, 0 ) 2716 ENDIF2717 !2718 !-- In case of nested run assure that all domains are initialized the same2719 !-- way, i.e. if at least at one domain is initialized with soil and2720 !-- atmospheric data provided by COSMO, all domains must be initialized the2721 !-- same way, to assure that soil and atmospheric quantities are2722 !-- consistent.2723 IF ( nested_run ) THEN2724 check_nest = .TRUE.2725 #if defined( __parallel )2726 CALL MPI_ALLREDUCE( TRIM( initializing_actions ) == 'inifor', &2727 check_nest, 1, MPI_LOGICAL, &2728 MPI_LAND, MPI_COMM_WORLD, ierr )2729 2730 IF ( TRIM( initializing_actions ) == 'inifor' .AND. &2731 .NOT. check_nest ) THEN2732 message_string = 'In case of nesting, if at least in one ' // &2733 'domain initializing_actions = inifor, ' // &2734 'all domains need to be initialized that way.'2735 CALL message( 'netcdf_data_input_mod', 'PA0430', 3, 2, 0, 6, 0 )2736 ENDIF2737 #endif2738 2715 ENDIF 2739 2716
Note: See TracChangeset
for help on using the changeset viewer.