File: tsgDeleteGridByName.m

package info (click to toggle)
tasmanian 8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,852 kB
  • sloc: cpp: 34,523; python: 7,039; f90: 5,080; makefile: 224; sh: 64; ansic: 8
file content (21 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function tsgDeleteGridByName(sGridName)
%
% tsgDeleteGridByName(sGridName)
%
% deletes all of the background files used by the grid with name sGridName,
% this function is to be used if the grid class lGrid has been lost
%
% NOTE: lGrid containing the sGridName can no longer be used
%
% INPUT:
%
% sGridName: the name of the grid to be deleted, i.e. the sGridName
%            parameter given to makeGrid(...)
%

lGrid.sName = sGridName;
tsgDeleteGrid(lGrid);
lGrid.sFilename = tsgMakeGridFilename(sGridName);
tsgDeleteGrid(lGrid);

end