[petsc-dev] stensils, ex2f.F, openmp

Svetlana Tkachenko svetlana.tkachenko at fastmail.fm
Thu Nov 7 17:39:02 CST 2013


ex2f.F involves a band matrix with 4 on main diagonal and -1s on the sub-diagonals. I have A_central matrix which stores the -4s, and A_left, A_right, Atop, A_bottom matrices which store the -1s (they actually are more complicated numbers than that). Would it be recommended to simply wrap the "do 10, II=..." block like the one in ex2f.F into $OMP DO to speed up filling of the matrix as each of the values set can be set independently of others? (I tried doing so but got a segmentation fault and I'm working on a small example to reproduce the problem.)

  Svetlana



More information about the petsc-dev mailing list