Changeset 15771 for issm/trunk-jpl/test/NightlyRun/test1102.m
- Timestamp:
- 08/09/13 10:59:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test1102.m
r15565 r15771 29 29 %Create dirichlet on the bed only 30 30 pos=find(md.mesh.vertexonbed); 31 md. diagnostic.spcvx(pos)=0.;32 md. diagnostic.spcvy(pos)=0.;33 md. diagnostic.spcvz(pos)=0.;31 md.stressbalance.spcvx(pos)=0.; 32 md.stressbalance.spcvy(pos)=0.; 33 md.stressbalance.spcvz(pos)=0.; 34 34 35 35 % %Create MPCs to have periodic boundary conditions … … 42 42 % posy2=find(md.mesh.y==max(md.mesh.y) & md.mesh.x~=0. & md.mesh.x~=max(md.mesh.x) & ~md.mesh.vertexonbed); 43 43 44 % md. diagnostic.vertex_pairing=[posx,posx2;posy,posy2];44 % md.stressbalance.vertex_pairing=[posx,posx2;posy,posy2]; 45 45 46 %Compute the diagnostic47 md. diagnostic.abstol=NaN;48 md. diagnostic.reltol=NaN;49 md. diagnostic.restol=1.;46 %Compute the stressbalance 47 md.stressbalance.abstol=NaN; 48 md.stressbalance.reltol=NaN; 49 md.stressbalance.restol=1.; 50 50 md.cluster=generic('name',oshostname(),'np',8); 51 md=solve(md, DiagnosticSolutionEnum());51 md=solve(md,StressbalanceSolutionEnum()); 52 52 53 53 %Plot the results and save them 54 vx=(md.results. DiagnosticSolution.Vx);55 vy=(md.results. DiagnosticSolution.Vy);56 vz=(md.results. DiagnosticSolution.Vz);57 pressure=(md.results. DiagnosticSolution.Pressure);58 results{i}=md.results. DiagnosticSolution;54 vx=(md.results.StressbalanceSolution.Vx); 55 vy=(md.results.StressbalanceSolution.Vy); 56 vz=(md.results.StressbalanceSolution.Vz); 57 pressure=(md.results.StressbalanceSolution.Pressure); 58 results{i}=md.results.StressbalanceSolution; 59 59 minvx(i)=min(vx(end-md.mesh.numberofvertices2d+1:end)); 60 60 maxvx(i)=max(vx(end-md.mesh.numberofvertices2d+1:end));
Note:
See TracChangeset
for help on using the changeset viewer.