Changeset 8a65cb0 in flexpart.git for src/outgrid_init.f90
- Timestamp:
- Mar 2, 2015, 3:11:55 PM (9 years ago)
- Branches:
- master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
- Children:
- 1d207bb
- Parents:
- 60403cd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/outgrid_init.f90
rb4d29ce r8a65cb0 200 200 endif 201 201 202 !write (*,*) 'allocating: in a sec',OHREA203 if (OHREA.eqv..TRUE.) then204 ! write (*,*) 'allocating: ',maxxOH,maxyOH,maxzOH205 allocate(OH_field(12,0:maxxOH-1,0:maxyOH-1,maxzOH) &206 ,stat=stat)207 if (stat.ne.0) write(*,*)'ERROR: could not allocate OH array '208 allocate(OH_field_height(7) &209 ,stat=stat)210 if (stat.ne.0) write(*,*)'ERROR: could not allocate OH array '211 endif212 202 ! gridunc,griduncn uncertainty of outputted concentrations 213 203 allocate(gridunc(0:numxgrid-1,0:numygrid-1,numzgrid,maxspec, & … … 222 212 if (stat.ne.0) write(*,*)'ERROR: could not allocate gridunc' 223 213 endif 214 215 ! Extra field for totals at MPI root process 216 if (lroot.and.mpi_mode.gt.0) then 217 ! allocate(gridunc0(0:numxgrid-1,0:numygrid-1,numzgrid,maxspec, & 218 ! maxpointspec_act,nclassunc,maxageclass),stat=stat) 219 ! if (stat.ne.0) write(*,*)'ERROR: could not allocate gridunc0' 220 if (ldirect.gt.0) then 221 allocate(wetgridunc0(0:numxgrid-1,0:numygrid-1,maxspec, & 222 maxpointspec_act,nclassunc,maxageclass),stat=stat) 223 if (stat.ne.0) write(*,*)'ERROR: could not allocate wetgridunc0' 224 allocate(drygridunc0(0:numxgrid-1,0:numygrid-1,maxspec, & 225 maxpointspec_act,nclassunc,maxageclass),stat=stat) 226 if (stat.ne.0) write(*,*)'ERROR: could not allocate drygridunc0' 227 endif 228 ! allocate a dummy to avoid compilator complaints 229 else if (.not.lroot.and.mpi_mode.gt.0) then 230 allocate(wetgridunc0(1,1,1,1,1,1),stat=stat) 231 allocate(drygridunc0(1,1,1,1,1,1),stat=stat) 232 end if 233 224 234 !write (*,*) 'Dimensions for fields', numxgrid,numygrid, & 225 235 ! maxspec,maxpointspec_act,nclassunc,maxageclass 226 236 227 write (*,*) 'Allocating fields for global output (x,y): ', numxgrid,numygrid 228 write (*,*) 'Allocating fields for nested output (x,y): ', numxgridn,numygridn 237 if (lroot) then 238 write (*,*) 'Allocating fields for global output (x,y): ', numxgrid,numygrid 239 write (*,*) 'Allocating fields for nested output (x,y): ', numxgridn,numygridn 240 end if 229 241 230 242 ! allocate fields for concoutput with maximum dimension of outgrid
Note: See TracChangeset
for help on using the changeset viewer.