Commits

Jed Brown committed e4b4b23

Copy DM matrix type in DMRefine and DMCoarsen

Hg-commit: bc1f547d8c686cd8beed5189ee6a7178fbec2401

  • Participants
  • Parent commits 6f86af2

Comments (0)

Files changed (1)

File src/dm/interface/dm.c

     (*dmf)->ctx       = dm->ctx;
     (*dmf)->leveldown = dm->leveldown;
     (*dmf)->levelup   = dm->levelup + 1;
+    ierr = DMSetMatType(*dmf,dm->mattype);CHKERRQ(ierr);
     for (link=dm->refinehook; link; link=link->next) {
       if (link->refinehook) {ierr = (*link->refinehook)(dm,*dmf,link->ctx);CHKERRQ(ierr);}
     }
   (*dmc)->ctx       = dm->ctx;
   (*dmc)->levelup   = dm->levelup;
   (*dmc)->leveldown = dm->leveldown + 1;
+  ierr = DMSetMatType(*dmc,dm->mattype);CHKERRQ(ierr);
   for (link=dm->coarsenhook; link; link=link->next) {
     if (link->coarsenhook) {ierr = (*link->coarsenhook)(dm,*dmc,link->ctx);CHKERRQ(ierr);}
   }