Skip to content
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

cpu_clock_id: synchro_flag arg changed to logical #1535

Merged
merged 2 commits into from
Oct 26, 2021

Conversation

marshallward
Copy link
Collaborator

This patch modifies the cpu_clock_id interface so that the
synchro_flag argument is converted into a platform-agnostic logical
flag.

The current implementation requires the synchronization flag to be
defined using FMS norms (zero-bit) and also would force users to follow
FMS predefined flags for other values.

This patch changes the sync flag to a logical, and modifies the default
flag to enable synced clocks (based on clock_flag_default).

synchro_flag is also renamed to sync for simplicity.

@codecov
Copy link

codecov bot commented Oct 25, 2021

Codecov Report

Merging #1535 (5ffad6d) into dev/gfdl (9d0a92b) will increase coverage by 0.00%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff            @@
##           dev/gfdl    #1535   +/-   ##
=========================================
  Coverage     29.10%   29.10%           
=========================================
  Files           239      239           
  Lines         71524    71526    +2     
=========================================
+ Hits          20818    20820    +2     
  Misses        50706    50706           
Impacted Files Coverage Δ
config_src/infra/FMS1/MOM_cpu_clock_infra.F90 92.30% <83.33%> (+1.39%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d0a92b...5ffad6d. Read the comment docs.

Copy link
Collaborator

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the sense of these changes, although in the comment describing the new "sync" argument, "An flag" should be "A flag".

This patch modifies the `cpu_clock_id` interface so that the
`synchro_flag` argument is converted into a platform-agnostic logical
flag.

The current implementation requires the synchronization flag to be
defined using FMS norms (zero-bit) and also would force users to follow
FMS predefined flags for other values.

This patch changes the sync flag to a logical, and modifies the default
flag to enable synced clocks (based on `clock_flag_default`).

`synchro_flag` is also renamed to `sync` for simplicity.
@Hallberg-NOAA
Copy link
Collaborator

This PR passed the pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/13921.

@Hallberg-NOAA Hallberg-NOAA merged commit 9031683 into mom-ocean:dev/gfdl Oct 26, 2021
@marshallward marshallward deleted the sync_clock_flag branch March 8, 2022 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants