Last change
on this file since 24174 was 24174, checked in by schlegel, 5 years ago |
CHG: fixed tests to deal with different partitioning schemes for epartition and vpartition
|
File size:
755 bytes
|
Line | |
---|
1 | %Test Name: SquareSheetShelfDiadSSA3dDakotaAreaAverage
|
---|
2 | %test partitioning, and partition averaging
|
---|
3 | md=triangle(model(),'../Exp/Square.exp',30000.);
|
---|
4 | md=setmask(md,'../Exp/SquareShelf.exp','');
|
---|
5 | md=parameterize(md,'../Par/SquareSheetShelf.par');
|
---|
6 | md=setflowequation(md,'SSA','all');
|
---|
7 | md.cluster=generic('name',oshostname(),'np',3);
|
---|
8 |
|
---|
9 | %partitioning
|
---|
10 | md.qmu.numberofpartitions=100;
|
---|
11 | md=partitioner(md,'package','chaco','npart',md.qmu.numberofpartitions);
|
---|
12 | md.qmu.vpartition=md.qmu.vpartition-1;
|
---|
13 |
|
---|
14 | vector=(1:1:md.mesh.numberofvertices)';
|
---|
15 | vector_on_partition=AreaAverageOntoPartition(md,vector);
|
---|
16 | vector_on_nodes=vector_on_partition(md.qmu.partition+1);
|
---|
17 |
|
---|
18 | field_names ={'vector_on_nodes'};
|
---|
19 | field_tolerances={1e-11};
|
---|
20 | field_values={...
|
---|
21 | vector_on_nodes,...
|
---|
22 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.