Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/opsinputs/opsinputs_cxwriter_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,8 @@ subroutine opsinputs_cxwriter_addrequiredgeovars(self, geovars)
character(len=max_varname_length) :: GeoVarName
integer :: DustBinIndex
character :: DustBinIndexStr
character(len=80) :: ErrorMessage
character(len=*), parameter :: RoutineName = "opsinputs_cxwriter_addrequiredgeovars"

! Body:
call Ops_ReadCXControlNL(self % obsgroup, CxFields, BGECall = .false._8, ops_call = .false._8)
Expand Down Expand Up @@ -773,6 +775,10 @@ subroutine opsinputs_cxwriter_addrequiredgeovars(self, geovars)
write (DustBinIndexStr, '(i1)') DustBinIndex
GeoVarName = opsinputs_cxfields_dustp_start // DustBinIndexStr // opsinputs_cxfields_dustp_end
end if
case default
write (ErrorMessage, '("Stash code not recognized: ",I0)') CxField
call gen_warn(RoutineName, ErrorMessage)
continue

end select

Expand Down Expand Up @@ -1271,6 +1277,10 @@ subroutine opsinputs_cxwriter_populatecx(self, ReportFlags, Cx)
opsinputs_cxfields_dustp_start // DustBinIndexStr // opsinputs_cxfields_dustp_end, &
self % JediToOpsLayoutMapping, self % hofx, self % varnames)
end if
case default
write (ErrorMessage, '("Stash code not recognized: ",I0)') CxField
call gen_warn(RoutineName, ErrorMessage)
continue
end select
end do
end subroutine opsinputs_cxwriter_populatecx
Expand Down
6 changes: 6 additions & 0 deletions src/opsinputs/opsinputs_varobswriter_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,8 @@ subroutine opsinputs_varobswriter_addrequiredgeovars(self, geovars)
! Local declarations:
integer(integer64) :: VarFields(ActualMaxVarfield)
integer :: i
character(len=80) :: ErrorMessage
character(len=*), parameter :: RoutineName = "opsinputs_varobswriter_addrequiredgeovars"

! Body:
call Ops_ReadVarobsControlNL(self % obsgroup, VarFields)
Expand All @@ -616,6 +618,10 @@ subroutine opsinputs_varobswriter_addrequiredgeovars(self, geovars)
! TODO(someone): "land_type_index" may not be the right geoval to use. If it isn't, change it
! here and in opsinputs_varobswriter_populateobservations.
call geovars % push_back("land_type_index")
case default
write (ErrorMessage, '("Varfield not recognized: ",I0)') VarFields(i)
call gen_warn(RoutineName, ErrorMessage)
continue
end select
end do

Expand Down