[petsc-dev] wrong PETSc code, please read the PETSc style guide

Barry Smith bsmith at mcs.anl.gov
Mon Sep 17 20:17:19 CDT 2012



   }
    else {



Also wrong

     if (i == 0) 
            label = "primal";
          else
            label = "dual";

either put them on the same line or use {}  Note in another place in the same file you use {} around each, way to be consistent


Also never if (i == 0)   use if (!i)





More information about the petsc-dev mailing list