ESCOMP / ESCOMP/CTSM

`urbantv` initialization error in WRF-CTSM

Open
#1,824 1 comment 0 reactions 0 assignees View on GitHub
support
Dominant language
Fortran
Stars
352
Forks
361
Avg merge
6d 6h
Merged PRs (30d)
8

Description

### Brief summary of bug

In building WRF-CTSM, I found some error when we ran `wrf.exe`, due to the `urbantv` initialization in CTSM.

### General bug information

**CTSM version you are using:** ctsm5.1.dev069-7-g57175712e

**Does this bug cause significantly incorrect results in the model's science?** N/A

**Configurations affected:** WRF-CTSM

### Details of bug

The error log `rsl.error.00000`, generated from `wrf.exe`, indicated that the error occurred in CLM initialization.

`/WRF-CTSM/run/rsl.error.0000` :
```
taskid: 0 hostname: hec11
module_io_quilt_old.F 2931 F
Quilting with 1 groups of 0 I/O tasks.
Ntasks in X 1 , ntasks in Y 1
Domain # 1: dx = 9000.000 m
WRF V4.3.3 MODEL
git commit f10d917d5c98473ea9b33e59f3ee29813454bd01 1 file changed, 5 insertions(+), 3 deletions(-)
*************************************
Parent domain
ids,ide,jds,jde 1 70 1 90
ims,ime,jms,jme -4 75 -4 95
ips,ipe,jps,jpe 1 70 1 90
*************************************
DYNAMICS OPTION: Eulerian Mass Coordinate
alloc_space_field: domain 1 , 244051412 bytes allocated
med_initialdata_input: calling input_input
Input data is acceptable to use: wrfinput_d01
CURRENT DATE = 2015-06-01_12:00:00
SIMULATION START DATE = 2015-06-01_12:00:00
Timing for processing wrfinput file (stream 0) for domain 1: 6.00092 elapsed seconds
Max map factor in domain 1 = 0.94. Scale the dt in the model accordingly.
D01: Time step = 30.00000 (s)
D01: Grid Distance = 9.000000 (km)
D01: Grid Distance Ratio dt/dx = 3.333333 (s/km)
D01: Ratio Including Maximum Map Factor = 3.142002 (s/km)
D01: NML defined reasonable_time_step_ratio = 6.000000
INPUT LandUse = "MODIFIED_IGBP_MODIS_NOAH"
LANDUSE TYPE = "MODIFIED_IGBP_MODIS_NOAH" FOUND 41 CATEGORIES 2 SEASONS WATER CATEGORY = 17 SNOW CATEGORY = 15
CTSM start time: 2015 6 1 43200
forrtl: error (78): process killed (SIGTERM)
Image PC Routine Line Source
libpnetcdf.so.3.0 00002AB6F2DA280F for__signal_handl Unknown Unknown
libpthread-2.17.s 00002AB702AD66D0 Unknown Unknown Unknown
libesmf.so 00002AB6FC6EB220 _ZSt8_DestroyIPN5 123 stl_construct.h
libesmf.so 00002AB6FC6EB213 _ZSt8_DestroyIPN5 151 stl_construct.h
libesmf.so 00002AB6FC678D09 _ZNSt6vectorIN5ES 415 stl_vector.h
libesmf.so 00002AB6FC6DF93C _ZN5ESMCI2DD20Seq 12 sparseMatMulStoreLinSeqVect.h
libesmf.so 00002AB6FC6F61E4 _ZSt8_DestroyIN5E 93 stl_construct.h
libesmf.so 00002AB6FC67219A _ZNSt12_Destroy_a 103 stl_construct.h
libesmf.so 00002AB6FC6F61C7 _ZSt8_DestroyIPN5 126 stl_construct.h
libesmf.so 00002AB6FC6F620F _ZSt8_DestroyIPN5 151 stl_construct.h
libesmf.so 00002AB6FC683CD1 _ZNSt6vectorIN5ES 415 stl_vector.h
libesmf.so 00002AB6FC739A8B _ZN5ESMCI27sparse 2312 sparseMatMulStoreLinSeqVect.h
libesmf.so 00002AB6FC6B8E2E _ZN5ESMCI5Array18 9213 ESMCI_Array.C
libesmf.so 00002AB6FC6B675C _ZN5ESMCI5Array17 8683 ESMCI_Array.C
libesmf.so 00002AB6FC635226 c_esmc_arraysmmst 1068 ESMCI_Array_F.C
libesmf.so 00002AB6FCED0EF3 _Z19ESMCI_regrid_ 482 ESMCI_Mesh_Regrid_Glue.C
libesmf.so 00002AB6FCDEB6A6 _ZN5ESMCI7MeshCap 1577 ESMCI_MeshCap.C
libesmf.so 00002AB6FCF997F7 c_esmc_regrid_cre 92 ESMCI_Regrid_F.C
libesmf.so 00002AB6FE62F0EE esmf_regridmod_mp 349 ESMF_Regrid.F90
libesmf.so 00002AB6FDD7A88C esmf_fieldregridm 1185 ESMF_FieldRegrid.F90
wrf.exe 0000000003A1CA53 dshr_strdata_mod_ 561 dshr_strdata_mod.F90
wrf.exe 0000000003A1EAB7 dshr_strdata_mod_ 306 dshr_strdata_mod.F90
wrf.exe 00000000037FFA10 urbantimevartype_ 169 UrbanTimeVarType.F90
wrf.exe 00000000037FFE7B urbantimevartype_ 67 UrbanTimeVarType.F90
wrf.exe 0000000003184DBB clm_instmod_mp_cl 261 clm_instMod.F90
wrf.exe 000000000317FA00 clm_initializemod 365 clm_initializeMod.F90
wrf.exe 00000000031257AB lnd_comp_esmf_mp_ 356 lnd_comp_esmf.F90
libesmf.so 00002AB6FCAC539B _ZN5ESMCI6FTable1 2167 ESMCI_FTable.C
libesmf.so 00002AB6FCAC01AC ESMCI_FTableCallE 824 ESMCI_FTable.C
libesmf.so 00002AB6FD06FB3B _ZN5ESMCI3VMK5ent 2273 ESMCI_VMKernel.C
libesmf.so 00002AB6FD0905DE _ZN5ESMCI2VM5ente 1216 ESMCI_VM.C
libesmf.so 00002AB6FCAC092D c_esmc_ftablecall 981 ESMCI_FTable.C
libesmf.so 00002AB6FD7064EC esmf_compmod_mp_e 1222 ESMF_Comp.F90
libesmf.so 00002AB6FDE91684 esmf_gridcompmod_ 1407 ESMF_GridComp.F90
wrf.exe 000000000311C29C lilac_mod_mp_lila 422 lilac_mod.F90
wrf.exe 0000000002EC8E26 Unknown Unknown Unknown
wrf.exe 00000000026FA092 Unknown Unknown Unknown
wrf.exe 00000000026EBDC5 Unknown Unknown Unknown
wrf.exe 000000000207A360 Unknown Unknown Unknown
wrf.exe 0000000001B6EB91 Unknown Unknown Unknown
wrf.exe 000000000158B4FA Unknown Unknown Unknown
wrf.exe 00000000004196E6 Unknown Unknown Unknown
wrf.exe 00000000004184B5 Unknown Unknown Unknown
wrf.exe 000000000041845E Unknown Unknown Unknown
libc-2.17.so 00002AB702D05445 __libc_start_main Unknown Unknown
wrf.exe 0000000000418369 Unknown Unknown Unknown
wn Unknown Unknown
libc-2.17.so 00002B2A7F04D445 __libc_start_main Unknown Unknown
wrf.exe 0000000000418369 Unknown Unknown Unknown
Unknown Unknown Unknown
wrf.exe 00000000004184B5 Unknown Unknown Unknown
wrf.exe 000000000041845E Unknown Unknown Unknown
libc-2.17.so 00002B59CAC80445 __libc_start_main Unknown Unknown
wrf.exe 0000000000418369 Unknown Unknown Unknown
```

