3 % flatpak run org.octave.Octave <filename>
5 % octave --no-window-system --no-gui -qf <filename>
11 function visualize_par_results(nprocs)
16 fprintf('# procs = %d\n
',nprocs)
27 fname = [pre,num2str(rank,'%2
u'),post];
28 [lxc,lia,lv] = ascii_read_meshvector(fname);
30 nnodes = [nnodes size(lxc,1)];
31 nelems = [nelems size(lia,1)];
35 ia = [ia; lia+node_offset];
37 % lia = lia + node_offset
39 % index offsets for next subdomain
40 node_offset = node_offset + nnodes(end);
41 elem_offset = elem_offset + nelems(end);
45 % [xc,ia,v] = ascii_read_meshvector(fname);
47 h = trisurf(ia, xc(:,1), xc(:,2), v);
48 xlabel('x
'),ylabel('y
'),zlabel('z
')
52 waitfor(h) % wait for closing the figure