File: tsgMakeFilenames.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 (36 lines) | stat: -rw-r--r-- 1,123 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
function [sFileG, sFileX, sFileV, sFileO, sFileW, sFileC, sFileL] = tsgMakeFilenames(lGrid)
%
% [sFileG, sFileX, sFileV, sFileO, sFileW, sFileC, sFileL] = tsgMakeFilenames(lGrid)
%
% given the paths from tsgGetPaths() it returns the filenames of all files associated with the name
%

[sFiles, sTasGrid] = tsgGetPaths();

if exist('getpid','builtin')
    id = getpid();
else
    id = feature('getpid');
end

if (isfield(lGrid, 'sFilename'))
    % new convention, the filename is stored into the lGrid object
    sFileG = lGrid.sFilename;
else
    % using the old naming convention
    sFileG = [sFiles, lGrid.sName,'_FileG']; % the filename to store the grid
end

sFileX = [sFiles, lGrid.sName,'.FileX',num2str(id)]; % file with points to evaluate the surrogate

sFileV = [sFiles, lGrid.sName,'.FileV']; % file with values to be loaded

sFileO = [sFiles, lGrid.sName,'.FileO',num2str(id)]; % file for output

sFileW = [sFiles, lGrid.sName,'.FileW']; % file with anisotropic weights

sFileC = [sFiles, lGrid.sName,'.FileC']; % file with the custom rule

sFileL = [sFiles, lGrid.sName,'.FileL']; % file with level limits

end