Changeset 219


Ignore:
Timestamp:
Mar 9, 2011, 10:52:02 PM (14 years ago)
Author:
sommeria
Message:

civ: put job_list.bat in executable mode (it was removed during tests with mac)
needed to do civ in run mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r192 r219  
    22532253    fprintf(fid,super_cmd');
    22542254    fclose(fid);
    2255 %     if(isunix)
    2256         %system(['chmod +x ' filename_superbat])
     2255     if(isunix)
     2256        system(['chmod +x ' filename_superbat])
     2257     end
    22572258     system([filename_superbat ' &'])% execute main commmand
    22582259%     else
     
    40824083%     ncName=fullfile(Rootbat,[ Filebat '.nc']);
    40834084    cmd_CIV1=[sparam.Civ1Bin ' -f ' filename '.cmx >' filename '.log' ]; % redirect standard output to the log file, the result file is named [filename '.nc'] by CIVx
    4084     cmd_CIV1=[cmd_CIV1 '\n' 'mv ' filename '.log' ' ' filename '.civ1.log' '\n' 'chmod g+w ' filename '.nc'];%rename .log as .civ1.log and set the netcdf result file for group user writting
     4085    cmd_CIV1=[cmd_CIV1 '\n' 'mv ' filename '.log' ' ' filename '.civ1.log' '\n' 'chmod g+w ' filename '.civ1.log' '\n' 'chmod g+w ' filename '.nc'];%rename .log as .civ1.log and set the netcdf result file for group user writting
    40854086    cmd_CIV1=[cmd_CIV1 '\n' 'mv ' filename '.cmx' ' ' filename '.civ1.cmx' '\n'];%rename .cmx as .civ1.cmx
    40864087else %Windows system
     
    46404641            option_str='not created';
    46414642        else
    4642             datfile=dir(civ_files{ifile})
     4643            datfile=dir(civ_files{ifile});
    46434644            if isfield(datfile,'datenum')
    46444645                datnum(ifile)=datfile.datenum;%only available in recent matlab versions
     
    46754676        Tabchar{ifile,1}=[fullfile([subdir extdir],filename) ext  '...' option_str];
    46764677    end
    4677     datnum=datnum(find(datnum));%keep the non zero values corresponding to existing files
     4678    datnum=datnum(datnum~=0);%keep the non zero values corresponding to existing files
    46784679    if isempty(datnum)
    46794680        if testrecent
     
    46834684        end
    46844685    else
    4685         datnum=datnum(find(datnum));%keep the non zero values corresponding to existing files
     4686        datnum=datnum(datnum~=0);%keep the non zero values corresponding to existing files
    46864687        [first,ind]=min(datnum);
    46874688        [last,indlast]=max(datnum);
Note: See TracChangeset for help on using the changeset viewer.