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


 

Reply via email to