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

RCM.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:21 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/graph/numberer/RCM.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/graph/numberer/RCM.h
00027 // 
00028 // Written: fmk 
00029 // Created: 11/96
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for RCM.
00033 // RCM is an object to perform the Reverse Cuthill-McKee numbering
00034 // scheme on the vertices of a graph. This is done by invoking the
00035 // number() method with the Graph to be numbered.
00036 //
00037 // Side effects: numberer() changes the Tmp values of the vertices to
00038 // the number assigned to that vertex.
00039 //
00040 // What: "@(#) RCM.h, revA"
00041 
00042 #ifndef RCM_h
00043 #define RCM_h
00044 
00045 #include <GraphNumberer.h>
00046 
00047 #ifndef _bool_h
00048 #include <bool.h>
00049 #endif
00050 
00058 class RCM: public GraphNumberer
00059 {
00060   public:
00067     RCM(bool GPS = true); 
00068 
00073     ~RCM();
00074 
00075 
00102     const ID &number(Graph &theGraph, int lastVertex = -1);
00103 
00113     const ID &number(Graph &theGraph, const ID &lastVertices);
00114 
00115 
00119     int sendSelf(int commitTag, Channel &theChannel);
00120 
00126     int recvSelf(int commitTag, Channel &theChannel, 
00127 
00128    FEM_ObjectBroker &theBroker);
00129     
00130   protected:
00131     
00132   private:
00133     
00135     int numVertex;
00136 
00138     ID *theRefResult;
00140     bool GPS; // flag for gibbs-poole-stodlymer
00141 };
00142 
00143 #endif
00144 
Copyright Contact Us