XC Open source finite element analysis program
ParallelNumberer.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 /* ****************************************************************** **
28 ** OpenSees - Open System for Earthquake Engineering Simulation **
29 ** Pacific Earthquake Engineering Research Center **
30 ** **
31 ** **
32 ** (C) Copyright 1999, The Regents of the University of California **
33 ** All Rights Reserved. **
34 ** **
35 ** Commercial use of this program without express permission of the **
36 ** University of California, Berkeley, is strictly prohibited. See **
37 ** file 'COPYRIGHT' in main directory for information on usage and **
38 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
39 ** **
40 ** Developed by: **
41 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
42 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
43 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
44 ** **
45 ** ****************************************************************** */
46 
47 // $Revision: 1.1 $
48 // $Date: 2005/11/29 21:55:32 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/numberer/ParallelNumberer.h,v $
50 
51 // Written: fmk
52 // Revision: A
53 //
54 // Description: This file contains the class definition for ParallelNumberer.
55 // ParallelNumberer is a subclass of DOF_Numberer. The ParallelNumberer numbers
56 // the dof of a partitioned domain, where the partitions are on different processors
57 // and each processor has a ParallelNumberer. The ParalellNumberer sitting on P0,
58 // collects each partition graph from P1 through Pn-1, merges them into 1 large graph,
59 // & then numbers this graph. The ParallelNumberers sitting on P1 through Pn-1 then
60 // receive the mapping info for the dof tag and dof numbering from P0.
61 //
62 // What: "@(#) ParallelNumberer.h, revA"
63 
64 #ifndef ParallelNumberer_h
65 #define ParallelNumberer_h
66 
67 #include "utility/actor/actor/DistributedObj.h"
68 #include "solution/analysis/numberer/DOF_Numberer.h"
69 
70 namespace XC {
71 class Graph;
72 
74 //
84  {
85  private:
86  GraphNumberer *theNumberer;
87  protected:
88  int mergeSubGraph(Graph &theGraph, Graph &theSubGraph, ID &vertexTags, ID &vertexRefs, ID &theSubdomainMap);
89 
90  friend class ModelWrapper;
91  friend class FEM_ObjectBroker;
93  ParallelNumberer(ModelWrapper *,int domainTag, int numSubdomains,const ChannelQueue &);
94  virtual DOF_Numberer *getCopy(void) const;
95  public:
96  ~ParallelNumberer(void);
97 
98  int numberDOF(int lastDOF = -1);
99  int numberDOF(ID &lastDOFs);
100 
101  virtual int sendSelf(CommParameters &);
102  virtual int recvSelf(const CommParameters &);
103 
104  };
105 } // end of XC namespace
106 
107 #endif
108 
Base class for DOF numbererers.
Definition: DOF_Numberer.h:84
FEM_ObjectBroker is is an object broker class for the finite element method. All methods are virtual ...
Definition: FEM_ObjectBroker.h:138
virtual int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: ParallelNumberer.cpp:373
virtual DOF_Numberer * getCopy(void) const
Virtual constructor.
Definition: ParallelNumberer.cpp:87
Definition: ID.h:77
Numberer for problem&#39;s degrees of freedom.
Definition: GraphNumberer.h:78
Object distributed on many processes.
Definition: DistributedObj.h:44
Wrapper for the finite element model "seen" from the solver. The model wrapper is definied by: ...
Definition: ModelWrapper.h:55
The Graph class provides the abstraction of a graph, a collection of vertices and edges...
Definition: Graph.h:84
The ParallelNumberer numbers the dof of a partitioned domain, where the partitions are on different p...
Definition: ParallelNumberer.h:83
Data about the postion, size,... of the object to transmit.
Definition: ChannelQueue.h:41
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
virtual int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: ParallelNumberer.cpp:412