Skip to content

Commit

Permalink
Update GeomIO/pFIOServerBounds.F90
Browse files Browse the repository at this point in the history
  • Loading branch information
tclune committed May 20, 2024
1 parent 89eeacb commit 7303246
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions GeomIO/pFIOServerBounds.F90
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,21 @@ subroutine initialize(this, grid, field_shape, time_index, rc)

this%local_start = 1

if (tile_count == 6) then
select case (tile_count)
case (6) then ! Assume cubed-sphere

tile = 1 + (j1-1)/global_dim(1)
this%file_shape(1:new_grid_dims) = [field_shape(1), field_shape(2) ,1]
this%global_count(1:new_grid_dims) =[global_dim(1), global_dim(1), tile_count]
this%local_start(1:new_grid_dims) = [i1, j1-(tile-1)*global_dim(1), tile]

else if (tile_count == 1) then
case (1) then

this%file_shape(1:new_grid_dims) = [field_shape(1), field_shape(2)]
this%global_count(1:new_grid_dims) = [global_dim(1), global_dim(2)]
this%local_start(1:new_grid_dims) = [i1,j1]

else
case default
_FAIL("unsupported grid")
end select

Expand Down

0 comments on commit 7303246

Please sign in to comment.