[petsc-dev] speaking of being drunk while writing code

Barry Smith bsmith at mcs.anl.gov
Sat Nov 24 21:37:24 CST 2012


   It takes some serious beer goggles to mix up SNES and DM (same problem with KSP and TS)



  /* This is NOT reference counted. The SNES that originally created this context is cached here to implement copy-on-write.
   * Fields in the SNESDM should only be written if the SNES matches originalsnes.
   */
  DM originaldm;





More information about the petsc-dev mailing list