Skip to content

Commit 2b8df27

Browse files
authored
EXODUS: Fix incorrect use of exi_redef
At the point that this function was calle in `ex_open_par`, the exodus `file_item` struct has not yet be initialized, so cannot use the `exi_redef` and have to use the `nc_redef`. Signed-off-by: Greg Sjaardema <gsjaardema@gmail.com>
1 parent df76bc3 commit 2b8df27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/seacas/libraries/exodus/src/ex_open_par.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ int ex_open_par_int(const char *path, int mode, int *comp_ws, int *io_ws, float
325325
if (mode & EX_WRITE) { /* Appending */
326326
/* turn off automatic filling of netCDF variables */
327327
if (is_pnetcdf) {
328-
if ((status = exi_redef(exoid, __func__)) != EX_NOERR) {
328+
if ((status = nc_redef(exoid)) != EX_NOERR) {
329329
snprintf(errmsg, MAX_ERR_LENGTH, "ERROR: failed to put file id %d into define mode", exoid);
330330
ex_err_fn(exoid, __func__, errmsg, status);
331331
free(canon_path);

0 commit comments

Comments
 (0)