On Mar 1, 2013, at 6:39 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> 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().
Note that in these calls the first argument is a PetscScalar in the code.
Are these all real values stored in a PetscScalar so PetscRealPart() could be
called on them?
Barry
>
>
>
> /* 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);
> }
>
>
>