ParallelNumberer.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 $ 00022 // $Date: 2005/11/29 21:55:32 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/numberer/ParallelNumberer.h,v $ 00024 00025 // Written: fmk 00026 // Revision: A 00027 // 00028 // Description: This file contains the class definition for ParallelNumberer. 00029 // ParallelNumberer is a subclass of DOF_Numberer. The ParallelNumberer numbers 00030 // the dof of a partitioned domain, where the partitions are on different processors 00031 // and each processor has a ParallelNumberer. The ParalellNumberer sitting on P0, 00032 // collects each partition graph from P1 through Pn-1, merges them into 1 large graph, 00033 // & then numbers this graph. The ParallelNumberers sitting on P1 through Pn-1 then 00034 // receive the mapping info for the dof tag and dof numbering from P0. 00035 // 00036 // What: "@(#) ParallelNumberer.h, revA" 00037 00038 #ifndef ParallelNumberer_h 00039 #define ParallelNumberer_h 00040 00041 class Graph; 00042 00043 #include <DOF_Numberer.h> 00044 00045 class ParallelNumberer: public DOF_Numberer 00046 { 00047 public: 00048 ParallelNumberer(int domainTag, int numSubdomains, Channel **theChannel); 00049 ParallelNumberer(GraphNumberer &theGraphNumberer); 00050 ParallelNumberer(); 00051 00052 ~ParallelNumberer(); 00053 00054 int numberDOF(int lastDOF = -1); 00055 int numberDOF(ID &lastDOFs); 00056 00057 virtual int sendSelf(int commitTag, Channel &theChannel); 00058 virtual int recvSelf(int commitTag, Channel &theChannel, 00059 FEM_ObjectBroker &theBroker); 00060 00061 virtual int setProcessID(int domainTag); 00062 virtual int setChannels(int numChannels, Channel **theChannels); 00063 00064 protected: 00065 int mergeSubGraph(Graph &theGraph, Graph &theSubGraph, ID &vertexTags, ID &vertexRefs, ID &theSubdomainMap); 00066 00067 private: 00068 GraphNumberer *theNumberer; 00069 00070 int processID; 00071 int numChannels; 00072 Channel **theChannels; 00073 }; 00074 00075 #endif 00076 |