Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

SuperLU.h

Go to the documentation of this file.
00001 /* ****************************************************************** **
00002 **    OpenSees - Open System for Earthquake Engineering Simulation    **
00003 **          Pacific Earthquake Engineering Research Center            **
00004 **                                                                    **
00005 **                                                                    **
00006 ** (C) Copyright 1999, The Regents of the University of California    **
00007 ** All Rights Reserved.                                               **
00008 **                                                                    **
00009 ** Commercial use of this program without express permission of the   **
00010 ** University of California, Berkeley, is strictly prohibited.  See   **
00011 ** file 'COPYRIGHT'  in main directory for information on usage and   **
00012 ** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
00013 **                                                                    **
00014 ** Developed by:                                                      **
00015 **   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
00016 **   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
00017 **   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
00018 **                                                                    **
00019 ** ****************************************************************** */
00020                                                                         
00021 // $Revision: 1.1.1.1 $
00022 // $Date: 2000/09/15 08:23:30 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/SuperLU.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef SuperLU_h
00027 #define SuperLU_h
00028 
00029 // File: ~/system_of_eqn/linearSOE/sparseGEN/SuperLU.h
00030 //
00031 // Written: fmk 
00032 // Created: 11/96
00033 // Revision: A
00034 //
00035 // Description: This file contains the class definition for SuperLU.
00036 // A SuperLU object can be constructed to solve a SparseGenColLinSOE
00037 // object. It obtains the solution by making calls on the
00038 // the SuperLU library developed at UC Berkeley by Prof. James Demmel, 
00039 // Xiaoye S. Li and John R. Gilbert.
00040 // The SuperLU library contains a set of subroutines to solve a sparse
00041 // linear system  $AX=B$. It uses Gaussian elimination with partial
00042 // pivoting (GEPP). The columns of A may be preordered before
00043 // factorization; the preordering for sparsity is completely separate
00044 // from the factorization and a number of ordering schemes are provided. 
00045 //
00046 // What: "@(#) SuperLU.h, revA"
00047 
00048 #include <SparseGenColLinSolver.h>
00049 #include "SuperLU_supermatrix.h"
00050 
00146 class SuperLU : public SparseGenColLinSolver
00147 {
00148   public:
00150     SuperLU(int permSpec = 0, double thresh = 0.0, int panelSize = 6, 
00151 
00152      int relax = 6);     
00154     ~SuperLU();
00155 
00157     int solve(void);
00159     int setSize(void);
00160 
00162     int sendSelf(int commitTag, Channel &theChannel);
00164     int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);    
00165     
00166   protected:
00167 
00168   private:
00170     SuperMatrix A,L,U,B,AC;
00172     int *perm_r;
00174     int *perm_c;
00176     int *etree;
00178     int sizePerm;
00180     int relax, permSpec, panelSize;
00182     float thresh;
00184     char refact[1];
00185 };
00186 
00187 #endif
00188 
Copyright Contact Us