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
e0c8e71f
Commit
e0c8e71f
authored
8 years ago
by
James Willis
Browse files
Options
Downloads
Patches
Plain Diff
£Removed old commit
3b2ed399
from branch and placed in new branch print_hostname
parent
7c2941e4
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!267
Mark tasks in drift2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/version.c
+0
-21
0 additions, 21 deletions
src/version.c
src/version.h
+0
-1
0 additions, 1 deletion
src/version.h
with
0 additions
and
22 deletions
src/version.c
+
0
−
21
View file @
e0c8e71f
...
...
@@ -21,9 +21,6 @@
/* Config parameters. */
#include
"../config.h"
/* Needed for gethostname() */
#include
<unistd.h>
/* MPI headers. */
#ifdef WITH_MPI
#include
<mpi.h>
...
...
@@ -50,24 +47,6 @@
/* Local headers. */
#include
"version_string.h"
/**
* @brief Return the hostname
*
* Will return the name of the host.
*
* @result the hostname.
*/
const
char
*
hostname
(
void
)
{
static
char
buf
[
256
];
static
int
initialised
=
0
;
if
(
!
initialised
)
{
buf
[
255
]
=
'\0'
;
if
(
gethostname
(
buf
,
255
))
sprintf
(
buf
,
"%s"
,
"Unknown host"
);
initialised
=
1
;
}
return
buf
;
}
/**
* @brief Return the source code git revision
*
...
...
This diff is collapsed.
Click to expand it.
src/version.h
+
0
−
1
View file @
e0c8e71f
...
...
@@ -22,7 +22,6 @@
const
char
*
package_description
(
void
);
const
char
*
package_version
(
void
);
const
char
*
hostname
(
void
);
const
char
*
git_revision
(
void
);
const
char
*
git_branch
(
void
);
const
char
*
compiler_name
(
void
);
...
...
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