Changeset 895 for trunk/src/series.m
- Timestamp:
- May 20, 2015, 11:21:25 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r886 r895 1481 1481 [success,message]=copyfile(fullfile(path_series,'PARAM.xml.default'),xmlfile); 1482 1482 end 1483 RunTime='';1483 % RunTime=''; 1484 1484 if strcmp(ActionExt,'.sh') 1485 1485 if exist(xmlfile,'file') 1486 1486 s=xml2struct(xmlfile); 1487 1487 if strcmp(RunMode,'cluster_oar') && isfield(s,'BatchParam') 1488 if isfield(s.BatchParam,'RunTime')1489 RunTime=s.BatchParam.RunTime;1490 end1488 % if isfield(s.BatchParam,'RunTime') 1489 % RunTime=s.BatchParam.RunTime; 1490 % end 1491 1491 if isfield(s.BatchParam,'NbCore') 1492 1492 NbCore=s.BatchParam.NbCore; 1493 1493 end 1494 1494 elseif (strcmp(RunMode,'background')||strcmp(RunMode,'local')) && isfield(s,'RunParam') 1495 if isfield(s.RunParam,'RunTime')1496 RunTime=s.RunParam.RunTime;1497 end1495 % if isfield(s.RunParam,'RunTime') 1496 % RunTime=s.RunParam.RunTime; 1497 % end 1498 1498 if isfield(s.RunParam,'NbCore') 1499 1499 NbCore=s.RunParam.NbCore; … … 1501 1501 end 1502 1502 end 1503 if isempty(RunTime) && strcmp(RunMode,'cluster_oar')1504 errormsg='RunTime name not found in PARAM.xml, compiled version .sh cannot run on cluster';1505 return1506 end1503 % if isempty(RunTime) && strcmp(RunMode,'cluster_oar') 1504 % errormsg='RunTime name not found in PARAM.xml, compiled version .sh cannot run on cluster'; 1505 % return 1506 % end 1507 1507 end 1508 1508 … … 1515 1515 set(handles.series,'Pointer','watch') % set the mouse pointer to 'watch' 1516 1516 set(handles.ActionExt,'BackgroundColor',[1 1 0]) 1517 ActionFullName=fullfile(get(handles.ActionPath,'String'),[ActionName '.sh']); 1517 hver=ver('MATLAB'); 1518 MCRROOT=['MCRROOT' regexprep(hver.Version,'\.','')];%suppress the dot in version number 1519 RunTime = getenv(MCRROOT); 1520 ActionNameVersion=[ActionName '_' MCRROOT]; 1521 ActionFullName=fullfile(get(handles.ActionPath,'String'),[ActionNameVersion '.sh']); 1518 1522 if ~exist(ActionFullName,'file') 1519 1523 answer=msgbox_uvmat('INPUT_Y-N','compiled version has not been created: compile now?'); … … 1531 1535 end 1532 1536 else 1533 sh_file_info=dir(fullfile(get(handles.ActionPath,'String'),[ActionName '.sh']));1537 sh_file_info=dir(fullfile(get(handles.ActionPath,'String'),[ActionNameVersion '.sh'])); 1534 1538 m_file_info=dir(fullfile(get(handles.ActionPath,'String'),[ActionName '.m'])); 1535 1539 if isfield(m_file_info,'datenum') && m_file_info.datenum>sh_file_info.datenum 1536 1540 set(handles.ActionExt,'BackgroundColor',[1 1 0]) 1537 1541 drawnow 1538 answer=msgbox_uvmat('INPUT_Y-N',[ActionName '.sh needs to be updated: recompile now?']);1542 answer=msgbox_uvmat('INPUT_Y-N',[ActionNameVersion '.sh needs to be updated: recompile now?']); 1539 1543 if strcmp(answer,'Yes') 1540 1544 path_uvmat=fileparts(which('series'));
Note: See TracChangeset
for help on using the changeset viewer.