[petsc-dev] fortran literals

Jed Brown jed at jedbrown.org
Thu Sep 1 22:29:19 CDT 2016


"Munson, Todd" <tmunson at mcs.anl.gov> writes:
> Any idea how to do the same thing in C?

#define PetscRealLiteral(x) (x ## q)

PetscReal a = PetscRealLiteral(0.7);


Seems like we should do that for the precomputed methods in TS.
Actually, it would be better to do all the setup arithmetic in the most
accurate supported type.  Unfortunately, those methods are often
computed using tools that only support double precision or are taken
From papers that only report that many digits.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20160901/57994e15/attachment.sig>


More information about the petsc-dev mailing list