[petsc-users] How to VecView with a formatted precision (%10.8f) ?

Franck Houssen franck.houssen at inria.fr
Tue May 30 02:14:58 CDT 2017


Mainly for debugging purposes: controlling format/precision could be convenient ! 

Franck

~> mpirun -n 5 ./vecViewPrecision.exe 
Vec Object: 5 MPI processes
  type: mpi
Process [0]
0.
0.
Process [1]
1.23457e+06
-8.1e-07
Process [2]
2.46914e-06
-1.62e+06
Process [3]
3.7037e+06
-2.43e-06
Process [4]
4.93827e-06
-3.24e+06


----- Mail original -----
> De: "Jed Brown" <jed at jedbrown.org>
> À: "Franck Houssen" <franck.houssen at inria.fr>, "PETSc users list" <petsc-users at mcs.anl.gov>
> Envoyé: Vendredi 26 Mai 2017 19:27:42
> Objet: Re: [petsc-users] How to VecView with a formatted precision (%10.8f) ?
> 
> No, but this could be added to the ASCII viewer.  Why do you want it?
> 
> Franck Houssen <franck.houssen at inria.fr> writes:
> 
> > How to VecView with a formatted precision (%10.8f) ? Not possible ?
> >
> > Franck
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vecViewPrecision.cpp
Type: text/x-c++src
Size: 772 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170530/f183f896/attachment.cpp>


More information about the petsc-users mailing list