Changeset 25132


Ignore:
Timestamp:
06/24/20 10:00:41 (5 years ago)
Author:
jdquinn
Message:

CHG: Adapatation of partitioner.

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/partition/partitioner.py

    r25015 r25132  
    131131
    132132    # Output
    133     return part
     133    return part, md
  • issm/trunk-jpl/test/NightlyRun/test418.py

    r25047 r25132  
    22# this test may crash
    33import numpy as np
     4
     5from AreaAverageOntoPartition import *
    46from model import *
     7from parameterize import *
     8from partitioner import *
     9from setflowequation import *
     10from setmask import *
    511from socket import gethostname
     12from solve import *
    613from triangle import *
    7 from setmask import *
    8 from parameterize import *
    9 from setflowequation import *
    10 from solve import *
    11 from partitioner import *
    12 from AreaAverageOntoPartition import *
     14
    1315
    1416#test partitioning, and partition averaging
    1517# python cannot handle resolutions greater than 30010
    1618md = triangle(model(), '../Exp/Square.exp', 30000.)
    17 #print md.mesh.numberofvertices
    1819md = setmask(md, '../Exp/SquareShelf.exp', '')
    1920md = parameterize(md, '../Par/SquareSheetShelf.py')
     
    3637# - Run valgrind and fix the above
    3738#
    38 partition = partitioner(md, 'package', 'chaco', 'npart', npart) - 1
     39partition, md = partitioner(md, 'package', 'chaco', 'npart', npart) - 1
    3940
    4041vector = np.arange(1, 1 + md.mesh.numberofvertices, 1).reshape(-1, 1)
Note: See TracChangeset for help on using the changeset viewer.