EigenAlgorithm.cpp

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:16 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/algorithm/eigenAlgo/EigenAlgorithm.cpp,v $
00024                                                                         
00025                                                                         
00026 // File: ~/analysis/algorithm/eigenAlgo/EigenAlgorithm.C
00027 //
00028 // Written: Jun Peng
00029 // Created: Wed Jan 27, 1999
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition of EigenAlgorithm.
00033 // EigenAlgorithm is a class which performs a eigen solution algorithm
00034 // to solve the equations. 
00035 //
00036 // This class is inheritanted from the base class of SolutionAlgorithm
00037 // which was created by fmk (Frank).
00038 
00039 
00040 #include <EigenAlgorithm.h>
00041 #include <AnalysisModel.h>
00042 #include <EigenIntegrator.h>
00043 #include <EigenSOE.h>
00044 
00045 EigenAlgorithm::EigenAlgorithm(int classTag)
00046   :SolutionAlgorithm(classTag),
00047    theModel(0), theIntegrator(0), theSOE(0)
00048 {
00049     // need do nothing here.
00050 }
00051 
00052 
00053 EigenAlgorithm::~EigenAlgorithm()
00054 {
00055     // do nothing here.
00056 }
00057 
00058 void 
00059 EigenAlgorithm::setLinks(AnalysisModel &theNewModel,
00060                          EigenIntegrator &theNewIntegrator,
00061                          EigenSOE &theNewSOE)
00062 {
00063     theModel = &theNewModel;
00064     theIntegrator = &theNewIntegrator;
00065     theSOE = &theNewSOE;
00066 }
00067 
00068 AnalysisModel *
00069 EigenAlgorithm::getAnalysisModelPtr() const
00070 {
00071     return theModel;
00072 }
00073 
00074 EigenIntegrator *
00075 EigenAlgorithm::getEigenIntegratorPtr() const
00076 {
00077     return theIntegrator;
00078 }
00079 
00080 EigenSOE *
00081 EigenAlgorithm::getEigenSOEptr() const
00082 {
00083     return theSOE;
00084 }
00085 

Generated on Mon Oct 23 15:04:56 2006 for OpenSees by doxygen 1.5.0