Menu

#17 bug in writeNWT

New
nobody
None
Medium
Defect
2015-07-15
2015-07-15
Anonymous
No

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

Discussion


Log in to post a comment.