source: issm/trunk-jpl/test/NightlyRun/test418.m@ 15565

Last change on this file since 15565 was 15565, checked in by Mathieu Morlighem, 12 years ago

CHG: hutter-> SIA macayeal->SSA pattyn->HO stokes->FS

File size: 698 bytes
RevLine 
[12620]1%test partitioning, and partition averaging
[13670]2md=triangle(model(),'../Exp/Square.exp',30000.);
[12620]3md=setmask(md,'../Exp/SquareShelf.exp','');
4md=parameterize(md,'../Par/SquareSheetShelf.par');
[15565]5md=setflowequation(md,'SSA','all');
[12620]6md.cluster=generic('name',oshostname(),'np',3);
7
8%partitioning
9md.qmu.numberofpartitions=100;
10md=partitioner(md,'package','chaco','npart',md.qmu.numberofpartitions);
11md.qmu.partition=md.qmu.partition-1;
12
13vector=(1:1:md.mesh.numberofvertices)';
14vector_on_partition=AreaAverageOntoPartition(md,vector);
15vector_on_nodes=vector_on_partition(md.qmu.partition+1);
16
17field_names ={'vector_on_nodes'};
18field_tolerances={1e-11};
19field_values={...
20 vector_on_nodes,...
21 };
Note: See TracBrowser for help on using the repository browser.