Skip to content

Commit 2bc5482

Browse files
committed
new error core NC_EMULTIDEFINE_HINTS for inconsistent I/O hints set by users
1 parent d410d6f commit 2bc5482

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/dispatchers/error_codes.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ ncmpi_strerror(int err)
289289
return "Variable fill value is inconsistent among processes.";
290290
case NC_EMULTIDEFINE_CMODE:
291291
return "File create mode is inconsistent among processes.";
292+
case NC_EMULTIDEFINE_HINTS:
293+
return "I/O hints are not consistent among processes.";
292294
case NC_EBADLOG:
293295
return "Unrecognized burst buffering log file format.";
294296
case NC_EFLUSHED:
@@ -747,6 +749,8 @@ ncmpi_strerrno(int err)
747749
case (NC_EMULTIDEFINE_VAR_FILL_MODE): return "NC_EMULTIDEFINE_VAR_FILL_MODE";
748750
case (NC_EMULTIDEFINE_VAR_FILL_VALUE): return "NC_EMULTIDEFINE_VAR_FILL_VALUE";
749751
case (NC_EMULTIDEFINE_CMODE): return "NC_EMULTIDEFINE_CMODE";
752+
case (NC_EMULTIDEFINE_HINTS): return "NC_EMULTIDEFINE_HINTS";
753+
750754
default:
751755
sprintf(unknown_str,"Unknown code %d",err);
752756
}

src/include/pnetcdf.h.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,9 +686,10 @@ by the desired type. */
686686
#define NC_EMULTIDEFINE_VAR_FILL_MODE (-271) /**< inconsistent variable fill mode */
687687
#define NC_EMULTIDEFINE_VAR_FILL_VALUE (-272) /**< inconsistent variable fill value */
688688
#define NC_EMULTIDEFINE_CMODE (-273) /**< inconsistent file create modes among processes */
689+
#define NC_EMULTIDEFINE_HINTS (-274) /**< inconsistent I/O hints among processes */
689690

690691
#define NC_EMULTIDEFINE_FIRST NC_EMULTIDEFINE
691-
#define NC_EMULTIDEFINE_LAST NC_EMULTIDEFINE_CMODE
692+
#define NC_EMULTIDEFINE_LAST NC_EMULTIDEFINE_HINTS
692693

693694
/* backward compatible with PnetCDF 1.3.1 and earlier */
694695
#define NC_ECMODE NC_EMULTIDEFINE_OMODE

0 commit comments

Comments
 (0)