XC Open source finite element analysis program
DistributedBandLinSOE.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 //DistributedBandLinSOE.h
28 
29 #ifndef DistributedBandLinSOE_h
30 #define DistributedBandLinSOE_h
31 
32 
33 #include "solution/system_of_eqn/linearSOE/DistributedLinSOE.h"
34 #include "utility/matrix/Vector.h"
35 
36 namespace XC {
37 
38 class Graph;
39 class CommParameters;
40 class LinearSOEData;
41 class BandGenLinSOE;
42 class FactoredSOEBase;
43 class ID;
44 class Vector;
45 
47 //
50  {
51  protected:
52  mutable std::vector<double> workArea;
53  std::vector<double> myB;
54  Vector myVectB;
55 
56  void setupMyB(const std::size_t &,const std::size_t &);
57  int addB(const int &size,const Vector &, const ID &,const double &);
58  int setB(const int &size,const Vector &, const double &);
59  void zeroB(void);
60  int sendBArecvBX(LinearSOEData &,const bool &,double *,const int &,ID &);
61  int recvBAsendBX(FactoredSOEBase &) const;
62  int sendResultsBack(FactoredSOEBase &,ID &);
63  int recvXA(FactoredSOEBase &,const bool &,double *A,const int &,ID &);
64 
66  };
67 } // end of XC namespace
68 
69 
70 #endif
71 
Base class for distributed systems of equations.
Definition: DistributedLinSOE.h:46
Definition: Vector.h:82
Definition: ID.h:77
Data (size, arrays,...) for linear system of equations.
Definition: LinearSOEData.h:41
Base class for band matrix distributed systems of equations.
Definition: DistributedBandLinSOE.h:49
================================================================================
Definition: ContinuaReprComponent.h:34
Base class for factored systems of equations.
Definition: FactoredSOEBase.h:40