/FiniteElasticity/CylinderInflation/expected_results/scaling/scaleplot.m

http://github.com/xyan075/examples · Objective C · 16 lines · 14 code · 2 blank · 0 comment · 0 complexity · 7e997f953948e026cf4dfa1bee824d4e MD5 · raw file

  1. %% scaling
  2. % Generated on a single proc, 8-core shared memory machine
  3. % using direct solver (MUMPS)
  4. p=[1 2 4 8];
  5. t1=[426.474 250.853 146.534 92.884];
  6. t2=[13*60+2.66 7*60+24.76 4*60+5.886 2*60+19.3];
  7. t3=[26*60+32.3 14*60+44.899 8*60+30.869 4*60+44.726];
  8. ratio1=t1(1)./t1;
  9. ratio2=t2(1)./t2;
  10. ratio3=t3(1)./t3;
  11. plot(p,ratio1,'.-',p,ratio2,'rx-',p,ratio3,'kd-');
  12. legend('DOF=6144','DOF=12288','DOF=19968','location','northwest');
  13. xlabel('number of processors');
  14. ylabel('speedup');