Skip to content

Commit d9b6920

Browse files
authored
Merge branch 'main' into update/2.6.1
2 parents 93b464b + 96a7d73 commit d9b6920

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,12 +469,16 @@ FILE(READ "${CMAKE_CURRENT_BINARY_DIR}/libpio.settings"
469469
LIBPIO_SETTINGS)
470470
MESSAGE(STATUS ${LIBPIO_SETTINGS})
471471

472+
# Set RPATH for shared libraries
473+
set(CMAKE_MACOSX_RPATH 1)
474+
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
475+
472476
# Install libpio.settings file into same location
473477
# as the libraries.
474478
INSTALL(FILES "${PIO_BINARY_DIR}/libpio.settings"
475479
DESTINATION lib
476480
COMPONENT libraries)
477-
481+
478482
#####
479483
# Create pio_meta.h include file.
480484
#####

src/clib/pio_internal.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
#include <limits.h>
1818
#include <math.h>
1919
#include <netcdf.h>
20-
#ifdef _NETCDF4
21-
#include <netcdf_par.h>
20+
#ifdef PIO_HAS_PAR_FILTERS
2221
#include <netcdf_filter.h>
2322
#include <netcdf_meta.h>
2423
#endif
24+
#ifdef _NETCDF4
25+
#include <netcdf_par.h>
26+
#endif
2527
#ifdef _PNETCDF
2628
#include <pnetcdf.h>
2729
#endif

tests/performance/pioperformance.F90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ subroutine pioperformancetest(filename, piotypes, mype, npe_base, &
151151
integer(kind=PIO_Offset_kind) :: maplen, gmaplen
152152
integer :: ndims
153153
integer, pointer :: gdims(:)
154-
character(len=20) :: fname
154+
character(len=24) :: fname
155155
type(var_desc_t) :: vari(nvars), varr(nvars), vard(nvars)
156156
type(iosystem_desc_t) :: iosystem
157157
integer :: stride, n
@@ -266,7 +266,7 @@ subroutine pioperformancetest(filename, piotypes, mype, npe_base, &
266266

267267
call pio_init(mype, comm, ntasks, 0, stride, PIO_REARR_SUBSET, iosystem)
268268

269-
write(fname, '(a,i1,a,i4.4,a,i1,a)') 'pioperf.',rearr,'-',ntasks,'-',k,'.nc'
269+
write(fname, '(a,i1,a,i6.6,a,i1,a)') 'pioperf.',rearr,'-',ntasks,'-',iotype,'.nc'
270270

271271
call PIO_set_hint(iosystem, "nc_var_align_size", "1")
272272

@@ -379,7 +379,7 @@ subroutine pioperformancetest(filename, piotypes, mype, npe_base, &
379379
! Now the Read
380380
#ifdef DOREAD
381381

382-
write(fname, '(a,i1,a,i4.4,a,i1,a)') 'pioperf.',rearr,'-',ntasks,'-',iotype,'.nc'
382+
write(fname, '(a,i1,a,i6.6,a,i1,a)') 'pioperf.',rearr,'-',ntasks,'-',iotype,'.nc'
383383

384384
ierr = PIO_OpenFile(iosystem, File, iotype, trim(fname), mode=PIO_NOWRITE);
385385
do nv=1,nvars

0 commit comments

Comments
 (0)