Changeset 14212
- Timestamp:
- 01/07/13 10:30:35 (12 years ago)
- Location:
- issm/trunk-jpl/test/NightlyRun
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test1101.py
r14134 r14212 9 9 from solve import * 10 10 from MatlabFuncs import * 11 from PythonFuncs import * 11 12 12 13 """ … … 46 47 posx2=numpy.nonzero(md.mesh.x==numpy.max(md.mesh.x))[0] 47 48 48 posy=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==0.,md.mesh.x!=0.),md.mesh.x!=numpy.max(md.mesh.x)))[0] #Don't take the same nodes two times49 posy2=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==numpy.max(md.mesh.y),md.mesh.x!=0.),md.mesh.x!=numpy.max(md.mesh.x)))[0]49 posy=numpy.nonzero(logical_and_n(md.mesh.y==0.,md.mesh.x!=0.,md.mesh.x!=numpy.max(md.mesh.x)))[0] #Don't take the same nodes two times 50 posy2=numpy.nonzero(logical_and_n(md.mesh.y==numpy.max(md.mesh.y),md.mesh.x!=0.,md.mesh.x!=numpy.max(md.mesh.x)))[0] 50 51 51 52 md.diagnostic.vertex_pairing=numpy.vstack((numpy.hstack((posx.reshape(-1,1)+1,posx2.reshape(-1,1)+1)),numpy.hstack((posy.reshape(-1,1)+1,posy2.reshape(-1,1)+1)))) -
issm/trunk-jpl/test/NightlyRun/test1102.py
r14134 r14212 9 9 from solve import * 10 10 from MatlabFuncs import * 11 from PythonFuncs import * 11 12 12 13 """ … … 49 50 # posx=numpy.nonzero(md.mesh.x==0.)[0] 50 51 # posx2=numpy.nonzero(md.mesh.x==numpy.max(md.mesh.x))[0] 51 # posx=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.x==0.,md.mesh.y!=0.),numpy.logical_and(md.mesh.y!=numpy.max(md.mesh.y),numpy.logical_not(md.mesh.vertexonbed))))[0]52 # posx2=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.x==numpy.max(md.mesh.x),md.mesh.y!=0.),numpy.logical_and(md.mesh.y!=numpy.max(md.mesh.y),numpy.logical_not(md.mesh.vertexonbed))))[0]52 # posx=numpy.nonzero(logical_and_n(md.mesh.x==0.,md.mesh.y!=0.,md.mesh.y!=numpy.max(md.mesh.y),numpy.logical_not(md.mesh.vertexonbed)))[0] 53 # posx2=numpy.nonzero(logical_and_n(md.mesh.x==numpy.max(md.mesh.x),md.mesh.y!=0.,md.mesh.y!=numpy.max(md.mesh.y),numpy.logical_not(md.mesh.vertexonbed)))[0] 53 54 54 # posy=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==0.,md.mesh.x!=0.),numpy.logical_and(md.mesh.x!=numpy.max(md.mesh.x),numpy.logical_not(md.mesh.vertexonbed))))[0] #Don't take the same nodes two times55 # posy2=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==numpy.max(md.mesh.y),md.mesh.x!=0.),numpy.logical_and(md.mesh.x!=numpy.max(md.mesh.x),numpy.logical_not(md.mesh.vertexonbed))))[0]55 # posy=numpy.nonzero(logical_and_n(md.mesh.y==0.,md.mesh.x!=0.,md.mesh.x!=numpy.max(md.mesh.x),numpy.logical_not(md.mesh.vertexonbed)))[0] #Don't take the same nodes two times 56 # posy2=numpy.nonzero(logical_and_n(md.mesh.y==numpy.max(md.mesh.y),md.mesh.x!=0.,md.mesh.x!=numpy.max(md.mesh.x),numpy.logical_not(md.mesh.vertexonbed)))[0] 56 57 57 58 # md.diagnostic.vertex_pairing=numpy.vstack((numpy.hstack((posx.reshape(-1,1)+1,posx2.reshape(-1,1)+1)),numpy.hstack((posy.reshape(-1,1)+1,posy2.reshape(-1,1)+1)))) -
issm/trunk-jpl/test/NightlyRun/test1103.py
r14134 r14212 9 9 from solve import * 10 10 from MatlabFuncs import * 11 from PythonFuncs import * 11 12 12 13 """ … … 45 46 posx2=numpy.nonzero(md.mesh.x==numpy.max(md.mesh.x))[0] 46 47 47 posy=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==0.,md.mesh.x!=0.),md.mesh.x!=numpy.max(md.mesh.x)))[0] #Don't take the same nodes two times48 posy2=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==numpy.max(md.mesh.y),md.mesh.x!=0.),md.mesh.x!=numpy.max(md.mesh.x)))[0]48 posy=numpy.nonzero(logical_and_n(md.mesh.y==0.,md.mesh.x!=0.,md.mesh.x!=numpy.max(md.mesh.x)))[0] #Don't take the same nodes two times 49 posy2=numpy.nonzero(logical_and_n(md.mesh.y==numpy.max(md.mesh.y),md.mesh.x!=0.,md.mesh.x!=numpy.max(md.mesh.x)))[0] 49 50 50 51 md.diagnostic.vertex_pairing=numpy.vstack((numpy.hstack((posx.reshape(-1,1)+1,posx2.reshape(-1,1)+1)),numpy.hstack((posy.reshape(-1,1)+1,posy2.reshape(-1,1)+1)))) -
issm/trunk-jpl/test/NightlyRun/test1104.py
r14134 r14212 8 8 from solve import * 9 9 from MatlabFuncs import * 10 from PythonFuncs import * 10 11 11 12 """ … … 40 41 posx2=numpy.nonzero(md.mesh.x==numpy.max(md.mesh.x))[0] 41 42 42 posy=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==0.,md.mesh.x!=0.),md.mesh.x!=numpy.max(md.mesh.x)))[0] #Don't take the same nodes two times43 posy2=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==numpy.max(md.mesh.y),md.mesh.x!=0.),md.mesh.x!=numpy.max(md.mesh.x)))[0]43 posy=numpy.nonzero(logical_and_n(md.mesh.y==0.,md.mesh.x!=0.,md.mesh.x!=numpy.max(md.mesh.x)))[0] #Don't take the same nodes two times 44 posy2=numpy.nonzero(logical_and_n(md.mesh.y==numpy.max(md.mesh.y),md.mesh.x!=0.,md.mesh.x!=numpy.max(md.mesh.x)))[0] 44 45 45 46 md.diagnostic.vertex_pairing=numpy.vstack((numpy.hstack((posx.reshape(-1,1)+1,posx2.reshape(-1,1)+1)),numpy.hstack((posy.reshape(-1,1)+1,posy2.reshape(-1,1)+1)))) … … 49 50 md.cluster=generic('name',oshostname(),'np',8) 50 51 md=solve(md,DiagnosticSolutionEnum()) 51 pos=numpy.nonzero( numpy.logical_or(numpy.logical_or(md.mesh.x==0.,md.mesh.y==0.),numpy.logical_or(md.mesh.x==numpy.max(md.mesh.x),md.mesh.y==numpy.max(md.mesh.y))))52 pos=numpy.nonzero(logical_or_n(md.mesh.x==0.,md.mesh.y==0.,md.mesh.x==numpy.max(md.mesh.x),md.mesh.y==numpy.max(md.mesh.y))) 52 53 md.diagnostic.spcvx[pos]=md.results.DiagnosticSolution.Vx[pos] 53 54 md.diagnostic.spcvy[pos]=md.results.DiagnosticSolution.Vy[pos] -
issm/trunk-jpl/test/NightlyRun/test1105.py
r14134 r14212 9 9 from solve import * 10 10 from MatlabFuncs import * 11 from PythonFuncs import * 11 12 12 13 """ … … 38 39 md.diagnostic.spcvz=float('NaN')*numpy.ones((md.mesh.numberofvertices,1)) 39 40 40 posx=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.x==0.,md.mesh.y!=0.),md.mesh.y!=L))[0]41 posx2=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.x==L,md.mesh.y!=0.),md.mesh.y!=L))[0]41 posx=numpy.nonzero(logical_and_n(md.mesh.x==0.,md.mesh.y!=0.,md.mesh.y!=L))[0] 42 posx2=numpy.nonzero(logical_and_n(md.mesh.x==L,md.mesh.y!=0.,md.mesh.y!=L))[0] 42 43 43 posy=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==0.,md.mesh.x!=0.),md.mesh.x!=L))[0] #Don't take the same nodes two times44 posy2=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==L,md.mesh.x!=0.),md.mesh.x!=L))[0]44 posy=numpy.nonzero(logical_and_n(md.mesh.y==0.,md.mesh.x!=0.,md.mesh.x!=L))[0] #Don't take the same nodes two times 45 posy2=numpy.nonzero(logical_and_n(md.mesh.y==L,md.mesh.x!=0.,md.mesh.x!=L))[0] 45 46 46 47 md.diagnostic.vertex_pairing=numpy.vstack((numpy.hstack((posx.reshape(-1,1)+1,posx2.reshape(-1,1)+1)),numpy.hstack((posy.reshape(-1,1)+1,posy2.reshape(-1,1)+1)))) 47 48 48 49 #Add spc on the corners 49 pos=numpy.nonzero( numpy.logical_and(numpy.logical_and(numpy.logical_or(md.mesh.x==0.,md.mesh.x==L),numpy.logical_or(md.mesh.y==0.,md.mesh.y==L)),md.mesh.vertexonbed))50 pos=numpy.nonzero(logical_and_n(numpy.logical_or(md.mesh.x==0.,md.mesh.x==L),numpy.logical_or(md.mesh.y==0.,md.mesh.y==L),md.mesh.vertexonbed)) 50 51 md.diagnostic.spcvx[pos]=0. 51 52 md.diagnostic.spcvy[pos]=0. -
issm/trunk-jpl/test/NightlyRun/test1106.py
r14134 r14212 8 8 from solve import * 9 9 from MatlabFuncs import * 10 from PythonFuncs import * 10 11 11 12 """ … … 25 26 26 27 #Add spc on the borders 27 pos=numpy.nonzero( numpy.logical_or(numpy.logical_or(md.mesh.x==0.,md.mesh.x==numpy.max(md.mesh.x)),numpy.logical_or(md.mesh.y==0.,md.mesh.y==numpy.max(md.mesh.y))))28 pos=numpy.nonzero(logical_or_n(md.mesh.x==0.,md.mesh.x==numpy.max(md.mesh.x),md.mesh.y==0.,md.mesh.y==numpy.max(md.mesh.y))) 28 29 md.diagnostic.spcvx[pos]=0. 29 30 md.diagnostic.spcvy[pos]=0. -
issm/trunk-jpl/test/NightlyRun/test1107.py
r14134 r14212 9 9 from solve import * 10 10 from MatlabFuncs import * 11 from PythonFuncs import * 11 12 12 13 """ … … 40 41 #Create MPCs to have periodic boundary conditions 41 42 # posx=find(md.mesh.x==0. & ~(md.mesh.y==0. & md.mesh.vertexonbed) & ~(md.mesh.y==L & md.mesh.vertexonbed)); 42 posx=numpy.nonzero( numpy.logical_and(md.mesh.x==0.,numpy.logical_and(numpy.logical_not(numpy.logical_and(md.mesh.y==0.,md.mesh.vertexonbed)),numpy.logical_not(numpy.logical_and(md.mesh.y==L,md.mesh.vertexonbed)))))[0]43 posx=numpy.nonzero(logical_and_n(md.mesh.x==0.,numpy.logical_not(numpy.logical_and(md.mesh.y==0.,md.mesh.vertexonbed)),numpy.logical_not(numpy.logical_and(md.mesh.y==L,md.mesh.vertexonbed))))[0] 43 44 # posx2=find(md.mesh.x==max(md.mesh.x) & ~(md.mesh.y==0. & md.mesh.vertexonbed) & ~(md.mesh.y==L & md.mesh.vertexonbed)); 44 posx2=numpy.nonzero( numpy.logical_and(md.mesh.x==numpy.max(md.mesh.x),numpy.logical_and(numpy.logical_not(numpy.logical_and(md.mesh.y==0.,md.mesh.vertexonbed)),numpy.logical_not(numpy.logical_and(md.mesh.y==L,md.mesh.vertexonbed)))))[0]45 posx2=numpy.nonzero(logical_and_n(md.mesh.x==numpy.max(md.mesh.x),numpy.logical_not(numpy.logical_and(md.mesh.y==0.,md.mesh.vertexonbed)),numpy.logical_not(numpy.logical_and(md.mesh.y==L,md.mesh.vertexonbed))))[0] 45 46 46 posy=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==0.,md.mesh.x!=0.),md.mesh.x!=numpy.max(md.mesh.x)))[0] #Don't take the same nodes two times47 posy2=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==numpy.max(md.mesh.y),md.mesh.x!=0.),md.mesh.x!=numpy.max(md.mesh.x)))[0]47 posy=numpy.nonzero(logical_and_n(md.mesh.y==0.,md.mesh.x!=0.,md.mesh.x!=numpy.max(md.mesh.x)))[0] #Don't take the same nodes two times 48 posy2=numpy.nonzero(logical_and_n(md.mesh.y==numpy.max(md.mesh.y),md.mesh.x!=0.,md.mesh.x!=numpy.max(md.mesh.x)))[0] 48 49 49 50 md.diagnostic.vertex_pairing=numpy.vstack((numpy.hstack((posx.reshape(-1,1)+1,posx2.reshape(-1,1)+1)),numpy.hstack((posy.reshape(-1,1)+1,posy2.reshape(-1,1)+1)))) 50 51 51 52 #Add spc on the corners 52 pos=numpy.nonzero( numpy.logical_and(numpy.logical_and(numpy.logical_or(md.mesh.x==0.,md.mesh.x==L),numpy.logical_or(md.mesh.y==0.,md.mesh.y==L)),md.mesh.vertexonbed))53 pos=numpy.nonzero(logical_and_n(numpy.logical_or(md.mesh.x==0.,md.mesh.x==L),numpy.logical_or(md.mesh.y==0.,md.mesh.y==L),md.mesh.vertexonbed)) 53 54 md.diagnostic.spcvy[:]=0. 54 55 md.diagnostic.spcvx[pos]=0. -
issm/trunk-jpl/test/NightlyRun/test1108.py
r14134 r14212 8 8 from solve import * 9 9 from MatlabFuncs import * 10 from PythonFuncs import * 10 11 11 12 """ … … 33 34 md.diagnostic.spcvz=float('NaN')*numpy.ones((md.mesh.numberofvertices,1)) 34 35 35 pos=numpy.nonzero( numpy.logical_and(md.mesh.vertexonbed,numpy.logical_and(numpy.logical_or(md.mesh.x==0.,md.mesh.x==numpy.max(md.mesh.x)),numpy.logical_or(md.mesh.y==0.,md.mesh.y==numpy.max(md.mesh.y)))))36 pos=numpy.nonzero(logical_and_n(md.mesh.vertexonbed,numpy.logical_or(md.mesh.x==0.,md.mesh.x==numpy.max(md.mesh.x)),numpy.logical_or(md.mesh.y==0.,md.mesh.y==numpy.max(md.mesh.y)))) 36 37 md.diagnostic.spcvx[pos]=0. 37 38 md.diagnostic.spcvy[pos]=0. … … 42 43 posx2=numpy.nonzero(md.mesh.x==numpy.max(md.mesh.x))[0] 43 44 44 posy=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==0.,md.mesh.x!=0.),md.mesh.x!=numpy.max(md.mesh.x)))[0] #Don't take the same nodes two times45 posy2=numpy.nonzero( numpy.logical_and(numpy.logical_and(md.mesh.y==numpy.max(md.mesh.y),md.mesh.x!=0.),md.mesh.x!=numpy.max(md.mesh.x)))[0]45 posy=numpy.nonzero(logical_and_n(md.mesh.y==0.,md.mesh.x!=0.,md.mesh.x!=numpy.max(md.mesh.x)))[0] #Don't take the same nodes two times 46 posy2=numpy.nonzero(logical_and_n(md.mesh.y==numpy.max(md.mesh.y),md.mesh.x!=0.,md.mesh.x!=numpy.max(md.mesh.x)))[0] 46 47 47 48 md.diagnostic.vertex_pairing=numpy.vstack((numpy.hstack((posx.reshape(-1,1)+1,posx2.reshape(-1,1)+1)),numpy.hstack((posy.reshape(-1,1)+1,posy2.reshape(-1,1)+1)))) … … 58 59 md.diagnostic.spcvy=float('NaN')*numpy.ones((md.mesh.numberofvertices,1)) 59 60 md.diagnostic.spcvz=float('NaN')*numpy.ones((md.mesh.numberofvertices,1)) 60 pos=numpy.nonzero( numpy.logical_or(numpy.logical_or(md.mesh.y==0.,md.mesh.x==0.),numpy.logical_or(md.mesh.x==numpy.max(md.mesh.x),md.mesh.y==numpy.max(md.mesh.y)))) #Don't take the same nodes two times61 pos=numpy.nonzero(logical_or_n(md.mesh.y==0.,md.mesh.x==0.,md.mesh.x==numpy.max(md.mesh.x),md.mesh.y==numpy.max(md.mesh.y))) #Don't take the same nodes two times 61 62 md.diagnostic.spcvx[pos]=md.results.DiagnosticSolution.Vx[pos] 62 63 md.diagnostic.spcvy[pos]=md.results.DiagnosticSolution.Vy[pos]
Note:
See TracChangeset
for help on using the changeset viewer.