Changeset 145 for palm/trunk/SOURCE/read_var_list.f90
- Timestamp:
- Jan 9, 2008 8:17:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/read_var_list.f90
r143 r145 5 5 ! ----------------- 6 6 ! After reading the global variables, unit 13 is closed for all PEs except PE0 7 ! -cross_ts_*, 8 ! hom_sum moved, volume_flow_area, volume_flow_initial moved from 7 ! +numprocs_previous_run, hor_index_bounds_previous_run, 8 ! -cross_ts_*, npex, npey, 9 ! hom_sum, volume_flow_area, volume_flow_initial moved from 9 10 ! read_3d_binary to here 10 11 ! … … 72 73 !-- Make version number check first 73 74 READ ( 13 ) version_on_file 74 binary_version = '3. 1'75 binary_version = '3.2' 75 76 IF ( TRIM( version_on_file ) /= TRIM( binary_version ) ) THEN 76 77 IF ( myid == 0 ) THEN … … 84 85 CALL local_stop 85 86 ENDIF 87 88 ! 89 !-- Read number of PEs and horizontal index bounds of all PEs used in previous 90 !-- run 91 READ ( 13 ) variable_chr 92 IF ( TRIM( variable_chr ) /= 'numprocs' ) THEN 93 PRINT*, '+++ read_var_list: numprocs not found in data from prior run', & 94 ' on PE ', myid 95 CALL local_stop 96 ENDIF 97 READ ( 13 ) numprocs_previous_run 98 99 ALLOCATE( hor_index_bounds_previous_run(4,0:numprocs_previous_run-1) ) 100 101 READ ( 13 ) variable_chr 102 IF ( TRIM( variable_chr ) /= 'hor_index_bounds' ) THEN 103 PRINT*, '+++ read_var_list: hor_index_bounds not found in data from ', & 104 'prior run on PE ', myid 105 CALL local_stop 106 ENDIF 107 READ ( 13 ) hor_index_bounds_previous_run 86 108 87 109 ! … … 124 146 READ ( 13 ) statistic_regions 125 147 ALLOCATE( ug(0:nz+1), u_init(0:nz+1), vg(0:nz+1), v_init(0:nz+1), & 126 pt_init(0:nz+1), q_init(0:nz+1), sa_init(0:nz+1), & 127 hom(0:nz+1,2,pr_palm+max_pr_user,0:statistic_regions) ) 148 pt_init(0:nz+1), q_init(0:nz+1), sa_init(0:nz+1), & 149 hom(0:nz+1,2,pr_palm+max_pr_user,0:statistic_regions), & 150 hom_sum(0:nz+1,pr_palm+max_pr_user,0:statistic_regions) ) 128 151 129 152 ! … … 283 306 CASE ( 'netcdf_precision' ) 284 307 READ ( 13 ) netcdf_precision 285 CASE ( 'npex' )286 READ ( 13 ) npex287 CASE ( 'npey' )288 READ ( 13 ) npey289 308 CASE ( 'nsor_ini' ) 290 309 READ ( 13 ) nsor_ini
Note: See TracChangeset
for help on using the changeset viewer.