Changeset 426 for trunk/src/civ.m
- Timestamp:
- May 17, 2012, 10:58:49 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r421 r426 1177 1177 case 'Matlab' 1178 1178 if batch 1179 binary_list={'CivmBin'}; 1179 1180 % verifier MenuMatlab installe sur le cluster 1180 1181 % difficile a faire a priori … … 1607 1608 return 1608 1609 end 1609 text_matlabscript=[... 1610 '#!/bin/bash \n'... 1611 '. /etc/sysprofile \n'... 1612 'matlab -nodisplay -nosplash -nojvm <<END_MATLAB \n'... 1613 'cd(''' path_civ '''); \n'... 1614 'civ_matlab(''' filename_xml ''',''' OutputFile '.nc''); \n'... 1615 'exit \n'... 1616 'END_MATLAB \n']; 1617 fprintf(fid,text_matlabscript); 1610 % text_matlabscript=[... 1611 % '#!/bin/bash \n'... 1612 % '. /etc/sysprofile \n'... 1613 % 'matlab -nodisplay -nosplash -nojvm <<END_MATLAB \n'... 1614 % 'cd(''' path_civ '''); \n'... 1615 % 'civ_matlab(''' filename_xml ''',''' OutputFile '.nc''); \n'... 1616 % 'exit \n'... 1617 % 'END_MATLAB \n']; 1618 cmd=['#!/bin/bash \n '... 1619 '#$ -cwd \n '... 1620 'hostname && date \n '... 1621 'umask 002 \n'... 1622 Param.xml.CivmBin ' ' Param.xml.RunTime ' ' filename_xml ' ' OutputFile '.nc'];%allow writting access to created files for user group 1623 1624 fprintf(fid,cmd); 1618 1625 fclose(fid); 1619 1626 if isunix
Note: See TracChangeset
for help on using the changeset viewer.