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
81c3d2fb
Commit
81c3d2fb
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
backing out eric's changes for now
parent
96fe8118
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Solver/dofManager.h
+0
-40
0 additions, 40 deletions
Solver/dofManager.h
Solver/femTerm.h
+2
-13
2 additions, 13 deletions
Solver/femTerm.h
with
2 additions
and
53 deletions
Solver/dofManager.h
+
0
−
40
View file @
81c3d2fb
...
...
@@ -11,8 +11,6 @@
#include
<map>
#include
"MVertex.h"
#include
"linearSystem.h"
#include
"fullMatrix.h"
class
Dof
{
private:
...
...
@@ -20,7 +18,6 @@ class Dof{
long
int
_entity
;
// "i": node, edge, group, etc.
int
_type
;
// "f": basis function type index, etc.
public:
Dof
(
void
)
{}
// eric
Dof
(
long
int
entity
,
int
type
)
:
_entity
(
entity
),
_type
(
type
)
{}
inline
long
int
getEntity
()
const
{
return
_entity
;
}
inline
int
getType
()
const
{
return
_type
;
}
...
...
@@ -136,43 +133,6 @@ class dofManager{
}
}
}
inline
void
assemble
(
const
std
::
vector
<
Dof
>
&
dofsR
,
const
std
::
vector
<
Dof
>
&
dofsC
,
const
fullMatrix
<
dataMat
>
&
localMatrix
)
{
if
(
!
_current
->
isAllocated
())
_current
->
allocate
(
unknown
.
size
());
const
int
nbR
=
localMatrix
.
size1
();
const
int
nbC
=
localMatrix
.
size2
();
std
::
vector
<
int
>
tabR
(
nbR
);
std
::
vector
<
int
>
tabC
(
nbC
);
for
(
int
R
=
0
;
R
<
nbR
;
++
R
)
{
std
::
map
<
Dof
,
int
>::
iterator
it
=
unknown
.
find
(
dofsR
[
R
]);
if
(
it
!=
unknown
.
end
())
tabR
[
R
]
=
it
->
second
;
else
tabR
[
R
]
=-
1
;
}
for
(
int
C
=
0
;
C
<
nbC
;
++
C
)
{
std
::
map
<
Dof
,
int
>::
iterator
it
=
unknown
.
find
(
dofsC
[
C
]);
if
(
it
!=
unknown
.
end
())
tabC
[
C
]
=
it
->
second
;
else
tabC
[
C
]
=-
1
;
}
for
(
int
R
=
0
;
R
<
nbR
;
++
R
)
{
for
(
int
C
=
0
;
C
<
nbC
;
++
C
)
{
if
(
tabR
[
R
]
!=
-
1
)
{
if
(
tabC
[
C
]
!=-
1
)
{
_current
->
addToMatrix
(
tabR
[
R
],
tabC
[
C
],
localMatrix
(
R
,
C
));
}
else
{
typename
std
::
map
<
Dof
,
dataVec
>::
iterator
itFixed
=
fixed
.
find
(
dofsC
[
C
]);
if
(
itFixed
!=
fixed
.
end
())
{
_current
->
addToRightHandSide
(
R
,
-
localMatrix
(
R
,
C
)
*
itFixed
->
second
);
}
}
}
}
}
}
inline
void
assemble
(
int
entR
,
int
typeR
,
int
entC
,
int
typeC
,
const
dataMat
&
value
)
{
assemble
(
Dof
(
entR
,
typeR
),
Dof
(
entC
,
typeC
),
value
);
...
...
This diff is collapsed.
Click to expand it.
Solver/femTerm.h
+
2
−
13
View file @
81c3d2fb
...
...
@@ -75,24 +75,13 @@ class femTerm {
{
const
int
nbR
=
localMatrix
.
size1
();
const
int
nbC
=
localMatrix
.
size2
();
/*
for (int j = 0; j < nbR; j++)
{
for
(
int
j
=
0
;
j
<
nbR
;
j
++
){
Dof
R
=
getLocalDofR
(
se
,
j
);
for (int k = 0; k < nbC; k++)
{
for
(
int
k
=
0
;
k
<
nbC
;
k
++
){
Dof
C
=
getLocalDofC
(
se
,
k
);
dm
.
assemble
(
R
,
C
,
localMatrix
(
j
,
k
));
}
}
*/
std
::
vector
<
Dof
>
tabR
(
nbR
);
std
::
vector
<
Dof
>
tabC
(
nbC
);
for
(
int
R
=
0
;
R
<
nbR
;
++
R
)
tabR
[
R
]
=
getLocalDofR
(
se
,
R
);
for
(
int
C
=
0
;
C
<
nbC
;
++
C
)
tabC
[
C
]
=
getLocalDofC
(
se
,
C
);
dm
.
assemble
(
tabR
,
tabC
,
localMatrix
);
}
void
dirichletNodalBC
(
int
physical
,
int
dim
,
int
comp
,
int
field
,
const
simpleFunction
<
dataVec
>
&
e
,
...
...
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