Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
919db29c
Commit
919db29c
authored
Feb 12, 2020
by
Loic Hausammann
Browse files
Logger: use a single line for turning off the logger
parent
51667b1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
919db29c
...
@@ -1217,10 +1217,9 @@ int main(int argc, char *argv[]) {
...
@@ -1217,10 +1217,9 @@ int main(int argc, char *argv[]) {
#ifdef WITH_MPI
#ifdef WITH_MPI
/* Split the space. */
/* Split the space. */
engine_split
(
&
e
,
&
initial_partition
);
engine_split
(
&
e
,
&
initial_partition
);
if
(
with_logger
)
{
/* Turn off the logger to avoid writing the communications */
/* Turn off the logger to avoid writing the communications */
if
(
with_logger
)
e
.
policy
&=
~
engine_policy_logger
;
e
.
policy
&=
~
engine_policy_logger
;
}
engine_redistribute
(
&
e
);
engine_redistribute
(
&
e
);
if
(
with_logger
)
{
if
(
with_logger
)
{
/* Turn it back on */
/* Turn it back on */
...
...
Write
Preview
Markdown
is supported
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