setting output precision when using mdump

Help
2012-07-24
2013-06-12
  • Mansour. RD.

    Mansour. RD. - 2012-07-24

    Hi,

    I'm using MDUMP and MRDUMP to extract matrix information when analysing circuits. When I save the output into a file, the numbers are stored in a quite low precision (like 4 decimal places).

    How can I set the precision to a higher level e.g. 10 digits, so that the matrix elements are stored with the desirable precision in output file?

    Regards,
    Mansour

     
  • Holger Vogt

    Holger Vogt - 2012-07-24

    Mansour,

    the format is fixed and cannot be changed by a parameter selection.

    If you compile it yourself, please have a look at functions spFileVector(), line 600 and spFileMatrix(), line 441 in file src/maths/sparse/spoutput.c, where you may change the format specifications of the printout.

    Holger

     
  • Holger Vogt

    Holger Vogt - 2012-07-24

    Mansour,

    for printing the matrix it is in fact function spPrint(..) in spoutput.c, lines 138 ff.

    Holger

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks