[petsc-dev] should this be moved now?

Barry Smith bsmith at mcs.anl.gov
Fri Mar 1 10:25:00 CST 2013


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);
> }
> 
> 
> 




More information about the petsc-dev mailing list