Changeset 1005 for trunk


Ignore:
Timestamp:
Apr 3, 2017, 11:52:44 AM (7 years ago)
Author:
augier3pi
Message:

Add global time in case -m and background + solve bug launching.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r1004 r1005  
    19221922                            'source /etc/profile \n'...
    19231923                            'module load matlab/''' matlab_version ''' \n'...% CHOICE OF MATLAB VERSION
    1924                             'matlab -nodisplay -nosplash -nojvm -logfile ''' filelog_global ''' <<END_MATLAB \n'...
     1924                            'time_start=$(date +%%s)\n'...
     1925                            'matlab -nodisplay -nosplash -nojvm -logfile ''' filelog_global ''' <<END_MATLAB\n'...
    19251926                            'addpath(''' path_series '''); \n'...
    19261927                            'addpath(''' Param.Action.ActionPath '''); \n'];
     
    19281929                            cmd=[cmd '' Param.Action.ActionName  '( ''' filexml{iprocess} '''); \n'];
    19291930                        end
    1930                         cmd=[cmd  'exit \n' 'END_MATLAB \n'];
     1931                        cmd=[cmd  'exit \n' 'END_MATLAB\n'...
     1932                            'time_end=$(date +%%s)\n'...
     1933                            'echo "global time = " $(($time_end - $time_start)) >> ''' filelog_global '''\n'];
    19311934                        fprintf(fid,cmd); % fill the executable file with the  char string cmd
    1932                         fclose(fid); % close the executable file
     1935                        fclose(fid); % close the executable filefilelog_global
    19331936                        system(['chmod +x ' file_exe_global]); % set the file to executable
    19341937                    case {'PCWIN','PCWIN64'}
     
    19911994                    'source /etc/profile \n'...
    19921995                    'module load matlab/''' matlab_version ''' \n'...% CHOICE OF MATLAB VERSION
    1993                     'matlab -nodisplay -nosplash -nojvm -singleCompThread -logfile ''' filelog{iprocess} ''' <<END_MATLAB \n'...
     1996                    'matlab -nodisplay -nosplash -nojvm -singleCompThread -logfile ''' filelog{iprocess} ''' <<END_MATLAB\n'...
    19941997                    'addpath(''' path_series '''); \n'...
    19951998                    'addpath(''' Param.Action.ActionPath '''); \n'...
    19961999                    '' Param.Action.ActionName  '( ''' filexml{iprocess} '''); \n'...
    1997                     'exit \n'...
    1998                     'END_MATLAB \n'];
     2000                    'exit' '\n'...
     2001                    'END_MATLAB\n'];
    19992002            end
    20002003            fprintf(fid,cmd); % fill the executable file with the  char string cmd
Note: See TracChangeset for help on using the changeset viewer.