Skip to content

init_atmosphere crashed when trying to generating L60 conus12km init.nc from RRFSv1 #198

@guoqing-noaa

Description

@guoqing-noaa

My init_atmosphere crashed when trying to generating init.nc for conus12km L60 from RRFSv1 grib2 products.
Here is the crash message:

----------------------------------------------------------------------
Beginning MPAS-init_atmosphere Error Log File for task      79 of     160
    Opened at 2025/12/05 09:23:56
----------------------------------------------------------------------

ERROR: extrap_type == 2 not implemented for target_z >= zf(1,nz)
ERROR: *****************************************************************
ERROR: Error in interpolation of t(k,iCell) for k=  34, iCell=         1
CRITICAL ERROR: *****************************************************************
Logging complete.  Closing file at 2025/12/05 09:23:56

Her is my rundir:
/scratch3/BMC/wrfruc/gge/rrfs2/regressionTests/rrfs12km/stmp/20251119/rrfs_ic_00_v2.1.2/det.crash/ic_00

I checked the related code snippet in mpas_init_atm_cases.F:

 9734       if (target_z >= zf(1,nz)) then
 9735          call mpas_log_write('bad z target $r zf top $r zf top-1 $r',realArgs=(/target_z,zf(1,nz),zf(1,nz-1)/))
 9736          if (extrap_type == 0) then
 9737             vertical_interp = zf(2,nz)
 9738          else if (extrap_type == 1) then
 9739             slope = (zf(2,nz) - zf(2,nz-1)) / (zf(1,nz) - zf(1,nz-1))
 9740             vertical_interp = zf(2,nz) + slope * (target_z - zf(1,nz))
 9741          else if (extrap_type == 2) then
 9742              call mpas_log_write('extrap_type == 2 not implemented for target_z >= zf(1,nz)', messageType=MPAS_LOG_ERR)
 9743              if (present(ierr)) ierr = 1
 9744              return
 9745          end if
 9746          return
 9747       end if

It looks like I should found the message bad z target... somewhere. It is odd that I cannot find this line in any output files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions