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
198a19e6
Commit
198a19e6
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Print starting time as well in welcome message
parent
8c14753b
No related branches found
No related tags found
1 merge request
!159
Timed outputs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/main.c
+6
-5
6 additions, 5 deletions
examples/main.c
with
6 additions
and
5 deletions
examples/main.c
+
6
−
5
View file @
198a19e6
...
@@ -347,7 +347,8 @@ int main(int argc, char *argv[]) {
...
@@ -347,7 +347,8 @@ int main(int argc, char *argv[]) {
if
(
!
with_hydro
)
{
if
(
!
with_hydro
)
{
free
(
parts
);
free
(
parts
);
parts
=
NULL
;
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
;
Ngas
=
0
;
}
}
...
@@ -456,10 +457,10 @@ int main(int argc, char *argv[]) {
...
@@ -456,10 +457,10 @@ int main(int argc, char *argv[]) {
/* Get some info to the user. */
/* Get some info to the user. */
if
(
myrank
==
0
)
{
if
(
myrank
==
0
)
{
message
(
message
(
"Running on %lld gas particles and %lld DM particles
until
t=%.3e
with
"
"Running on %lld gas particles and %lld DM particles
from
t=%.3e
until
"
"
%i
threads and %
i
queues (dt_min=%.3e, dt_max=%.3e)..."
,
"
t=%.3e with %d
threads and %
d
queues (dt_min=%.3e, dt_max=%.3e)..."
,
N_total
[
0
],
N_total
[
1
],
e
.
timeEnd
,
e
.
nr_thread
s
,
e
.
sched
.
nr_queue
s
,
N_total
[
0
],
N_total
[
1
],
e
.
time
Begin
,
e
.
time
End
,
e
.
nr_threads
,
e
.
dt_min
,
e
.
dt_max
);
e
.
sched
.
nr_queues
,
e
.
dt_min
,
e
.
dt_max
);
fflush
(
stdout
);
fflush
(
stdout
);
}
}
...
...
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