[cig-commits] r6469 - short/3D/PyLith/trunk/libsrc/feassemble

knepley at geodynamics.org knepley at geodynamics.org
Thu Mar 29 16:59:29 PDT 2007


Author: knepley
Date: 2007-03-29 16:59:29 -0700 (Thu, 29 Mar 2007)
New Revision: 6469

Modified:
   short/3D/PyLith/trunk/libsrc/feassemble/ExplicitElasticity.cc
Log:
Updating PETSc Mat


Modified: short/3D/PyLith/trunk/libsrc/feassemble/ExplicitElasticity.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/feassemble/ExplicitElasticity.cc	2007-03-29 23:53:31 UTC (rev 6468)
+++ short/3D/PyLith/trunk/libsrc/feassemble/ExplicitElasticity.cc	2007-03-29 23:59:29 UTC (rev 6469)
@@ -364,7 +364,10 @@
       throw std::runtime_error("Logging PETSc flops failed.");
     
     // Assemble cell contribution into field
-    //mat->updateAdd(patch, *cellIter, _cellVector);
+    PetscErrorCode err = 
+      assembleMatrix(*mat, *cellIter, _cellMatrix, ADD_VALUES);
+    if (err)
+      throw std::runtime_error("Update to PETSc Mat failed.");
   } // for
 } // integrateJacobian
 



More information about the cig-commits mailing list