From the error log, in `lnd_comp_esmf.F90`,

`lnd_comp_esmf.F90` line 353-357:
```
!--------------------------------
! Finish initializing ctsm
!--------------------------------
call initialize2(ni,nj)
call ESMF_LogWrite(subname//"ctsm initialize2 done...", ESMF_LOGMSG_INFO)
```

In `clm_initializeMod.F90`,

`clm_initializeMod.F90` line 364-365:
```
! Initialize instances of all derived types as well as time constant variables
call clm_instInit(bounds_proc)
```

In `clm_instMod.F90`,

`clm_instMod.F90` line 260-261:
```
! Initialize urban time varying data
call urbantv_inst%Init(bounds, NLFilename)
```

So, from these processes. I found the error occurred due to this `urbantv` initialization.

It can be seen in error log at `UrbanTimeVarType.F90`,

`UrbanTimeVarType.F90` line 63-68:
```
! Allocate urbantv data structure

allocate(this%t_building_max(begl:endl)); this%t_building_max(:) = nan

call this%urbantv_init(bounds, NLFilename)
call this%urbantv_interp(bounds)
```
line 168-194:
```
! Initialize the cdeps data type this%sdat_urbantv
call shr_strdata_init_from_inline(this%sdat_urbantv, &
my_task = iam, &
logunit = iulog, &
compname = 'LND', &
model_clock = model_clock, &
model_mesh = mesh, &
stream_meshfile = trim(stream_meshfile_urbantv), &
stream_lev_dimname = 'null', &
stream_mapalgo = trim(urbantvmapalgo), &
stream_filenames = (/trim(stream_fldfilename_urbantv)/), &
stream_fldlistFile = stream_varnames(isturb_tbd:isturb_md),&
stream_fldListModel = stream_varnames(isturb_tbd:isturb_md),&
stream_yearFirst = stream_year_first_urbantv, &
stream_yearLast = stream_year_last_urbantv, &
stream_yearAlign = model_year_align_urbantv, &
stream_offset = 0, &
stream_taxmode = 'extend', &
stream_dtlimit = 1.0e30_r8, &
stream_tintalgo = urbantv_tintalgo, &
stream_name = 'Urban time varying data', &
rc = rc)
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=__FILE__)) then
call ESMF_Finalize(endflag=ESMF_END_ABORT)
end if

end subroutine urbantv_init
```

Also, in `dshr_strdata_mod.F90`.
`dshr_strdata_mod.F90` line 305-307:
```
! Now finish initializing sdat
call shr_strdata_init(sdat, model_clock, stream_name, rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return

```
line 561-567:
```
call ESMF_FieldReGridStore(sdat%pstrm(ns)%field_stream, lfield_dst, &
routehandle=sdat%pstrm(ns)%routehandle, &
regridmethod=ESMF_REGRIDMETHOD_NEAREST_STOD, &
dstMaskValues = (/0/), & ! ignore destination points where the mask is 0
srcMaskValues = (/0/), & ! ignore source points where the mask is 0
srcTermProcessing=srcTermProcessing_Value, ignoreDegenerate=.true., &
unmappedaction=ESMF_UNMAPPEDACTION_IGNORE, rc=rc)
```

These error logs show that an error occurs for `urbantv` as mentioned earlier, but I do not know exactly what causes the error occurs. So, I would like to ask what caused the error or if there is a potential solution that I can try.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.