Go to the source code of this file.
◆ gdmemvarattrget()
subroutine gdmemvarattrget |
( |
type(gd_mem_variable), intent(in) |
var, |
|
|
character(len = *), intent(in) |
name, |
|
|
character(len = *), intent(out) |
value, |
|
|
logical, intent(out), optional |
err |
|
) |
| |
Definition at line 2 of file gdmemvarattrget.f90.
References dc_error::storeerror().
5 use netcdf
, only: nf90_enotatt, nf90_noerr
7 character(len = *),
intent(in):: name
8 character(len = *),
intent(out):: value
9 logical,
intent(out),
optional:: err
14 if (stat == nf90_noerr)
then 15 if (
associated(ent%current))
then 17 if (p%name == name)
goto 100
21 if (.not.
associated(p))
exit 22 if (p%name == name)
goto 100
27 call storeerror(stat,
"GDMemVarAttrGet", err, cause_c=name)
31 if (
associated(p%cbuf))
then 33 value(i:i) = p%cbuf(i)
subroutine, public storeerror(number, where, err, cause_c, cause_i)