Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef SUNDANCE_SUBMAXIMAL_NODAL_DOF_MAP_H
00043 #define SUNDANCE_SUBMAXIMAL_NODAL_DOF_MAP_H
00044
00045 #include "SundanceDefs.hpp"
00046 #include "SundanceDOFMapBase.hpp"
00047 #include "SundanceCellSet.hpp"
00048 #include "SundanceCellFilter.hpp"
00049 #include "SundanceBasisFamily.hpp"
00050 #include "SundanceObjectWithVerbosity.hpp"
00051
00052
00053 namespace Sundance
00054 {
00055 using namespace Teuchos;
00056
00057
00058
00059
00060 class SubmaximalNodalDOFMap : public DOFMapBase
00061 {
00062 public:
00063
00064 SubmaximalNodalDOFMap(const Mesh& mesh,
00065 const CellFilter& cf,
00066 int nFuncs,
00067 int setupVerb);
00068
00069
00070 virtual ~SubmaximalNodalDOFMap(){;}
00071
00072
00073 RCP<const MapStructure>
00074 getDOFsForCellBatch(int cellDim,
00075 const Array<int>& cellLID,
00076 const Set<int>& requestedFuncSet,
00077 Array<Array<int> >& dofs,
00078 Array<int>& nNodes,
00079 int verb) const ;
00080
00081
00082 RCP<const Set<int> >
00083 allowedFuncsOnCellBatch(int cellDim,
00084 const Array<int>& cellLID) const ;
00085
00086
00087 const Array<CellFilter>& funcDomains() const {return domains_;}
00088
00089
00090 virtual void print(std::ostream& os) const ;
00091
00092
00093
00094
00095
00096 virtual int cellDim() const {return 0;}
00097
00098
00099
00100 protected:
00101
00102
00103 Array<int> dofsOnCell(int cellDim, int cellLID, const Set<int>& reqFuncs) const ;
00104
00105
00106 void computeOffsets(int localCount) ;
00107
00108 void shareRemoteDOFs(const Array<Array<int> >& remoteNodes);
00109
00110 int dim_;
00111 BasisFamily basis_;
00112 int nTotalFuncs_;
00113 CellFilter domain_;
00114 Array<CellFilter> domains_;
00115
00116 Array<int> nodeLIDs_;
00117 Array<int> nodeDOFs_;
00118 Map<int, int> lidToPtrMap_;
00119
00120 RCP<const MapStructure> mapStructure_;
00121 };
00122 }
00123
00124
00125 #endif