Math function "ln" in Petsc

(Rebecca) Xuefei YUAN xy2102 at
Thu Jan 1 07:16:41 CST 2009


I add the following into petscmath.h file, and it works now. Thanks very much!

#  define PetscLogScalar(a)     log(a)


Quoting Barry Smith <bsmith at>:

>   It is called PetscLogScalar()
>   Barry
> On Dec 31, 2008, at 9:14 PM, (Rebecca) Xuefei YUAN wrote:
>> I know that there is a PetscExpScalar, but it seems that there is   
>> no such a function like PetscLnScalar.
>> Thanks!

(Rebecca) Xuefei YUAN
Department of Applied Physics and Applied Mathematics
Columbia University

More information about the petsc-users mailing list