Changeset 192 for trunk/src/civ.m


Ignore:
Timestamp:
Feb 14, 2011, 7:03:10 PM (13 years ago)
Author:
sommeria
Message:

civ: version working for all systems: windows, linux, mac
plots: introduction of axes limits , bug repairs (still further work needed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r188 r192  
    16721672        return
    16731673    end
    1674 else
    1675     if isunix
    1676         [xx,w]=unix('ps faux |grep civ|wc -l');
    1677         w(end)=[];
    1678         if str2double(w)+numel(num1_civ1)> 50
    1679             msgbox_uvmat('ERROR',{['There are already ' w ' civ processes running locally'];'Use BATCH or submit RUN later'})
    1680             return
    1681         end
    1682     end
     1674% else
     1675%     if isunix
     1676%         [xx,w]=unix('ps faux |grep civ|wc -l');
     1677%         w(end)=[];
     1678%         if str2double(w)+numel(num1_civ1)> 50
     1679%             msgbox_uvmat('ERROR',{['There are already ' w ' civ processes running locally'];'Use BATCH or submit RUN later'})
     1680%             return
     1681%         end
     1682%     end
    16831683end
    16841684
     
    22532253    fprintf(fid,super_cmd');
    22542254    fclose(fid);
    2255     if(isunix)
    2256         eval(['!. ' filename_superbat ' &']);
    2257     else
    2258         eval(['!' filename_superbat ' &']);
    2259     end
     2255%     if(isunix)
     2256        %system(['chmod +x ' filename_superbat])
     2257     system([filename_superbat ' &'])% execute main commmand
     2258%     else
     2259%         eval(['!' filename_superbat ' &']);
     2260%     end
    22602261end
    22612262
Note: See TracChangeset for help on using the changeset viewer.