Skip to content

Commit

Permalink
Use adios2_mode_readRandomAccess in matlab open to make it work for B…
Browse files Browse the repository at this point in the history
…P5 (#3956)
  • Loading branch information
pnorbert authored Dec 6, 2023
1 parent 7c95e3f commit d8a70b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/Matlab/adiosopenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
/* Open ADIOS file now and get variables and attributes */
adiosobj = adios2_init_serial();
group = adios2_declare_io(adiosobj, "matlabiogroup"); // name is arbitrary
fp = adios2_open(group, fname, adios2_mode_read);
fp = adios2_open(group, fname, adios2_mode_readRandomAccess);
if (fp == NULL)
{
mexErrMsgIdAndTxt("MATLAB:adiosopenc:open", "Opening the file failed\n");
Expand Down

0 comments on commit d8a70b3

Please sign in to comment.