SALSA Analysis Modules
|
00001 #include <stdlib.h> 00002 #include "anamod.h" 00003 #include "anamatrix.h" 00004 #include "petscmat.h" 00005 00006 /*! \page anamatrix Matrix interface to AnaMod 00007 00008 AnaMod uses an abstract AnaModNumericalProblem in the definition of 00009 ComputeQuantity() and such. For modules where the numerical problem 00010 is solely a Petsc matrix, MatrixComputeQuantity() is the interface. 00011 */ 00012 #undef __FUNCT__ 00013 #define __FUNCT__ "MatrixComputeQuantity" 00014 PetscErrorCode MatrixComputeQuantity 00015 (Mat A,const char *cat,const char *cmp, 00016 AnalysisItem *res,int *l,PetscTruth *success) 00017 { 00018 PetscErrorCode ierr; 00019 PetscFunctionBegin; 00020 ierr = ComputeQuantity 00021 ((AnaModNumericalProblem)A,cat,cmp,res,l,success); CHKERRQ(ierr); 00022 PetscFunctionReturn(0); 00023 }