[petsc-users] combine single and double precision

albert gutiérrez albert.gutierrez at bsc.es
Tue Feb 9 08:20:44 CST 2016


Hello everyone,

At times it can be useful to combine different data types in the same
problem. For example, there are parts of an algorithm which may be memory
bounded (requiring float) and operations where more precision is needed
(requiring double or float_128).

Can single and double precision be combined in PETSc?

I know the data type is set in the configuration process using the
parameter "--with-precision=TYPE". It looks like having single and double
precision at the same time will require the modification of the source code
of the library. Is there an easy way to implement this feature?

Regards.


WARNING / LEGAL TEXT: This message is intended only for the use of the
individual or entity to which it is addressed and may contain
information which is privileged, confidential, proprietary, or exempt
from disclosure under applicable law. If you are not the intended
recipient or the person responsible for delivering the message to the
intended recipient, you are strictly prohibited from disclosing,
distributing, copying, or in any way using this message. If you have
received this communication in error, please notify the sender and
destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160209/18dbc963/attachment.html>


More information about the petsc-users mailing list