Skip to content

Commit

Permalink
actually code generate_file_bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
bena-nasa committed Apr 24, 2020
1 parent 9c39b3e commit 01a37e8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions MAPL_Base/MAPL_TripolarGridFactory.F90
Original file line number Diff line number Diff line change
Expand Up @@ -933,12 +933,17 @@ subroutine generate_file_bounds(this,grid,local_start,global_start,global_count,
integer, allocatable, intent(inout) :: global_count(:)
integer, optional, intent(out) :: rc

integer :: status
integer :: global_dim(3), i1,j1,in,jn
character(len=*), parameter :: Iam = MOD_NAME // 'generate_file_bounds'
_UNUSED_DUMMY(this)
_UNUSED_DUMMY(grid)
_UNUSED_DUMMY(local_start)
_UNUSED_DUMMY(global_start)
_UNUSED_DUMMY(global_count)
_UNUSED_DUMMY(rc)

call MAPL_GridGet(grid,globalCellCountPerDim=global_dim,rc=status)
_VERIFY(status)
call MAPL_GridGetInterior(grid,i1,in,j1,jn)
allocate(local_start,source=[i1,j1])
allocate(global_start,source=[1,1])
allocate(global_count,source=[global_dim(1),global_dim(2)])

end subroutine generate_file_bounds

Expand Down

0 comments on commit 01a37e8

Please sign in to comment.