Originally created by: tboo...@gmail.com
The format %.g might delete, sometimes, important decimal places when printing the input files for the solver NWT. For example with parameter DBDTHETA.
If DBDTHETA is 0.97 it gives 1.
>> fprintf(' %.g\n',0.97)
1
Instead:
>> fprintf(' %g\n',0.97)
0.97
There might be a better format, but I don't really know much about formatting.
Cheers,
Thomas