Changeset 1822 for palm/trunk/SOURCE/lpm_read_restart_file.f90
- Timestamp:
- Apr 7, 2016 7:49:42 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lpm_read_restart_file.f90
r1818 r1822 19 19 ! Current revisions: 20 20 ! ------------------ 21 ! 21 ! Tails removed. Unused variables removed. 22 22 ! 23 23 ! Former revisions: … … 54 54 55 55 USE indices, & 56 ONLY: nx , nxl, nxlg, nxr, nxrg, ny, nyn, nyng, nys, nysg, nz, nzb, nzt56 ONLY: nxl, nxlg, nxr, nxrg, nyn, nyng, nys, nysg, nzb, nzt 57 57 58 58 USE kinds … … 64 64 ONLY: alloc_factor, bc_par_b, bc_par_lr, bc_par_ns, bc_par_t, & 65 65 grid_particles, maximum_number_of_particles, & 66 maximum_number_of_tailpoints, maximum_number_of_tails, & 67 min_nr_particle, new_tail_id, number_of_particles, & 68 number_of_particle_groups, number_of_tails, particles, & 69 particle_groups, particle_tail_coordinates, particle_type, & 70 prt_count, sort_count, tail_mask, time_prel, & 71 time_write_particle_data, uniform_particles, & 72 use_particle_tails, zero_particle 66 min_nr_particle, number_of_particles, number_of_particle_groups,& 67 particle_groups, particle_type, prt_count, time_prel, & 68 time_write_particle_data, uniform_particles, zero_particle 73 69 74 70 USE pegrid … … 100 96 !-- First compare the version numbers 101 97 READ ( 90 ) version_on_file 102 particle_binary_version = ' 3.2'98 particle_binary_version = '4.0' 103 99 IF ( TRIM( version_on_file ) /= TRIM( particle_binary_version ) ) THEN 104 100 message_string = 'version mismatch concerning data from prior ' // & … … 114 110 !-- min_nr_particle, the remainder is initialized by zero_particle to avoid 115 111 !-- errors. 116 #if defined( __twocachelines )117 zero_particle = particle_type( 0.0_wp, 0.0_sp, 0.0_sp, 0.0_sp, 0.0_sp, &118 0.0_sp, 0.0_sp, 0.0_wp, 0.0_wp, 0.0_wp, &119 0, .FALSE., 0.0_wp, 0.0_wp, 0.0_wp, &120 0.0_sp, 0.0_sp, 0.0_sp, 0.0_sp, 0.0_sp, &121 0.0_sp, 0, 0, 0, -1)122 #else123 112 zero_particle = particle_type( 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, & 124 113 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, & … … 126 115 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 0, 0, 0, & 127 116 0, .FALSE., -1) 128 #endif129 130 117 ! 131 118 !-- Read some particle parameters and the size of the particle arrays, 132 119 !-- allocate them and read their contents. 133 120 READ ( 90 ) bc_par_b, bc_par_lr, bc_par_ns, bc_par_t, & 134 maximum_number_of_tailpoints, maximum_number_of_tails, & 135 number_of_particle_groups, number_of_tails, & 136 particle_groups, time_prel, time_write_particle_data, & 137 uniform_particles 121 number_of_particle_groups, particle_groups, time_prel, & 122 time_write_particle_data, uniform_particles 138 123 139 124 ALLOCATE( prt_count(nzb:nzt+1,nysg:nyng,nxlg:nxrg), & … … 177 162 ENDDO 178 163 179 !180 !-- particle tails currently not available181 ! IF ( use_particle_tails ) THEN182 ! ALLOCATE( particle_tail_coordinates(maximum_number_of_tailpoints,5, &183 ! maximum_number_of_tails), &184 ! new_tail_id(maximum_number_of_tails), &185 ! tail_mask(maximum_number_of_tails) )186 ! READ ( 90 ) particle_tail_coordinates187 ! ENDIF188 189 164 CLOSE ( 90 ) 190 165 !
Note: See TracChangeset
for help on using the changeset viewer.