Changeset 55 for trunk/src/civ.m


Ignore:
Timestamp:
Mar 17, 2010, 10:26:41 AM (14 years ago)
Author:
sommeria
Message:

-use of a single parameter file PARAM.xml (instead of PARAM_WIN and PARAM_LINUX).
-correction of a bug for opening an existing projection object
-manual editing of vectors made available with the builtin netcdf tool.
-bug fix for reading netcdf files with the builtin netcdf tool.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r54 r55  
    139139    patch_new_exe=sparam.PatchNew_exe;
    140140end
     141
     142if isfield(sparam,'SGE')
     143    sge=str2double(sparam.SGE);
     144end   
     145
     146test_batch=sge;%default
    141147if isfield(sparam,'Todo_path')
    142148    todo_path=sparam.Todo_path;
    143 end
    144 if isfield(sparam,'SGE')
    145     sge=str2num(sparam.SGE);
    146 end   
    147 name_todo=fullfile(todo_path,'TODO.txt');
    148 test_batch=1;
    149 if ~sge
    150     if isequal(todo_path,'') || isequal(todo_path,[])
    151         display(['no batch distributed processing available:file path TODO.txt not defined in UVMAT/PARAM.xml'])
    152         test_batch=0;
    153     end
    154     if exist(name_todo,'file')~=2
    155         msgbox_uvmat('WARNING',['no batch distributed processing available, queue file ' name_todo ' absent']);
    156       %  test_batch=0;  % Problems to detect file on linux/nfs filesystems
     149    name_todo=fullfile(todo_path,'TODO.txt');
     150    if exist(name_todo,'file')
     151        test_batch=1;
    157152    end
    158153end
Note: See TracChangeset for help on using the changeset viewer.