Hi, I always has PetscExpScalar(x) returning 1 no matter what value x is. Is there anything wrong? Thanks, -- (Rebecca) Xuefei YUAN Department of Applied Physics and Applied Mathematics Columbia University Tel:917-399-8032 www.columbia.edu/~xy2102