Go to the source code of this file.
◆ gdmemvarattradd()
subroutine gdmemvarattradd |
( |
type(gd_mem_variable), intent(in) |
var, |
|
|
character(*), intent(in) |
attrname, |
|
|
character(*), intent(in) |
attrval |
|
) |
| |
Definition at line 2 of file gdmemvarattradd.f90.
4 use netcdf
, only: nf90_noerr, nf90_enotatt
6 character(*),
intent(in):: attrname
7 character(*),
intent(in):: attrval
13 if (stat == nf90_noerr)
then 14 if (
associated(ent%current))
then 15 if (ent%current%name == attrname)
then 22 if (.not.
associated(p))
exit 23 if (p%name == attrname)
goto 100
33 if (
associated(p%cbuf))
then 38 allocate(p%cbuf(len(attrval)))
39 do, i = 1, len(attrval)
40 p%cbuf(i) = attrval(i:i)