Changeset 16137 for issm/trunk/test/NightlyRun/test1102.py
- Timestamp:
- 09/16/13 09:43:55 (12 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:ignore
-
old new 1 nightlylog 2 configure.sh 1 3 par 2 4 ad
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 15397-15401,15403-15487,15489-15701,15704-15735,15737-16076,16082-16133
- Property svn:ignore
-
issm/trunk/test
- Property svn:mergeinfo changed
-
issm/trunk/test/NightlyRun/test1102.py
r14310 r16137 39 39 md=parameterize(md,'../Par/ISMIPA.py') 40 40 md.extrude(10,1.) 41 md=setflowequation(md,' stokes','all')41 md=setflowequation(md,'FS','all') 42 42 43 43 #Create dirichlet on the bed only 44 44 pos=numpy.nonzero(md.mesh.vertexonbed) 45 md. diagnostic.spcvx[pos]=0.46 md. diagnostic.spcvy[pos]=0.47 md. diagnostic.spcvz[pos]=0.45 md.stressbalance.spcvx[pos]=0. 46 md.stressbalance.spcvy[pos]=0. 47 md.stressbalance.spcvz[pos]=0. 48 48 49 49 # #Create MPCs to have periodic boundary conditions … … 56 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] 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))))58 # md.stressbalance.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)))) 59 59 60 #Compute the diagnostic61 md. diagnostic.abstol=float('NaN')62 md. diagnostic.reltol=float('NaN')63 md. diagnostic.restol=1.60 #Compute the stressbalance 61 md.stressbalance.abstol=float('NaN') 62 md.stressbalance.reltol=float('NaN') 63 md.stressbalance.restol=1. 64 64 md.cluster=generic('name',oshostname(),'np',8) 65 md=solve(md, DiagnosticSolutionEnum())65 md=solve(md,StressbalanceSolutionEnum()) 66 66 67 67 #Plot the results and save them 68 vx=md.results. DiagnosticSolution.Vx69 vy=md.results. DiagnosticSolution.Vy70 vz=md.results. DiagnosticSolution.Vz71 pressure=md.results. DiagnosticSolution.Pressure72 results.append(md.results. DiagnosticSolution)68 vx=md.results.StressbalanceSolution.Vx 69 vy=md.results.StressbalanceSolution.Vy 70 vz=md.results.StressbalanceSolution.Vz 71 pressure=md.results.StressbalanceSolution.Pressure 72 results.append(md.results.StressbalanceSolution) 73 73 minvx.append(numpy.min(vx[-md.mesh.numberofvertices2d:])) 74 74 maxvx.append(numpy.max(vx[-md.mesh.numberofvertices2d:])) … … 79 79 pass 80 80 # set(gcf,'Color','w') 81 # printmodel(['ismipa stokesvx' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off');82 # shutil.move("ismipa stokesvx%d.png" % L,ISSM_DIR+'/website/doc_pdf/validation/Images/ISMIP/TestA')81 # printmodel(['ismipaFSvx' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 82 # shutil.move("ismipaFSvx%d.png" % L,ISSM_DIR+'/website/doc_pdf/validation/Images/ISMIP/TestA') 83 83 # plotmodel(md,'data',vy,'layer#all',md.mesh.numberoflayers,'xlim',[0 L/10^3],'ylim',[0 L/10^3],'unit','km','figure',3) 84 84 if printingflag: 85 85 pass 86 86 # set(gcf,'Color','w') 87 # printmodel(['ismipa stokesvy' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off');88 # shutil.move("ismipa stokesvy%d.png" % L,ISSM_DIR+'/website/doc_pdf/validation/Images/ISMIP/TestA')87 # printmodel(['ismipaFSvy' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 88 # shutil.move("ismipaFSvy%d.png" % L,ISSM_DIR+'/website/doc_pdf/validation/Images/ISMIP/TestA') 89 89 # plotmodel(md,'data',vz,'layer#all',md.mesh.numberoflayers,'xlim',[0 L/10^3],'ylim',[0 L/10^3],'unit','km','figure',4) 90 90 if printingflag: 91 91 pass 92 92 # set(gcf,'Color','w') 93 # printmodel(['ismipa stokesvz' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off');94 # shutil.move("ismipa stokesvz%d.png" % L,ISSM_DIR+'/website/doc_pdf/validation/Images/ISMIP/TestA')93 # printmodel(['ismipaFSvz' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 94 # shutil.move("ismipaFSvz%d.png" % L,ISSM_DIR+'/website/doc_pdf/validation/Images/ISMIP/TestA') 95 95 96 96 if (L==5000.): … … 121 121 pass 122 122 # set(gcf,'Color','w') 123 # printmodel(['ismipa stokesvxsec' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off');124 # shutil.move("ismipa stokesvxsec.png" % L,ISSM_DIR+'/website/doc_pdf/validation/Images/ISMIP/TestA')123 # printmodel(['ismipaFSvxsec' num2str(L)],'png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 124 # shutil.move("ismipaFSvxsec.png" % L,ISSM_DIR+'/website/doc_pdf/validation/Images/ISMIP/TestA') 125 125 126 126 #Now plot the min and max values of vx for each size of the square … … 129 129 pass 130 130 # set(gcf,'Color','w') 131 # printmodel('ismipa stokesminvx','png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off');132 # shutil.move('ismipa stokesminvx.png',ISSM_DIR+'/website/doc_pdf/validation/Images/ISMIP/TestA')131 # printmodel('ismipaFSminvx','png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 132 # shutil.move('ismipaFSminvx.png',ISSM_DIR+'/website/doc_pdf/validation/Images/ISMIP/TestA') 133 133 #plot([5 10 20 40 80 160],maxvx);ylim([0 120]) 134 134 if printingflag: 135 135 pass 136 136 # set(gcf,'Color','w') 137 # printmodel('ismipa stokesmaxvx','png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off');138 # shutil.move('ismipa stokesmaxvx.png',ISSM_DIR+'/website/doc_pdf/validation/Images/ISMIP/TestA')137 # printmodel('ismipaFSmaxvx','png','margin','on','marginsize',25,'frame','off','resolution',1.5,'hardcopy','off'); 138 # shutil.move('ismipaFSmaxvx.png',ISSM_DIR+'/website/doc_pdf/validation/Images/ISMIP/TestA') 139 139 140 140 #Fields and tolerances to track changes
Note:
See TracChangeset
for help on using the changeset viewer.