RCM.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.2 $ 00022 // $Date: 2006/05/26 18:26:39 $ 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 00051 class RCM: public GraphNumberer 00052 { 00053 public: 00054 RCM(bool GPS = false); 00055 ~RCM(); 00056 00057 const ID &number(Graph &theGraph, int lastVertex = -1); 00058 const ID &number(Graph &theGraph, const ID &lastVertices); 00059 00060 int sendSelf(int commitTag, Channel &theChannel); 00061 int recvSelf(int commitTag, Channel &theChannel, 00062 FEM_ObjectBroker &theBroker); 00063 00064 protected: 00065 00066 private: 00067 00068 int numVertex; 00069 ID *theRefResult; 00070 bool GPS; // flag for gibbs-poole-stodlymer 00071 }; 00072 00073 #endif 00074 |