[petsc-dev] should this be moved now?

Jed Brown jedbrown at mcs.anl.gov
Fri Mar 1 06:39:10 CST 2013


On Thu, Feb 28, 2013 at 3:17 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>    With the introduction of PetscPowRealInt() should this be moved to
> petscmath.h and renamed ?
>

We can just replace calls to this function with calls to PetscPowRealInt().


>
>
> /* C++ does not promote int64_t to scalar or int32_t for std::pow() */
> static PetscScalar Pow(PetscScalar b,PetscInt p)
> {
>   return PetscPowScalar(b,(int)p);
> }
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130301/426d162a/attachment.html>


More information about the petsc-dev mailing list