0001 function [nproc] = nproc_dke_yp(display_mode,param,dkepath);
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 [status,message_proc] = unix('uname -p');
0019 [status,message_net] = unix('uname -n');
0020
0021 if status == 0,
0022 if (strfind(message_proc,'i386')>0 & strfind(message_net,'macpro')>0) | strfind(message_proc,'unknown'),
0023 nproc = nproc_macpro_YVES(display_mode,param,dkepath);
0024 elseif (strfind(message_proc,'i386')>0 & strfind(message_net,'macbookyves')>0) | strfind(message_proc,'unknown'),
0025 nproc = nproc_macbook_YVES(display_mode,param,dkepath);
0026 elseif strfind(message_proc,'x86_64')>0 & strfind(message_net,'andromede')>0,
0027 nproc = nproc_andromede_CEA_IRFM(display_mode,param,dkepath);
0028 elseif strfind(message_proc,'x86_64')>0 & strfind(message_net,'nucyves')>0,
0029 nproc = nproc_nucaix_YVES(display_mode,param,dkepath);
0030 elseif strfind(message_proc,'Intel')>0,
0031 nproc = 1;
0032 elseif strfind(message_proc,'YOUR_PROCESSOR_NAME')>0 & strfind(message_net,'YOUR_COMPUTER')>0,
0033 error('Your computer is not recognized by PETSc_Cloop_dke_ft.m. Please open the file and add the parameters of your environment !')
0034
0035 else
0036 error('Your computer is not recognized by PETSc_Cloop_dke_ft.m. Please open the file and add the parameters of your environment !')
0037 end
0038 else
0039 error('This matrix solver cannot run on your computer which is not a Unix system. Sorry !');
0040 end
0041
0042
0043