[petsc-users] Is there some function to do this vec operator

Gong Ding gdiso at ustc.edu
Tue Jun 8 03:04:00 CDT 2010


Dear all,
I have a flux vector f and a vector t for local time step.
Both of them are global vectors.

And I want to update the flow variable vector x in explicit way
x^(n+1) = x^(n) - t*f

here t*f is each t's component multiply f's component.

I searched the manual of petsc and find no useful information.
Can anyone tell me how should I do t*f efficiently?

Yours
Gong Ding


 


More information about the petsc-users mailing list