Commit 860555e8 authored by James Willis's avatar James Willis
Browse files

Print the host name at runtime and also in timesteps.txt.

parent 48183228
......@@ -265,6 +265,7 @@ int main(int argc, char *argv[]) {
/* Report CPU frequency. */
cpufreq = clocks_get_cpufreq();
if (myrank == 0) {
message("Running on: %s",hostname());
message("CPU frequency used for tick conversion: %llu Hz", cpufreq);
}
......
......@@ -2228,8 +2228,8 @@ void engine_print_task_counts(struct engine *e) {
printf("[%04i] %s engine_print_task_counts: task counts are [ %s=%i",
e->nodeID, clocks_get_timesincestart(), taskID_names[0], counts[0]);
#else
printf("%s engine_print_task_counts: task counts are [ %s=%i",
clocks_get_timesincestart(), taskID_names[0], counts[0]);
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]);
#endif
for (int k = 1; k < task_type_count; k++)
printf(" %s=%i", taskID_names[k], counts[k]);
......@@ -3409,11 +3409,11 @@ void engine_init(struct engine *e, struct space *s,
nr_nodes * nr_threads);
e->file_timesteps = fopen(timestepsfileName, "w");
fprintf(e->file_timesteps,
"# 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",
git_branch(), git_revision(), compiler_name(), compiler_version(),
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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment