-
Notifications
You must be signed in to change notification settings - Fork 77
release-noresm2.0.11: Capability to run the SST pacemaker experiments #737
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
Open
hra063
wants to merge
1
commit into
NorESMhub:noresm2
Choose a base branch
from
hra063:pacemaker
base: noresm2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
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
29 changes: 29 additions & 0 deletions
29
cime_config/usermods_dirs/n1850_SST_pacemaker_Kuroshio/Readme.md
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| **Important usage Notes** | ||
|
|
||
| External data format: | ||
|
|
||
| The external SST file and pcmask must match the model domain and resolution. | ||
|
|
||
| External SST file dimensions: (y, x, time) | ||
|
|
||
| Time Handling: | ||
|
|
||
| SST is applied at the current model timestep via the send buffer. Thus the time index (nstep_strm) should be aligned. (line 451 in ocn_comp_mct.F90) | ||
|
|
||
| Branch runs: | ||
|
|
||
| If starting from a specific model year (e.g., year 1320), the time index nstep_strm must account for prior simulation years. That is, | ||
|
|
||
| nstep_strm = int(time) - int(time0) - 481434 ! (corresponding to year 1319 * 365 - 1) | ||
|
|
||
| Hybrid runs: | ||
|
|
||
| No special alignment is required; the time index can be set relative to the model start | ||
|
|
||
| nstep_strm = int(time) - int(time0) - 1 | ||
|
|
||
| The current implementation hard-codes the time index for reading SST. We are trying to fix this with a dynamic approach that calculates the correct time index automatically, avoiding the need for hard-coded values. | ||
|
|
||
| Mask Replacement: | ||
|
|
||
| To run SST pacemaker experiments in a different region, provide a new mask file and update the pcmask variable. |
34 changes: 34 additions & 0 deletions
34
...config/usermods_dirs/n1850_SST_pacemaker_Kuroshio/SourceMods/src.blom/Readme.md
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| Small modifications were made to the BLOM source code to enable reading and initialization of the pacemaker mask variable (pcmask) from an external NetCDF file. | ||
| These updates allow BLOM to include region-specific SST forcing (overiding the BLOM SST) directly during grid initialization. | ||
|
|
||
| Files Modified: | ||
|
|
||
| 1. mod_grid.F90 | ||
|
|
||
| Added declaration of the new variable pcmask to the grid module. | ||
|
|
||
| Ensures the mask is initialized together with other grid variables in inivar_grid(). | ||
|
|
||
| 2. geoenv_file.F | ||
|
|
||
| Updated to read the pacemaker_mask variable from the pacemaker_mask.nc file. | ||
|
|
||
| Integrated pcmask loading alongside other grid fields. | ||
|
|
||
| Ensures the mask is available globally after grid initialization. | ||
|
|
||
| Description of pcmask: | ||
|
|
||
| Variable name: pcmask | ||
|
|
||
| Source file: pacemaker_mask.nc | ||
|
|
||
| The mask has 1.0 in the core of the pacemaker region to 0.0 at the edges of the region (smooth tapering). | ||
|
|
||
| Current configuration: | ||
|
|
||
| The mask is set for the Kuroshio region in the North Pacific. | ||
|
|
||
| Location of the file: | ||
|
|
||
| /cluster/work/users/hra063/So_t/pacemaker_mask.nc | ||
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 should be updated to point to its inputdata location.