[cig-commits] r6098 - in long/3D/Gale/trunk/src/StgFEM: .
SLE/SystemSetup/src
walter at geodynamics.org
walter at geodynamics.org
Fri Feb 23 10:04:03 PST 2007
Author: walter
Date: 2007-02-23 10:04:02 -0800 (Fri, 23 Feb 2007)
New Revision: 6098
Modified:
long/3D/Gale/trunk/src/StgFEM/
long/3D/Gale/trunk/src/StgFEM/SLE/SystemSetup/src/StiffnessMatrix.c
Log:
r984 at earth (orig r726): LukeHodkinson | 2007-01-31 19:46:02 -0800
Just adding a note about reference counting the
stiffness matrix.
Property changes on: long/3D/Gale/trunk/src/StgFEM
___________________________________________________________________
Name: svk:merge
- 38867592-cf10-0410-9e16-a142ea72ac34:/cig:880
db209038-57f2-0310-97fa-b160e0ae9d04:/branches/decomp3d:725
db209038-57f2-0310-97fa-b160e0ae9d04:/trunk:669
+ 38867592-cf10-0410-9e16-a142ea72ac34:/cig:880
db209038-57f2-0310-97fa-b160e0ae9d04:/branches/decomp3d:726
db209038-57f2-0310-97fa-b160e0ae9d04:/trunk:669
Modified: long/3D/Gale/trunk/src/StgFEM/SLE/SystemSetup/src/StiffnessMatrix.c
===================================================================
--- long/3D/Gale/trunk/src/StgFEM/SLE/SystemSetup/src/StiffnessMatrix.c 2007-02-23 18:03:59 UTC (rev 6097)
+++ long/3D/Gale/trunk/src/StgFEM/SLE/SystemSetup/src/StiffnessMatrix.c 2007-02-23 18:04:02 UTC (rev 6098)
@@ -1479,6 +1479,9 @@
void StiffnessMatrix_CreateMatrix( StiffnessMatrix* self ) {
assert( self && Stg_CheckType( self, StiffnessMatrix ) );
+ /* Note: I'd like to make this a dereference, just in case there is another class still using
+ the old matrix, but that'd require two matrices to exist at one time; i.e. lots of memory.
+ Keeping it as a free just means that other classes need to assume they never own the matrix. */
FreeObject( self->matrix );
#ifdef HAVE_PETSC
More information about the cig-commits
mailing list