Changeset 24293
- Timestamp:
- 10/30/19 09:55:23 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/parameterization/setflowequation.py
r24290 r24293 92 92 #First modify FSflag to get rid of elements contrained everywhere (spc + border with HO or SSA) 93 93 if any(FSflag): 94 fullspcnodes = np.logical_or(~np.isnan(md.stressbalance.spcvx) + ~np.isnan(md.stressbalance.spcvy) + ~np.isnan(md.stressbalance.spcvz) == 3, np.logical_and(nodeonHO, nodeonFS)) #find all the nodes on the boundary of the domain without icefront94 fullspcnodes = np.logical_or(~np.isnan(md.stressbalance.spcvx) & ~np.isnan(md.stressbalance.spcvy) & ~np.isnan(md.stressbalance.spcvz), np.logical_and(nodeonHO, nodeonFS)) #find all the nodes on the boundary of the domain without icefront 95 95 fullspcelems = np.sum(fullspcnodes[md.mesh.elements - 1], axis=1) == 6 #find all the nodes on the boundary of the domain without icefront 96 96 FSflag[np.where(fullspcelems.reshape(-1))] = False
Note:
See TracChangeset
for help on using the changeset viewer.