Hi,
A small update. This seems like a more appropriate solution:
if ( M.icorshear != 0 )
cor_shear();
/* Check whether the restart flag is set, then delete restart.dat
after a successful optimization */
if (M.restart == 1) {
if (remove("restart.dat") != 0)
perror("Error deleting restart.dat");
else
puts("restart.dat successfully deleted ...");
}
In this way the error will not come up if the restart flag hasn't been
set. The M.icorshear is not part of my addition, but only to show where
I have added the code.
Cheers,
Michael
On Wed, 2017-03-22 at 09:08 +0000, Mathilde Jauzac wrote:
> --