Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nektar
Nektar
Commits
866f16d5
Commit
866f16d5
authored
Feb 08, 2016
by
Douglas Serson
Committed by
Spencer Sherwin
Mar 04, 2016
Browse files
Free more communicators for DriverAdaptive
parent
372965ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
library/LibUtilities/Communication/GsLib.hpp
View file @
866f16d5
...
...
@@ -161,7 +161,10 @@ namespace Gs
MPI_Comm_dup
(
vCommMpi
->
GetComm
(),
&
vComm
.
c
);
vComm
.
id
=
vCommMpi
->
GetRank
();
vComm
.
np
=
vCommMpi
->
GetSize
();
return
nektar_gs_setup
(
pId
.
get
(),
pId
.
num_elements
(),
&
vComm
,
0
,
gs_auto
,
1
);
gs_data
*
result
=
nektar_gs_setup
(
pId
.
get
(),
pId
.
num_elements
(),
&
vComm
,
0
,
gs_auto
,
1
);
MPI_Comm_free
(
&
vComm
.
c
);
return
result
;
#else
return
0
;
#endif
...
...
library/LibUtilities/Communication/Xxt.hpp
View file @
866f16d5
...
...
@@ -169,7 +169,10 @@ namespace Xxt
MPI_Comm_dup
(
vCommMpi
->
GetComm
(),
&
vComm
.
c
);
vComm
.
id
=
vCommMpi
->
GetRank
();
vComm
.
np
=
vCommMpi
->
GetSize
();
return
nektar_crs_setup
(
pRank
,
&
pId
[
0
],
nz
,
&
pAi
[
0
],
&
pAj
[
0
],
&
pAr
[
0
],
0
,
&
vComm
);
crs_data
*
result
=
nektar_crs_setup
(
pRank
,
&
pId
[
0
],
nz
,
&
pAi
[
0
],
&
pAj
[
0
],
&
pAr
[
0
],
0
,
&
vComm
);
MPI_Comm_free
(
&
vComm
.
c
);
return
result
;
#else
return
0
;
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment