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
595c7fc1
Commit
595c7fc1
authored
3 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Applied formatting script
parent
70fa2165
No related branches found
No related tags found
1 merge request
!1558
Sync mhd canvas before is too late
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/main_fof.c
+1
-2
1 addition, 2 deletions
examples/main_fof.c
src/clocks.c
+1
-1
1 addition, 1 deletion
src/clocks.c
with
2 additions
and
3 deletions
examples/main_fof.c
+
1
−
2
View file @
595c7fc1
...
@@ -657,8 +657,7 @@ int main(int argc, char *argv[]) {
...
@@ -657,8 +657,7 @@ int main(int argc, char *argv[]) {
/*extra_io_props=*/
NULL
,
&
fof_properties
,
/*los_properties=*/
NULL
,
/*extra_io_props=*/
NULL
,
&
fof_properties
,
/*los_properties=*/
NULL
,
/*lightcone_properties=*/
NULL
,
&
ics_metadata
);
/*lightcone_properties=*/
NULL
,
&
ics_metadata
);
engine_config
(
/*restart=*/
0
,
/*fof=*/
1
,
&
e
,
params
,
nr_nodes
,
myrank
,
engine_config
(
/*restart=*/
0
,
/*fof=*/
1
,
&
e
,
params
,
nr_nodes
,
myrank
,
nr_threads
,
nr_threads
,
with_aff
,
talking
,
NULL
,
nr_threads
,
nr_threads
,
with_aff
,
talking
,
NULL
,
&
reparttype
);
&
reparttype
);
/* Get some info to the user. */
/* Get some info to the user. */
if
(
myrank
==
0
)
{
if
(
myrank
==
0
)
{
...
...
This diff is collapsed.
Click to expand it.
src/clocks.c
+
1
−
1
View file @
595c7fc1
...
@@ -327,7 +327,7 @@ int clocks_random_seed(void) {
...
@@ -327,7 +327,7 @@ int clocks_random_seed(void) {
const
char
*
clocks_now
(
int
swift
)
{
const
char
*
clocks_now
(
int
swift
)
{
static
char
now
[
64
];
static
char
now
[
64
];
time_t
tm
=
time
(
NULL
);
time_t
tm
=
time
(
NULL
);
struct
tm
*
timeinfo
=
localtime
(
&
tm
);
struct
tm
*
timeinfo
=
localtime
(
&
tm
);
if
(
swift
)
{
if
(
swift
)
{
strftime
(
now
,
64
,
"%T %F %Z"
,
timeinfo
);
strftime
(
now
,
64
,
"%T %F %Z"
,
timeinfo
);
}
else
{
}
else
{
...
...
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