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
b5dec2db
Commit
b5dec2db
authored
13 years ago
by
Gauthier Becker
Browse files
Options
Downloads
Patches
Plain Diff
Remove umap from staticUnkonowsField now update of displacement is
managed in staticDofManager
parent
3ed1ab6e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Solver/dofManager.h
+12
-12
12 additions, 12 deletions
Solver/dofManager.h
with
12 additions
and
12 deletions
Solver/dofManager.h
+
12
−
12
View file @
b5dec2db
...
...
@@ -55,9 +55,9 @@ template<class T> struct dofTraits
{
typedef
T
VecType
;
typedef
T
MatType
;
inline
static
void
gemm
(
VecType
&
r
,
const
MatType
&
m
,
const
VecType
&
v
,
inline
static
void
gemm
(
VecType
&
r
,
const
MatType
&
m
,
const
VecType
&
v
,
double
alpha
,
double
beta
)
{
{
r
=
beta
*
r
+
alpha
*
m
*
v
;
}
};
...
...
@@ -68,7 +68,7 @@ template<class T> struct dofTraits<fullMatrix<T> >
typedef
fullMatrix
<
T
>
MatType
;
inline
static
void
gemm
(
VecType
&
r
,
const
MatType
&
m
,
const
VecType
&
v
,
double
alpha
,
double
beta
)
{
{
r
.
gemm
(
m
,
v
,
alpha
,
beta
);
}
};
...
...
@@ -132,10 +132,10 @@ class dofManager{
void
_parallelFinalize
();
public:
dofManager
(
linearSystem
<
dataMat
>
*
l
,
bool
isParallel
=
false
)
:
_current
(
l
),
_isParallel
(
isParallel
),
_parallelFinalized
(
false
)
{
_linearSystems
[
"A"
]
=
l
;
dofManager
(
linearSystem
<
dataMat
>
*
l
,
bool
isParallel
=
false
)
:
_current
(
l
),
_isParallel
(
isParallel
),
_parallelFinalized
(
false
)
{
_linearSystems
[
"A"
]
=
l
;
}
dofManager
(
linearSystem
<
dataMat
>
*
l1
,
linearSystem
<
dataMat
>
*
l2
)
:
_current
(
l1
),
_isParallel
(
false
),
_parallelFinalized
(
false
)
...
...
@@ -178,7 +178,7 @@ class dofManager{
if
(
ghosted
.
find
(
key
)
!=
ghosted
.
end
())
return
;
ghosted
[
key
]
=
procId
;
}
inline
void
numberDof
(
Dof
key
)
virtual
inline
void
numberDof
(
Dof
key
)
// derived in staticDofManager in NonLinearSolver project
{
if
(
fixed
.
find
(
key
)
!=
fixed
.
end
())
return
;
if
(
constraints
.
find
(
key
)
!=
constraints
.
end
())
return
;
...
...
@@ -275,7 +275,7 @@ class dofManager{
getDofValue
(
v
->
getNum
(),
Dof
::
createTypeWithTwoInts
(
iComp
,
iField
),
value
);
}
inline
void
insertInSparsityPatternLinConst
(
const
Dof
&
R
,
const
Dof
&
C
)
inline
void
insertInSparsityPatternLinConst
(
const
Dof
&
R
,
const
Dof
&
C
)
{
std
::
map
<
Dof
,
int
>::
iterator
itR
=
unknown
.
find
(
R
);
if
(
itR
!=
unknown
.
end
())
...
...
@@ -348,7 +348,7 @@ class dofManager{
assembleLinConst
(
R
,
C
,
value
);
}
}
inline
void
assemble
(
std
::
vector
<
Dof
>
&
R
,
std
::
vector
<
Dof
>
&
C
,
inline
void
assemble
(
std
::
vector
<
Dof
>
&
R
,
std
::
vector
<
Dof
>
&
C
,
const
fullMatrix
<
dataMat
>
&
m
)
{
if
(
_isParallel
&&
!
_parallelFinalized
)
_parallelFinalize
();
...
...
@@ -628,7 +628,7 @@ void dofManager<T>::_parallelFinalize()
}
}
int
index
;
while
(
MPI_Waitany
(
2
*
Msg
::
GetCommSize
(),
reqRecv0
,
&
index
,
&
status
)
==
0
&&
while
(
MPI_Waitany
(
2
*
Msg
::
GetCommSize
(),
reqRecv0
,
&
index
,
&
status
)
==
0
&&
index
!=
MPI_UNDEFINED
)
{
if
(
status
.
MPI_TAG
==
0
)
{
for
(
int
j
=
0
;
j
<
nRequested
[
index
];
j
++
)
{
...
...
@@ -638,7 +638,7 @@ void dofManager<T>::_parallelFinalize()
Msg
::
Error
(
"ghost Dof does not exist on parent process"
);
send1
[
index
][
j
]
=
it
->
second
;
}
MPI_Isend
(
send1
[
index
],
nRequested
[
index
],
MPI_INT
,
index
,
1
,
MPI_Isend
(
send1
[
index
],
nRequested
[
index
],
MPI_INT
,
index
,
1
,
MPI_COMM_WORLD
,
&
reqSend1
[
index
]);
}
}
...
...
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