diff --git a/tests/performance/pioperformance.F90 b/tests/performance/pioperformance.F90 index fb54f84f09f5..89430c7c4422 100644 --- a/tests/performance/pioperformance.F90 +++ b/tests/performance/pioperformance.F90 @@ -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 @@ -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