MyRCM.hGo 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/MyRCM.h,v $ 00024 00025 00026 // File: ~/graph/numberer/MyRCM.h 00027 // 00028 // Written: fmk 00029 // Created: Sun Sept 15 11:47:47: 1996 00030 // Revision: A 00031 // 00032 // Description: This file contains the class definition for MyRCM. 00033 // MyRCM 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: "@(#) MyRCM.h, revA" 00041 00042 #ifndef MyRCM_h 00043 #define MyRCM_h 00044 00045 #include <GraphNumberer.h> 00046 00047 #ifndef _bool_h 00048 #include <bool.h> 00049 #endif 00050 00051 class MyRCM: public GraphNumberer 00052 { 00053 public: 00054 MyRCM(int startVertex = -1, bool minDegreeFlag = false); 00055 ~MyRCM(); 00056 00057 void setStartVertex(int startVertex); 00058 void setMinDegreeFlag(bool flag); 00059 00060 const ID &number(Graph &theGraph, int lastVertex = -1); 00061 const ID &number(Graph &theGraph, const ID &lastVertices); 00062 00063 virtual int sendSelf(int commitTag, Channel &theChannel); 00064 virtual int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker); 00065 00066 protected: 00067 00068 private: 00069 int numVertex; 00070 ID *theRefResult; 00071 int startVertexTag; 00072 bool minDegree; 00073 }; 00074 00075 #endif 00076 |