Last change
on this file since 25920 was 25920, checked in by jdquinn, 4 years ago |
BUG: Correcting assignment of output from partitioner
|
File size:
714 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 | npart=100;
|
---|
11 | [partition,md]=partitioner(md,'package','chaco','npart',npart);
|
---|
12 | partition=partition-1;
|
---|
13 |
|
---|
14 | vector=(1:1:md.mesh.numberofvertices)';
|
---|
15 | vector_on_partition=AreaAverageOntoPartition(md,vector,partition);
|
---|
16 | vector_on_nodes=vector_on_partition(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.