- Timestamp:
- Apr 3, 2017, 11:52:44 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r1004 r1005 1922 1922 'source /etc/profile \n'... 1923 1923 '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'... 1925 1926 'addpath(''' path_series '''); \n'... 1926 1927 'addpath(''' Param.Action.ActionPath '''); \n']; … … 1928 1929 cmd=[cmd '' Param.Action.ActionName '( ''' filexml{iprocess} '''); \n']; 1929 1930 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']; 1931 1934 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 1933 1936 system(['chmod +x ' file_exe_global]); % set the file to executable 1934 1937 case {'PCWIN','PCWIN64'} … … 1991 1994 'source /etc/profile \n'... 1992 1995 'module load matlab/''' matlab_version ''' \n'...% CHOICE OF MATLAB VERSION 1993 'matlab -nodisplay -nosplash -nojvm -singleCompThread -logfile ''' filelog{iprocess} ''' <<END_MATLAB 1996 'matlab -nodisplay -nosplash -nojvm -singleCompThread -logfile ''' filelog{iprocess} ''' <<END_MATLAB\n'... 1994 1997 'addpath(''' path_series '''); \n'... 1995 1998 'addpath(''' Param.Action.ActionPath '''); \n'... 1996 1999 '' Param.Action.ActionName '( ''' filexml{iprocess} '''); \n'... 1997 'exit 1998 'END_MATLAB 2000 'exit' '\n'... 2001 'END_MATLAB\n']; 1999 2002 end 2000 2003 fprintf(fid,cmd); % fill the executable file with the char string cmd
Note: See TracChangeset
for help on using the changeset viewer.