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
ef16c6d7
Commit
ef16c6d7
authored
13 years ago
by
Gauthier Becker
Browse files
Options
Downloads
Patches
Plain Diff
external work in case of fracture
parent
2b4678d0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Solver/solverAlgorithms.h
+27
-1
27 additions, 1 deletion
Solver/solverAlgorithms.h
with
27 additions
and
1 deletion
Solver/solverAlgorithms.h
+
27
−
1
View file @
ef16c6d7
...
@@ -187,6 +187,32 @@ class FilterDofComponent : public FilterDof
...
@@ -187,6 +187,32 @@ class FilterDofComponent : public FilterDof
}
}
};
};
// return true if the Dof is in a filled set
class
FilterDofSet
:
public
FilterDof
{
protected:
std
::
set
<
Dof
>
_dofset
;
public:
FilterDofSet
()
:
FilterDof
(){}
virtual
~
FilterDofSet
(){}
virtual
bool
operator
()(
Dof
key
)
{
std
::
set
<
Dof
>::
iterator
itR
=
_dofset
.
find
(
key
);
if
(
itR
==
_dofset
.
end
()){
return
false
;
}
return
true
;
}
virtual
void
addDof
(
Dof
key
)
{
_dofset
.
insert
(
key
);
}
virtual
void
addDof
(
std
::
vector
<
Dof
>
&
R
)
{
for
(
int
i
=
0
;
i
<
R
.
size
();
i
++
)
this
->
addDof
(
R
[
i
]);
}
};
template
<
class
Assembler
>
void
FixNodalDofs
(
FunctionSpaceBase
&
space
,
MElement
*
e
,
Assembler
&
assembler
,
template
<
class
Assembler
>
void
FixNodalDofs
(
FunctionSpaceBase
&
space
,
MElement
*
e
,
Assembler
&
assembler
,
simpleFunction
<
typename
Assembler
::
dataVec
>
&
fct
,
simpleFunction
<
typename
Assembler
::
dataVec
>
&
fct
,
...
@@ -214,7 +240,7 @@ template<class Assembler> void FixNodalDofs(FunctionSpaceBase &space, MElement *
...
@@ -214,7 +240,7 @@ template<class Assembler> void FixNodalDofs(FunctionSpaceBase &space, MElement *
}
}
template
<
class
Iterator
,
class
Assembler
>
void
FixNodalDofs
(
FunctionSpaceBase
&
space
,
Iterator
itbegin
,
template
<
class
Iterator
,
class
Assembler
>
void
FixNodalDofs
(
FunctionSpaceBase
&
space
,
Iterator
itbegin
,
Iterator
itend
,
Assembler
&
assembler
,
Iterator
itend
,
Assembler
&
assembler
,
simpleFunction
<
typename
Assembler
::
dataVec
>
&
fct
,
simpleFunction
<
typename
Assembler
::
dataVec
>
&
fct
,
FilterDof
&
filter
)
FilterDof
&
filter
)
{
{
...
...
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