Changeset 13869
- Timestamp:
 - 11/02/12 14:42:38 (13 years ago)
 - Location:
 - issm/trunk-jpl/src/c
 - Files:
 - 
      
- 3 edited
 
- 
          
  classes/matrix/Matrix.h (modified) (1 diff)
 - 
          
  toolkits/petsc/objects/PetscMat.cpp (modified) (2 diffs)
 - 
          
  toolkits/petsc/objects/PetscMat.h (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
issm/trunk-jpl/src/c/classes/matrix/Matrix.h
r13801 r13869 189 189 } 190 190 /*}}}*/ 191 /*FUNCTION AllocationInfo{{{*/ 192 void AllocationInfo(void){ 193 _assert_(this); 194 if(type==PetscMatType){ 195 #ifdef _HAVE_PETSC_ 196 this->pmatrix->AllocationInfo(); 197 #endif 198 } 199 else if(type==SeqMatType){ 200 //this->smatrix->AllocationInfo(); 201 } 202 else _error_("Matrix type: " << type << " not supported yet!"); 203 }/*}}}*/ 191 204 /*FUNCTION Assemble{{{*/ 192 205 void Assemble(void){  - 
      
issm/trunk-jpl/src/c/toolkits/petsc/objects/PetscMat.cpp
r13868 r13869 40 40 } 41 41 /*}}}*/ 42 /*FUNCTION PetscMat (IssmDouble* serial_mat,int M,int N,IssmDouble sparsity){{{*/42 /*FUNCTION PetscMat::PetscMat(IssmDouble* serial_mat,int M,int N,IssmDouble sparsity){{{*/ 43 43 PetscMat::PetscMat(IssmDouble* serial_mat,int M,int N,IssmDouble sparsity){ 44 44 … … 77 77 78 78 /*PetscMat specific routines: */ 79 /*FUNCTION PetscMat::AllocationInfo{{{*/ 80 void PetscMat::AllocationInfo(void){ 81 82 MatInfo info; 83 MatGetInfo(this->matrix,MAT_GLOBAL_SUM,&info); 84 _pprintLine_("=========================== Stiffness matrix allocation info ==========================="); 85 _pprintLine_(""); 86 _pprintLine_(" nz_allocated: "<<info.nz_allocated); 87 _pprintLine_(" nz_used : "<<info.nz_used); 88 _pprintLine_(" nz_unneeded : "<<info.nz_unneeded<<" ("<<double(info.nz_unneeded)/double(info.nz_allocated)*100.<<"%)"); 89 _pprintLine_(""); 90 _pprintLine_("========================================================================================"); 91 } 92 /*}}}*/ 79 93 /*FUNCTION PetscMat::Echo{{{*/ 80 94 void PetscMat::Echo(void){  - 
      
issm/trunk-jpl/src/c/toolkits/petsc/objects/PetscMat.h
r13623 r13869 40 40 /*}}}*/ 41 41 /*PetscMat specific routines {{{*/ 42 void AllocationInfo(void); 42 43 void Echo(void); 43 44 void Assemble(void);  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)