-
Notifications
You must be signed in to change notification settings - Fork 99
Xios log file config bug #549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -193,11 +193,11 @@ | |
|
|
||
| {% if "xios_info_level" not in task_dict %} | ||
| {% do task_dict.update({"xios_info_level": 0}) %} | ||
| {% do task_dict.update({"xios_print_file": "false"}) %} | ||
| {% do task_dict.update({"xios_print_file": False}) %} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am now worried that this will not work for the same reason stated before. If there is text present in 'xios_print_file' then it will be set to .TRUE. and "False" will count as text. |
||
| {% endif %} | ||
|
|
||
| {% if "xios_info_level" in task_dict and task_dict["xios_info_level"] > 1 %} | ||
| {% do task_dict.update({"xios_print_file": "true"}) %} | ||
| {% do task_dict.update({"xios_print_file": True}) %} | ||
| {% endif %} | ||
|
|
||
| {# If application is lfric_coupled read in default values specific to coupled runs #} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,6 +73,8 @@ | |
| 'find . -regex ".*PET0+\..+\.Log" -exec cp {} $TASK_OUTPUT_DIR \;', | ||
| 'ls -sh $TASK_OUTPUT_DIR/results > $ROSE_TASK_LOG_DIR/results_file_sizes.log', | ||
| 'find . -name timer.txt -exec cp {} $ROSE_TASK_LOG_DIR \;', | ||
| 'find . -name "xios_client_*.out" -exec cat {} + > $ROSE_TASK_LOG_DIR/xios_client_collated.out ', | ||
| 'find . -name "xios_server_*.out" -exec cat {} + > $ROSE_TASK_LOG_DIR/xios_server_collated.out ', | ||
| 'test -f '~task_values["app_name"]~ | ||
| '-checksums.txt && cp $CYLC_TASK_WORK_DIR/'~ | ||
| task_values["app_name"]~'-checksums.txt $TASK_OUTPUT_DIR/checksum.txt', | ||
|
|
@@ -138,7 +140,7 @@ | |
| xios_nodes = {{task_values["xios_nodes"]}} | ||
| mpi_parts_xios = {{task_values["mpi_parts_xios"]}} | ||
| XIOS_INFO_LEVEL = {{task_values['xios_info_level']}} | ||
| XIOS_PRINT_FILE = {{task_values['xios_print_file']}} | ||
| XIOS_PRINT_FILE = {{".TRUE." if task_values['xios_print_file'] else ".FALSE."}} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this is checking whether there is anything present for 'xios_print_file', I would also update the documentation to reflect this. Otherwise, it may lead to confusion when users try to set this to 'false' and it doesn't work.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks Oakley Brunt (@oakleybrunt) i've updated teh docs and defaults to use this as a Boolean and then this logic holds, i think returned to you for re-consideration
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that this needs to be thought about more carefully. The truthy value of a dictionary key containing a string of length >0 is True. I would suggest either updating the documentation to reflect the current logic (that any value for or Updating the docs to instruct users to use a suitable format for their values (e.g. I would recommend the second option since the first is not consistent with the majority of task options. But, the choice is yours, both are fine with me. |
||
| PAT_EXE_EXTEN = {{PAT_EXE_EXTEN}} | ||
| CORES_PER_NODE_OVERRIDE = {{task_values["task_ranks_per_node"]}} | ||
| RANKS_DEPTH_PAD = {{task_values["task_ranks_depth_pad"]}} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These docs give the impression that you can set this task option to False but this is not true.