Commit d8617e5c authored by Sébastien Timmermans's avatar Sébastien Timmermans
Browse files

[ErrMsg][Dirdyn] buffer err no

parent a18b0cf1
......@@ -262,7 +262,7 @@ int mbs_growing_buffer_save(MbsGrowingBuffer* b, double t)
if (fid == NULL)
{
mbs_msg("\t >BUFFER SAVE> Error: in mbs_growing_buffer_save: cannot open file '%s'\n", b->names[i]);
return -9;
return _MBS_ERR_LOW_FILES;
}
else
{
......@@ -285,7 +285,7 @@ int mbs_growing_buffer_save(MbsGrowingBuffer* b, double t)
{
mbs_msg("\t >BUFFER SAVE> %d, %d\n", b->nx, get_output_nb());
mbs_msg("\t >BUFFER SAVE> Error in mbs_growing_buffer_save : number of user inputs not the same as in the auto-output structure! \n");
return -9;
return _MBS_ERR_LOW_FILES;
}
}
......@@ -307,7 +307,13 @@ int mbs_growing_buffer_save(MbsGrowingBuffer* b, double t)
if (b->index >= b->size)
{
// write the buffer to file
mbs_growing_buffer_write(b);
err = mbs_growing_buffer_write(b);
if (err <0)
{
mbs_msg("\t >BUFFER SAVE> Error in mbs_growing_buffer_save during writing! \n");
return err;
}
// reset the buffer index to start of the buffer (next save will overide old values)
b->index = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment