-
Notifications
You must be signed in to change notification settings - Fork 138
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
Modern_diag_manager:: 0 days freq, mix_snapshot_average_fields deprecation #1500
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
f1a35ea
implement the 0days freq capability in the modern diag manager
uramirez8707 04017b3
remove unwanted change
uramirez8707 eafee57
move and fix the logic that determines if a file has fields that are …
uramirez8707 8f4c771
Fix line count limit
uramirez8707 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -807,6 +807,7 @@ subroutine fms_diag_do_io(this, end_time) | |
real(r8_kind) :: mval !< r8 copy of missing value | ||
character(len=128) :: error_string !< outputted error string from reducti | ||
logical :: unlim_dim_was_increased !< .True. if the unlimited dimension index was increased for any of the buffers | ||
logical :: do_not_write !< .True. only if this is not a new time step and you are writting at every time step | ||
|
||
force_write = .false. | ||
|
||
|
@@ -836,7 +837,7 @@ subroutine fms_diag_do_io(this, end_time) | |
call diag_file%write_axis_data(this%diag_axis) | ||
endif | ||
|
||
finish_writing = diag_file%is_time_to_write(model_time, this%FMS_diag_output_buffers) | ||
finish_writing = diag_file%is_time_to_write(model_time, this%FMS_diag_output_buffers, do_not_write) | ||
unlim_dim_was_increased = .false. | ||
|
||
! finish reduction method if its time to write | ||
|
@@ -850,7 +851,7 @@ subroutine fms_diag_do_io(this, end_time) | |
! Go away if there is no data to write | ||
if (.not. diag_buff%is_there_data_to_write()) cycle | ||
|
||
if ( diag_buff%is_time_to_finish_reduction(end_time)) then | ||
if ( diag_buff%is_time_to_finish_reduction(end_time) .and. .not. do_not_write) then | ||
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. ahhh a double negative |
||
! sets missing value | ||
mval = diag_field%find_missing_value(missing_val) | ||
! time_average and greater values all involve averaging so need to be "finished" before written | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this is getting flagged by the linter since its over the character limit