Skip to content

Commit

Permalink
changes to pioperformance.F90 to support the PIO1 library.
Browse files Browse the repository at this point in the history
  • Loading branch information
Katetc committed Mar 29, 2016
1 parent 820aeda commit c3f5a1d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/performance/pioperformance.F90
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ program pioperformance
nvars, varsize, unlimdimindof
#ifdef BGQTRY
external :: print_memusage
#endif
#ifdef _PIO1
integer, parameter :: PIO_FILL_INT = 02147483647
real, parameter :: PIO_FILL_FLOAT = 9.969209968E+36
double precision, parameter :: PIO_FILL_DOUBLE = 9.969209968E+36
#endif
!
! Initialize MPI
Expand Down Expand Up @@ -167,7 +172,13 @@ subroutine pioperformancetest(filename, piotypes, mype, npe_base, &
if(trim(filename) .eq. 'ROUNDROBIN' .or. trim(filename).eq.'BLOCK') then
call init_ideal_dof(filename, mype, npe_base, ndims, gdims, compmap, varsize)
else
! Changed to support PIO1 as well
#ifdef _PIO1
call pio_readdof(filename, compmap, MPI_COMM_WORLD)
#else
call pio_readdof(filename, ndims, gdims, compmap, MPI_COMM_WORLD)
#endif

endif
maplen = size(compmap)
! color = 0
Expand Down

0 comments on commit c3f5a1d

Please sign in to comment.