uwhpsc-2016 / homework4

Homework #4
0 stars 1 forks source link

Rapidly increasing solution values #13

Closed philw16 closed 8 years ago

philw16 commented 8 years ago

I don't know if anybody has run into this problem, but as successive iterations in the time domain are performed the value of my solution vector greatly increases. The final parallel solution has a norm on the order of 1e42.

I'm very unsure of what would be causing this, and if I remove any array copying at the end of the loop the norms of the loop end up within ~1 of each other. The only thing I could think of is that there is random data from the temp pointer location making it into the solution vector when I copy the arrays as I had that problem in HW2. Any help would be much appreciated.

quantheory commented 8 years ago

I think that this is specific to your code, since I see a bug there. You're adding 2*ukt[i] in the inner loop when you should be subtracting it instead.

philw16 commented 8 years ago

Yup that did it. Thank you

On Mon, May 30, 2016 at 8:46 PM, Sean Patrick Santos < notifications@github.com> wrote:

I think that this is specific to your code, since I see a bug there. You're adding 2*ukt[i] in the inner loop when you should be subtracting it instead.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/uwhpsc-2016/homework4/issues/13#issuecomment-222586434, or mute the thread https://github.com/notifications/unsubscribe/ARUDLhkJZGmjY1uNxniylvFwKFPuGV3Xks5qG68WgaJpZM4IqILJ .