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
92192f96
Commit
92192f96
authored
Sep 25, 2016
by
James Willis
Browse files
Formatting.
parent
860555e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
92192f96
...
...
@@ -2229,7 +2229,8 @@ void engine_print_task_counts(struct engine *e) {
e
->
nodeID
,
clocks_get_timesincestart
(),
taskID_names
[
0
],
counts
[
0
]);
#else
printf
(
"%s engine_print_task_counts: time step:%d task counts are [ %s=%i"
,
clocks_get_timesincestart
(),
e
->
ti_current
,
taskID_names
[
0
],
counts
[
0
]);
clocks_get_timesincestart
(),
e
->
ti_current
,
taskID_names
[
0
],
counts
[
0
]);
#endif
for
(
int
k
=
1
;
k
<
task_type_count
;
k
++
)
printf
(
" %s=%i"
,
taskID_names
[
k
],
counts
[
k
]);
...
...
@@ -3409,13 +3410,14 @@ void engine_init(struct engine *e, struct space *s,
nr_nodes
*
nr_threads
);
e
->
file_timesteps
=
fopen
(
timestepsfileName
,
"w"
);
fprintf
(
e
->
file_timesteps
,
"# Host: %s
\n
# Branch: %s
\n
# Revision: %s
\n
# Compiler: %s, Version: %s
\n
# "
"# Host: %s
\n
# Branch: %s
\n
# Revision: %s
\n
# Compiler: %s, "
"Version: %s
\n
# "
"Number of threads: %d
\n
# Number of MPI ranks: %d
\n
# Hydrodynamic "
"scheme: %s
\n
# Hydrodynamic kernel: %s
\n
# No. of neighbours: %.2f "
"+/- %.2f
\n
# Eta: %f
\n
"
,
hostname
(),
git_branch
(),
git_revision
(),
compiler_name
(),
compiler_version
(),
e
->
nr_threads
,
e
->
nr_nodes
,
SPH_IMPLEMENTATION
,
kernel_name
,
e
->
hydro_properties
->
target_neighbours
,
hostname
(),
git_branch
(),
git_revision
(),
compiler_name
(),
compiler_version
(),
e
->
nr_threads
,
e
->
nr_nodes
,
SPH_IMPLEMENTATION
,
kernel_name
,
e
->
hydro_properties
->
target_neighbours
,
e
->
hydro_properties
->
delta_neighbours
,
e
->
hydro_properties
->
eta_neighbours
);
...
...
src/version.c
View file @
92192f96
...
...
@@ -62,8 +62,7 @@ const char *hostname(void) {
static
int
initialised
=
0
;
if
(
!
initialised
)
{
buf
[
255
]
=
'\0'
;
if
(
gethostname
(
buf
,
255
))
sprintf
(
buf
,
"%s"
,
"Unknown host"
);
if
(
gethostname
(
buf
,
255
))
sprintf
(
buf
,
"%s"
,
"Unknown host"
);
initialised
=
1
;
}
return
buf
;
...
...
src/version.h
View file @
92192f96
...
...
@@ -22,7 +22,7 @@
const
char
*
package_description
(
void
);
const
char
*
package_version
(
void
);
const
char
*
hostname
(
void
);
const
char
*
hostname
(
void
);
const
char
*
git_revision
(
void
);
const
char
*
git_branch
(
void
);
const
char
*
compiler_name
(
void
);
...
...
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