407
408
409
410
411
412
413
417 implicit none
418 type(GT_HISTORY), intent(in):: history
419 character(len = *), intent(in):: name
420 type(GT_VARIABLE), intent(out):: var
421 logical, intent(out):: err
422 integer:: stat, ord
423 character(STRING) :: cause_c
424 character(len = *), parameter:: subname = 'lookup_var_or_dim'
425 continue
426 call beginsub(subname,
'name=<%c>', c1=trim(name))
427 cause_c = ""
429 var = lookup_variable(history, name, ord)
430 if (ord /= 0) then
432 goto 999
433 endif
434 var = lookup_dimension(history, name, ord)
435 if (ord /= 0) then
437 goto 999
438 endif
439 stat = nf90_enotvar
440 cause_c = "Any vars and dims are not found"
441999 continue
443 call endsub(subname,
'ord=%d (0:not found)', i=(/ord/))
subroutine, public storeerror(number, where, err, cause_c, cause_i)
integer, parameter, public dc_noerr
Error storage variables
subroutine, public dbgmessage(fmt, i, r, d, l, n, c1, c2, c3, ca)
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
Provides kind type parameter values.
integer, parameter, public string
Character length for string