Math function "ln" in Petsc

Barry Smith bsmith at mcs.anl.gov
Thu Jan 1 09:09:14 CST 2009


    I do not see this problem with petsc-3.0.0 or petsc-dev.

    Are you using something strange like complex numbers or singe  
precision
storage or quad floating point?

    Barry

On Jan 1, 2009, at 7:16 AM, (Rebecca) Xuefei YUAN wrote:

> Hey,Barry,
>
> I add the following into petscmath.h file, and it works now. Thanks  
> very much!
>
> #  define PetscLogScalar(a)     log(a)
>
> Rebecca
>
> Quoting Barry Smith <bsmith at mcs.anl.gov>:
>
>>
>>  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
> Tel:917-399-8032
> www.columbia.edu/~xy2102
>




More information about the petsc-users mailing list