0001 function md=loadresultsfromcluster(md,solutiontype)
0002
0003
0004
0005
0006
0007
0008 cielo_rc_location=which('cielo.rc');
0009
0010
0011 [codepath,executionpath]=ProcessParallelParametersFromCieloRc(md.cluster,cielo_rc_location);
0012
0013
0014
0015 [result,hostname]=system('hostname -s');hostname=hostname(1:end-1);
0016
0017
0018 if strcmpi(hostname,md.cluster),
0019 system(['cp ' executionpath '/' md.name '.*o* ./']);
0020 else
0021 system(['scp ' md.cluster ':' executionpath '/' md.name '.*o* ./']);
0022 end
0023
0024
0025 md.errlog=readfile([md.name '.errlog']);
0026 md.outlog=readfile([md.name '.outlog']);
0027
0028 if ~isempty(md.errlog),
0029 disp(['loadresultsfromcluster info message: error during solution. Check your errlog and outlog model fields']);
0030 end
0031
0032
0033 md=loadresultsfromdisk(md,[md.name '.outbin'],solutiontype);
0034
0035
0036 system(['rm -rf ' md.name '.outlog ' md.name '.errlog' md.name '.outbin']);