1 function details = strong_test()
2 %sets up directories for strong scaling test
6 cores(i) = (2*i -1)*54;
11 wall_time(i) = ceil(24/(nodes(i)*.5));
12 wall{i} = sprintf('%02d:00:00',wall_time(i))
21 direct(i) = {[pwd,'/ff_sfc_strong_',num2str(i,'%04d')]};
23 %mkdir_print = sprintf('mkdir %s',direct{i});
24 core_print = sprintf('sed -i "s/CORE_TARGET/%s/g" run_wrf_small_frontera.template',num2str(cores(i)));
25 node_print = sprintf('sed -i "s/NODES_TARGET/%s/g" run_wrf_small_frontera.template',num2str(nodes(i)))
26 wall_print = sprintf('sed -i "s/WALL_TARGET/%s/g" run_wrf_small_frontera.template',num2str(wall{i}))
27 queue_print = sprintf('sed -i "s/QUEUE_TARGET/%s/g" run_wrf_small_frontera.template',queue{i})
28 cp_print = sprintf('cp -a ../fireflux_sfc_strong_base %s',direct{i});
32 %change submission script
38 system('cp run_wrf_small_frontera.template run_wrf_small_frontera')
53 details.direct = direct';
54 details.cores = cores';
55 details.nodes = nodes';
57 details.wall_time = wall_time';
59 save details.mat details