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
af97a961
Commit
af97a961
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into new_timeline
parents
520d3f95
67a7a2da
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!301
New time line
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure.ac
+3
-0
3 additions, 0 deletions
configure.ac
examples/main.c
+2
-1
2 additions, 1 deletion
examples/main.c
src/runner.c
+6
-0
6 additions, 0 deletions
src/runner.c
with
11 additions
and
1 deletion
configure.ac
+
3
−
0
View file @
af97a961
...
@@ -825,5 +825,8 @@ AC_MSG_RESULT([
...
@@ -825,5 +825,8 @@ AC_MSG_RESULT([
Debugging checks : $enable_debugging_checks
Debugging checks : $enable_debugging_checks
])
])
# Make sure the latest git revision string gets included
touch src/version.c
# Generate output.
# Generate output.
AC_OUTPUT
AC_OUTPUT
This diff is collapsed.
Click to expand it.
examples/main.c
+
2
−
1
View file @
af97a961
...
@@ -296,7 +296,8 @@ int main(int argc, char *argv[]) {
...
@@ -296,7 +296,8 @@ int main(int argc, char *argv[]) {
/* Do we choke on FP-exceptions ? */
/* Do we choke on FP-exceptions ? */
if
(
with_fp_exceptions
)
{
if
(
with_fp_exceptions
)
{
feenableexcept
(
FE_DIVBYZERO
|
FE_INVALID
|
FE_OVERFLOW
);
feenableexcept
(
FE_DIVBYZERO
|
FE_INVALID
|
FE_OVERFLOW
);
if
(
myrank
==
0
)
message
(
"Floating point exceptions will be reported."
);
if
(
myrank
==
0
)
message
(
"WARNING: Floating point exceptions will be reported."
);
}
}
/* How large are the parts? */
/* How large are the parts? */
...
...
This diff is collapsed.
Click to expand it.
src/runner.c
+
6
−
0
View file @
af97a961
...
@@ -1049,6 +1049,8 @@ void runner_do_kick2(struct runner *r, struct cell *c, int timer) {
...
@@ -1049,6 +1049,8 @@ void runner_do_kick2(struct runner *r, struct cell *c, int timer) {
*/
*/
void
runner_do_recv_cell
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
)
{
void
runner_do_recv_cell
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
)
{
#ifdef WITH_MPI
const
struct
part
*
restrict
parts
=
c
->
parts
;
const
struct
part
*
restrict
parts
=
c
->
parts
;
const
struct
gpart
*
restrict
gparts
=
c
->
gparts
;
const
struct
gpart
*
restrict
gparts
=
c
->
gparts
;
const
size_t
nr_parts
=
c
->
count
;
const
size_t
nr_parts
=
c
->
count
;
...
@@ -1102,6 +1104,10 @@ void runner_do_recv_cell(struct runner *r, struct cell *c, int timer) {
...
@@ -1102,6 +1104,10 @@ void runner_do_recv_cell(struct runner *r, struct cell *c, int timer) {
c
->
h_max
=
h_max
;
c
->
h_max
=
h_max
;
if
(
timer
)
TIMER_TOC
(
timer_dorecv_cell
);
if
(
timer
)
TIMER_TOC
(
timer_dorecv_cell
);
#else
error
(
"SWIFT was not compiled with MPI support."
);
#endif
}
}
/**
/**
...
...
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