On Thu, Feb 28, 2013 at 3:17 PM, Barry Smith <bsmith@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);
}