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
Merge requests
!1010
Only dump the used/unused parameter yaml files when *not* restarting a run
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Only dump the used/unused parameter yaml files when *not* restarting a run
param_dumps
into
master
Overview
2
Commits
1
Changes
2
Merged
Matthieu Schaller
requested to merge
param_dumps
into
master
5 years ago
Overview
2
Commits
1
Changes
2
Expand
This is a trivial change but thought you may have a better suggestion.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
9fd015d1
1 commit,
5 years ago
2 files
+
9
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
examples/main.c
+
7
−
5
Options
@@ -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
];
Loading