Skip to content
GitLab
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
198a19e6
Commit
198a19e6
authored
Apr 24, 2016
by
Matthieu Schaller
Browse files
Print starting time as well in welcome message
parent
8c14753b
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
198a19e6
...
...
@@ -347,7 +347,8 @@ int main(int argc, char *argv[]) {
if
(
!
with_hydro
)
{
free
(
parts
);
parts
=
NULL
;
for
(
size_t
k
=
0
;
k
<
Ngpart
;
++
k
)
if
(
gparts
[
k
].
id
>
0
)
error
(
"Linking problem"
);
for
(
size_t
k
=
0
;
k
<
Ngpart
;
++
k
)
if
(
gparts
[
k
].
id
>
0
)
error
(
"Linking problem"
);
Ngas
=
0
;
}
...
...
@@ -456,10 +457,10 @@ int main(int argc, char *argv[]) {
/* Get some info to the user. */
if
(
myrank
==
0
)
{
message
(
"Running on %lld gas particles and %lld DM particles
until
t=%.3e
with
"
"
%i
threads and %
i
queues (dt_min=%.3e, dt_max=%.3e)..."
,
N_total
[
0
],
N_total
[
1
],
e
.
timeEnd
,
e
.
nr_thread
s
,
e
.
sched
.
nr_queue
s
,
e
.
dt_min
,
e
.
dt_max
);
"Running on %lld gas particles and %lld DM particles
from
t=%.3e
until
"
"
t=%.3e with %d
threads and %
d
queues (dt_min=%.3e, dt_max=%.3e)..."
,
N_total
[
0
],
N_total
[
1
],
e
.
time
Begin
,
e
.
time
End
,
e
.
nr_threads
,
e
.
sched
.
nr_queues
,
e
.
dt_min
,
e
.
dt_max
);
fflush
(
stdout
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment