source: issm/trunk-jpl/src/m/qmu/qmupart2npart.py@ 25011

Last change on this file since 25011 was 25011, checked in by jdquinn, 5 years ago

CHG: Partial commit of changes to Python Dakota interface; cleanup

File size: 188 bytes
Line 
1import numpy as np
2
3
4def qmupart2npart(vector):
5 # Vector is full of -1 (no partition) and 0 to npart. We need to identify
6 # npart.
7
8 npart = vector.max() + 1
9
10 return npart
Note: See TracBrowser for help on using the repository browser.