Re: [petsc-dev] how to print with PescPrintf a PetscScalar value?
4 Jul
2012
4 Jul
'12
2:23 a.m.
On Tue, Jul 3, 2012 at 11:21 PM, Luigia Ambrosio <[email protected]>wrote:
Hi all, I need to print with PetscPrintf the value of a variabile of type PetscScalar. Does anybody know how to do it?
It's not possible to do directly with a printf-type function because std::complex is a non-POD type, thus it cannot be passed to a variadic function. You can print the real and imaginary parts separately.
thanks
Luigia Ambrosio
Se la gente ferisce è perchè tu sei migliore e lo capisce bene! - Tiziano Ferro
5151
Age (days ago)
5151
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jed Brown