Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
d7e5f43e
Commit
d7e5f43e
authored
11 years ago
by
Nicolas Marsic
Browse files
Options
Downloads
Patches
Plain Diff
Doc and cleaning of FunctionSpace
parent
e4b7bba8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
FunctionSpace/FunctionSpace.cpp
+0
-6
0 additions, 6 deletions
FunctionSpace/FunctionSpace.cpp
FunctionSpace/FunctionSpace.h
+56
-52
56 additions, 52 deletions
FunctionSpace/FunctionSpace.h
with
56 additions
and
58 deletions
FunctionSpace/FunctionSpace.cpp
+
0
−
6
View file @
d7e5f43e
...
...
@@ -86,9 +86,6 @@ void FunctionSpace::buildDof(void){
const
size_t
nElement
=
goe
->
getNumber
();
const
vector
<
const
MElement
*>&
element
=
goe
->
getAll
();
// Init Struct //
group
.
resize
(
nElement
);
// Create Dofs //
for
(
size_t
i
=
0
;
i
<
nElement
;
i
++
){
// Get Dof for this Element
...
...
@@ -98,9 +95,6 @@ void FunctionSpace::buildDof(void){
// Add Dofs
for
(
size_t
j
=
0
;
j
<
nDof
;
j
++
)
dof
.
insert
(
myDof
[
j
]);
// Save vector
group
[
i
]
=
myDof
;
}
}
...
...
This diff is collapsed.
Click to expand it.
FunctionSpace/FunctionSpace.h
+
56
−
52
View file @
d7e5f43e
...
...
@@ -62,30 +62,27 @@ class FunctionSpace{
public:
virtual
~
FunctionSpace
(
void
);
const
Basis
&
getBasis
(
const
MElement
&
element
)
const
;
const
Basis
&
getBasis
(
size_t
i
)
const
;
const
GroupOfElement
&
getSupport
(
void
)
const
;
bool
isScalar
(
void
)
const
;
size_t
getForm
(
void
)
const
;
size_t
getOrder
(
void
)
const
;
std
::
vector
<
Dof
>
getUnorderedKeys
(
const
MElement
&
element
)
const
;
std
::
vector
<
Dof
>
getKeys
(
const
MElement
&
element
)
const
;
void
getKeys
(
const
GroupOfElement
&
goe
,
std
::
set
<
Dof
>&
dof
)
const
;
void
getKeys
(
const
GroupOfElement
&
goe
,
std
::
vector
<
std
::
vector
<
Dof
>
>&
dof
)
const
;
const
Basis
&
getBasis
(
const
MElement
&
element
)
const
;
const
Basis
&
getBasis
(
size_t
eType
)
const
;
const
GroupOfElement
&
getSupport
(
void
)
const
;
const
std
::
set
<
Dof
>&
getAllDofs
(
void
)
const
;
const
std
::
set
<
Dof
>&
getAllDofs
(
void
)
const
;
const
std
::
vector
<
std
::
vector
<
Dof
>
>&
getAllGroups
(
void
)
const
;
std
::
vector
<
Dof
>
getKeys
(
const
MElement
&
element
)
const
;
void
getKeys
(
const
GroupOfElement
&
goe
,
std
::
set
<
Dof
>&
dof
)
const
;
void
getKeys
(
const
GroupOfElement
&
goe
,
std
::
vector
<
std
::
vector
<
Dof
>
>&
dof
)
const
;
protected:
FunctionSpace
(
void
);
void
build
(
const
GroupOfElement
&
goe
,
std
::
string
family
);
void
buildDof
(
void
);
std
::
vector
<
Dof
>
getUnorderedKeys
(
const
MElement
&
element
)
const
;
};
...
...
@@ -100,45 +97,57 @@ class FunctionSpace{
Deletes this FunctionSpace
**
@fn FunctionSpace::getSupport
@return Returns the support of this
FunctionSpace
**
@fn FunctionSpace::isScalar
@return Returns:
@li true, if this FunstionSpace is scalar
@li flase, otherwise
**
@fn vector<Dof> FunctionSpace::getKeys(const MElement& element) const
@param element A MElement
@return Returns all the Dof%s associated to the given MElement
@fn FunctionSpace::getForm
@return Returns this FunctionSpace differential form (0, 1, 2 or 3)
**
@fn FunctionSpace::getOrder
@return Returns this FunctionSpace order
**
@fn
vector<Dof>
FunctionSpace::get
Key
s(const M
Vertex& vertex
) const
@param
vertex A MVertex
@return Returns
all the Dof%
s associated to the given
MVertex
@fn FunctionSpace::get
Basi
s(const M
Element& element
) const
@param
element A MElement
@return Returns
the Basi
s associated to the given
element
**
@fn
vector<Dof>
FunctionSpace::get
Keys(const MEdge& edg
e) const
@param e
dg
e A
MEdge
@return Returns
all the Dof%
s associated to the given
MEdge
@fn FunctionSpace::get
Basis(size_t eTyp
e) const
@param e
Typ
e A
geomtrical element type tag
@return Returns
the Basi
s associated to the given
geomtrical element type tag
**
@fn vector<Dof> FunctionSpace::getKeys(const MFace& face) const
@param face A MFace
@return Returns all the Dof%s associated to the given MFace
@fn FunctionSpace::getSupport
@return Returns the support of this FunctionSpace
**
@fn FunctionSpace::getAllDofs
@return Returns all the Dof%s associated to every Element%s
of this FunctionSpace support
@return Returns the set of all the Dof%s associated to this FunctionSpace
**
@fn std::vector<Dof> FunctionSpace::getKeys(const MElement&) const
@param element A MElement
@return Returns all the Dof%s associated to the given MElement
**
@fn void FunctionSpace::getKeys(const GroupOfElement&, std::set<Dof>&) const
@param goe A GroupOfElement
@param dof A set of Dof%s
Populates the given set with the Dof%s associated to the MElement%s
of the given GroupOfElement
**
@fn FunctionSpace::getAllGroups
@return Returns all the Dof%s associated to every Element%s
of this FunctionSpace support
@fn void FunctionSpace::getKeys(const GroupOfElement&, std::vector<std::vector<Dof> >&) const
@param goe A GroupOfElement
@param dof A vector of vector of Dof%s
Populates the given vector such that:
dof[i][j] is the jth Dof of the ith element of the given GroupOfElement
*/
...
...
@@ -146,18 +155,6 @@ class FunctionSpace{
// Inline Functions //
//////////////////////
inline
const
Basis
&
FunctionSpace
::
getBasis
(
const
MElement
&
element
)
const
{
return
*
basis
[
element
.
getType
()];
}
inline
const
Basis
&
FunctionSpace
::
getBasis
(
size_t
i
)
const
{
return
*
basis
[
i
];
}
inline
const
GroupOfElement
&
FunctionSpace
::
getSupport
(
void
)
const
{
return
*
goe
;
}
inline
bool
FunctionSpace
::
isScalar
(
void
)
const
{
return
scalar
;
}
...
...
@@ -170,13 +167,20 @@ inline size_t FunctionSpace::getOrder(void) const{
return
order
;
}
inline
const
std
::
set
<
Dof
>
&
FunctionSpace
::
get
AllDofs
(
void
)
const
{
return
dof
;
inline
const
Basis
&
FunctionSpace
::
get
Basis
(
const
MElement
&
element
)
const
{
return
*
basis
[
element
.
getType
()]
;
}
inline
const
std
::
vector
<
std
::
vector
<
Dof
>
>&
FunctionSpace
::
getAllGroups
(
void
)
const
{
return
group
;
inline
const
Basis
&
FunctionSpace
::
getBasis
(
size_t
eType
)
const
{
return
*
basis
[
eType
];
}
inline
const
GroupOfElement
&
FunctionSpace
::
getSupport
(
void
)
const
{
return
*
goe
;
}
inline
const
std
::
set
<
Dof
>&
FunctionSpace
::
getAllDofs
(
void
)
const
{
return
dof
;
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment