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
|
Rev | Line | |
---|
[19049] | 1 | %Test Name: SquareSheetShelfDiadSSA3dDakotaAreaAverage
|
---|
[12620] | 2 | %test partitioning, and partition averaging
|
---|
[13670] | 3 | md=triangle(model(),'../Exp/Square.exp',30000.);
|
---|
[12620] | 4 | md=setmask(md,'../Exp/SquareShelf.exp','');
|
---|
| 5 | md=parameterize(md,'../Par/SquareSheetShelf.par');
|
---|
[15565] | 6 | md=setflowequation(md,'SSA','all');
|
---|
[12620] | 7 | md.cluster=generic('name',oshostname(),'np',3);
|
---|
| 8 |
|
---|
| 9 | %partitioning
|
---|
[25005] | 10 | npart=100;
|
---|
[25920] | 11 | [partition,md]=partitioner(md,'package','chaco','npart',npart);
|
---|
| 12 | partition=partition-1;
|
---|
[12620] | 13 |
|
---|
| 14 | vector=(1:1:md.mesh.numberofvertices)';
|
---|
[25005] | 15 | vector_on_partition=AreaAverageOntoPartition(md,vector,partition);
|
---|
| 16 | vector_on_nodes=vector_on_partition(partition+1);
|
---|
[12620] | 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.