[petsc-users] ODE Solver on multiple cores

Hong Zhang hongzhang at anl.gov
Wed Jan 13 14:02:45 CST 2016


If x is just a scalar, it would not be a surprise that the code does not run in parallel. If x is a vector, you need a DM object to handle the decomposition. 

Hong

On Jan 13, 2016, at 1:13 PM, Hasan, Fahad <mhasan8 at vols.utk.edu> wrote:

> Hello,
>  
> I have written a code to solve a simple differential equation (x’’+x’+6x=0 with initial values, x(0)=2, x’(0)=3). It works well on a single core and produces result close to theoretical answer but whenever I am trying to run the same code on multiple cores, I am getting incorrect results. It seems to me that, for multiple cores it stops after taking only 2 steps regardless of the final time and gives the final result (which is inaccurate). I tried different TSType (TSEULER, TSBEULER, TSSUNDIALS, TSCN etc.) but I always ended up with the same issue.
>  
> Can you tell me what possibly may cause this problem? Thanks in advance.
>  
> Regards,
> Fahad

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160113/783763b1/attachment.html>


More information about the petsc-users mailing list