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

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

CHG: cosmetics on matlab file (model -> model())

File size: 702 bytes
Line 
1%test partitioning, and partition averaging
2md=triangle(model(),'../Exp/Square.exp',30000);
3md=setmask(md,'../Exp/SquareShelf.exp','');
4md=parameterize(md,'../Par/SquareSheetShelf.par');
5md=setflowequation(md,'macayeal','all');
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.