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
9fd015d1
Commit
9fd015d1
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Only dump the used/unused parameter yaml files when *not* restarting a run
parent
94d7353f
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1010
Only dump the used/unused parameter yaml files when *not* restarting a run
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/main.c
+7
-5
7 additions, 5 deletions
examples/main.c
examples/main_fof.c
+2
-2
2 additions, 2 deletions
examples/main_fof.c
with
9 additions
and
7 deletions
examples/main.c
+
7
−
5
View file @
9fd015d1
...
...
@@ -1244,13 +1244,15 @@ int main(int argc, char *argv[]) {
error
(
"Failed to generate restart filename"
);
/* dump the parameters as used. */
if
(
!
restart
&&
myrank
==
0
)
{
/* used parameters */
parser_write_params_to_file
(
params
,
"used_parameters.yml"
,
1
);
/* unused parameters */
parser_write_params_to_file
(
params
,
"unused_parameters.yml"
,
0
);
/* used parameters */
parser_write_params_to_file
(
params
,
"used_parameters.yml"
,
/*used=*/
1
);
/* unused parameters */
parser_write_params_to_file
(
params
,
"unused_parameters.yml"
,
/*used=*/
0
);
}
/* Dump memory use report if collected for the 0 step. */
/* Dump memory use report if collected for the 0 step. */
#ifdef SWIFT_MEMUSE_REPORTS
{
char
dumpfile
[
40
];
...
...
This diff is collapsed.
Click to expand it.
examples/main_fof.c
+
2
−
2
View file @
9fd015d1
...
...
@@ -673,9 +673,9 @@ int main(int argc, char *argv[]) {
#endif // SWIFT_DEBUG_THREADPOOL
/* used parameters */
parser_write_params_to_file
(
params
,
"fof_used_parameters.yml"
,
1
);
parser_write_params_to_file
(
params
,
"fof_used_parameters.yml"
,
/*used=*/
1
);
/* unused parameters */
parser_write_params_to_file
(
params
,
"fof_unused_parameters.yml"
,
0
);
parser_write_params_to_file
(
params
,
"fof_unused_parameters.yml"
,
/*used=*/
0
);
/* Dump memory use report */
#ifdef SWIFT_MEMUSE_REPORTS
...
...
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