414
415
416
417
418
419
420
424 implicit none
425 type(GT_HISTORY), intent(in):: history
426 character(len = *), intent(in):: name
427 type(GT_VARIABLE), intent(out):: var
428 logical, intent(out):: err
429 integer:: stat, ord
430 character(STRING) :: cause_c
431 character(len = *), parameter:: subname = 'lookup_var_or_dim'
432 continue
433 call beginsub(subname,
'name=<%c>', c1=trim(name))
434 cause_c = ""
436 var = lookup_variable(history, name, ord)
437 if (ord /= 0) then
439 goto 999
440 endif
441 var = lookup_dimension(history, name, ord)
442 if (ord /= 0) then
444 goto 999
445 endif
446 stat = nf90_enotvar
447 cause_c = "Any vars and dims are not found"
448999 continue
450 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