Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
a2d15d3f
Commit
a2d15d3f
authored
6 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
formatting.
parent
1e2e25f2
No related branches found
No related tags found
2 merge requests
!659
Parallel rebuild2
,
!655
Parallel rebuild
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cell.h
+2
-1
2 additions, 1 deletion
src/cell.h
src/proxy.c
+4
-4
4 additions, 4 deletions
src/proxy.c
with
6 additions
and
5 deletions
src/cell.h
+
2
−
1
View file @
a2d15d3f
...
@@ -850,7 +850,8 @@ __attribute__((always_inline)) INLINE static int cell_need_rebuild_for_pair(
...
@@ -850,7 +850,8 @@ __attribute__((always_inline)) INLINE static int cell_need_rebuild_for_pair(
*
*
* @param c The #cell to tag.
* @param c The #cell to tag.
*/
*/
__attribute__
((
always_inline
))
INLINE
static
void
cell_ensure_tagged
(
struct
cell
*
c
)
{
__attribute__
((
always_inline
))
INLINE
static
void
cell_ensure_tagged
(
struct
cell
*
c
)
{
#ifdef WITH_MPI
#ifdef WITH_MPI
lock_lock
(
&
c
->
hydro
.
lock
);
lock_lock
(
&
c
->
hydro
.
lock
);
...
...
This diff is collapsed.
Click to expand it.
src/proxy.c
+
4
−
4
View file @
a2d15d3f
...
@@ -228,8 +228,8 @@ void proxy_cells_exchange_first(struct proxy *p) {
...
@@ -228,8 +228,8 @@ void proxy_cells_exchange_first(struct proxy *p) {
p
->
nodeID
*
proxy_tag_shift
+
proxy_tag_count
,
MPI_COMM_WORLD
,
p
->
nodeID
*
proxy_tag_shift
+
proxy_tag_count
,
MPI_COMM_WORLD
,
&
p
->
req_cells_count_in
);
&
p
->
req_cells_count_in
);
if
(
err
!=
MPI_SUCCESS
)
mpi_error
(
err
,
"Failed to irecv nr of pcells."
);
if
(
err
!=
MPI_SUCCESS
)
mpi_error
(
err
,
"Failed to irecv nr of pcells."
);
// message( "irecv pcells count on node %i from node %i." , p->mynodeID ,
// message( "irecv pcells count on node %i from node %i." , p->mynodeID ,
// p->nodeID ); fflush(stdout);
// p->nodeID ); fflush(stdout);
#else
#else
error
(
"SWIFT was not compiled with MPI support."
);
error
(
"SWIFT was not compiled with MPI support."
);
...
@@ -261,8 +261,8 @@ void proxy_cells_exchange_second(struct proxy *p) {
...
@@ -261,8 +261,8 @@ void proxy_cells_exchange_second(struct proxy *p) {
MPI_COMM_WORLD
,
&
p
->
req_cells_in
);
MPI_COMM_WORLD
,
&
p
->
req_cells_in
);
if
(
err
!=
MPI_SUCCESS
)
mpi_error
(
err
,
"Failed to irecv part data."
);
if
(
err
!=
MPI_SUCCESS
)
mpi_error
(
err
,
"Failed to irecv part data."
);
// message( "irecv pcells (%i) on node %i from node %i." , p->size_pcells_in
// message( "irecv pcells (%i) on node %i from node %i." , p->size_pcells_in
// , p->mynodeID , p->nodeID ); fflush(stdout);
// , p->mynodeID , p->nodeID ); fflush(stdout);
#else
#else
error
(
"SWIFT was not compiled with MPI support."
);
error
(
"SWIFT was not compiled with MPI support."
);
...
...
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