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

global_cycle fractional grid support #549

Closed
pjpegion opened this issue Jul 15, 2021 · 17 comments · Fixed by #815
Closed

global_cycle fractional grid support #549

pjpegion opened this issue Jul 15, 2021 · 17 comments · Fixed by #815
Assignees
Labels
enhancement New feature or request

Comments

@pjpegion
Copy link
Contributor

The coupled model is now using a fractional grid, but the data assimilation still needs to use global_cycle in order to bring in the land DA analysis increments. Global cycle needs to be updated to be consistent with the code in NCAR/ccpp-physics#695

@GeorgeGayno-NOAA
Copy link
Collaborator

Note, there is a related issue (#424) to ensure the CCPP physics and UFS_UTILS use the same version of sfcsub.F.

@edwardhartnett
Copy link
Collaborator

Let us consider how this will be tested...

@jswhit2
Copy link
Contributor

jswhit2 commented Jul 19, 2021

@GeorgeGayno-NOAA @arunchawla-NOAA this is important for coupled DA testing, right now it's blocking us from upgrading to P7b.

@GeorgeGayno-NOAA
Copy link
Collaborator

@yangfanglin @jswhit2 @pjpegion Where can I get sample surface restart files for a fractional grid case?

@GeorgeGayno-NOAA GeorgeGayno-NOAA self-assigned this Aug 18, 2021
@GeorgeGayno-NOAA
Copy link
Collaborator

@yangfanglin
Copy link
Contributor

George, please @bing.fu@noaa.gov Bing Fu for the restart files.

GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Aug 18, 2021
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Aug 19, 2021
only consider the case when 'frac_grid' is false.

Fixes ufs-community#549.
@GeorgeGayno-NOAA
Copy link
Collaborator

Updated the call to sfcsub.F for the new interface (see 6c98ecd). For now, just consider the non-fractional case. Ran a C768 test case on Hera: /scratch1/NCEPDEV/da/George.Gayno/ufs_utils.git/global_cycle_fraction/input_data. Only tile1 was run (S. America and Africa). The test failed in sfcsub.F in routine newice

 FATAL ERROR: inconsistency in slifcs or slianl.
  at lat=-34.9 lon=305.0 slifcs= 1.0 slimsk= 0.0 tsffcs=280.0 set to tsfanl=280.0
abort:

Note there is a mismatch in the two masks - slifcs and slimsk. The former is land and the latter is open water. Something is wrong.

@GeorgeGayno-NOAA
Copy link
Collaborator

Some diagnostics from the failed test:

Before the call to SFCCYCLE, the land mask variables for the problem point are all 'land':

 slmskl check    1.00000000000000
 slmskw check    1.00000000000000
 slifcs check    1.00000000000000
 slmask check    1.00000000000000

Then, this loop in sfcsub.F updates slianl from '1' to '0'

      do i=1,len
        if (sicanl(i) >= min_ice(i)) then
          slianl(i) = 2.0_kind_io8
        else
          slianl(i) = zero
          sicanl(i) = zero
        endif
      enddo

and this causes the crash in newice.

@GeorgeGayno-NOAA
Copy link
Collaborator

Asked @SMoorthi-emc for help. He thinks there may be a bug - the loop logic should only test points with slmskl /= 1:

@@ -2018,15 +2033,21 @@
 !     if(lprnt) print *,'tsfclm=',tsfclm(iprnt),' tsfcl2=',tsfcl2(iprnt)
 !    *,' tsffcs=',tsffcs(iprnt),' slianl=',slianl(iprnt)

+      print*,'before minice update slianl ',slianl(3073)
+
       do i=1,len
+       if(nint(slmskl(i)) /= 1) then
         if (sicanl(i) >= min_ice(i)) then
           slianl(i) = 2.0_kind_io8
         else
           slianl(i) = zero
           sicanl(i) = zero
         endif
+       endif
       enddo

When I made this change, my test ran to completion without any errors.

@GeorgeGayno-NOAA GeorgeGayno-NOAA added the enhancement New feature or request label Aug 20, 2021
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Aug 23, 2021
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Aug 27, 2021
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Aug 30, 2021
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Aug 30, 2021
Follow routine gcycle to prepare roughness length variable
for call to sfcsub.F

Fixes ufs-community#549
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Aug 31, 2021
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Sep 1, 2021
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Sep 2, 2021
albedo fields before and after call to sfccycle.

Fixes ufs-community#549.
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Sep 3, 2021
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 8, 2021
@GeorgeGayno-NOAA
Copy link
Collaborator

Sample restart files from @jiandewang are on Hera in the /scratch1/NCEPDEV/nems/emc.nemspara/RT/NEMSfv3gfs/develop-20220601/INTEL/cpld_bmark_p8/RESTART directory.

@GeorgeGayno-NOAA
Copy link
Collaborator

The 'feature/cycle_frac' branch is way out of date. I will create a new one for this issue.

@jswhit
Copy link

jswhit commented Aug 23, 2022

Thanks @GeorgeGayno-NOAA, we really need this to start cycling experiments with Prototype 8

GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 20, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 23, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 30, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Nov 20, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Nov 20, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Nov 20, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Nov 21, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Nov 21, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Nov 21, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Nov 28, 2023
logic so that it will work with either fractional or non-frac
grids. All regression tests passed.

Fixes ufs-community#549.
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Dec 28, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Dec 28, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 3, 2024
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 3, 2024
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 3, 2024
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 3, 2024
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 4, 2024
Required after the latest merge from develop.

Fixes ufs-community#549.
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 11, 2024
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 16, 2024
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 16, 2024
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 17, 2024
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 17, 2024
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 17, 2024
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 17, 2024
GeorgeGayno-NOAA pushed a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 18, 2024
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 19, 2024
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 19, 2024
GeorgeGayno-NOAA added a commit that referenced this issue Jan 19, 2024
Includes a new C48 regression test for this new capability.

Fixes #549.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants