Changeset 2180 for palm/trunk
- Timestamp:
- Mar 17, 2017 1:33:05 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_pegrid.f90
r2179 r2180 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! Checks to ensure (2178) that pdims match the grid dimensions in the 23 ! automatic determination of pdims are canceled as unnecessary 23 24 ! 24 25 ! Former revisions: … … 265 266 numproc_sqr = SQRT( REAL( numprocs, KIND=wp ) ) 266 267 pdims(1) = MAX( numproc_sqr , 1 ) 268 DO WHILE ( MOD( numprocs , pdims(1) ) /= 0 ) 269 pdims(1) = pdims(1) - 1 270 ENDDO 267 271 pdims(2) = numprocs / pdims(1) 268 DO WHILE ( MOD( numprocs , pdims(1) ) /= 0 .OR. &269 MOD( nx+1, pdims(1) ) /= 0 .OR. &270 MOD( ny+1, pdims(2) ) /= 0 )271 pdims(1) = pdims(1) - 1272 pdims(2) = numprocs / pdims(1)273 ENDDO274 272 275 273 ELSEIF ( npex /= -1 .AND. npey /= -1 ) THEN
Note: See TracChangeset
for help on using the changeset viewer.