7 use netcdf, only: nf90_noerr, nf90_del_att, nf90_global, nf90_enotindefine
10 implicit none
11 type(GD_NC_VARIABLE), intent(in):: var
12 character(len = *), intent(in):: name
13 logical, intent(out), optional:: err
14 type(GD_NC_VARIABLE_ENTRY):: ent
15 integer:: stat
16continue
18 if (stat /= nf90_noerr) goto 999
19 stat = nf90_del_att(ent%fileid, ent%varid, name=name)
20 if (stat == 0) goto 999
21 if (stat /= nf90_enotindefine) goto 999
23 if (stat /= nf90_noerr) goto 999
25 stat = nf90_del_att(ent%fileid, nf90_global, name=name(2:))
26 else
27 stat = nf90_del_att(ent%fileid, ent%varid, name=name)
28 endif
29
30999 continue
31 call storeerror(stat,
'GDNcVarPutAttrChar', err)
subroutine, public storeerror(number, where, err, cause_c, cause_i)
character, parameter, public gt_plus
integer function, public vtable_lookup(var, entry)