Changeset 15771 for issm/trunk-jpl/test/NightlyRun/test1101.m
- Timestamp:
- 08/09/13 10:59:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test1101.m
r15565 r15771 21 21 22 22 %Create dirichlet on the bed only 23 md. diagnostic.spcvx=NaN*ones(md.mesh.numberofvertices,1);24 md. diagnostic.spcvy=NaN*ones(md.mesh.numberofvertices,1);25 md. diagnostic.spcvz=NaN*ones(md.mesh.numberofvertices,1);23 md.stressbalance.spcvx=NaN*ones(md.mesh.numberofvertices,1); 24 md.stressbalance.spcvy=NaN*ones(md.mesh.numberofvertices,1); 25 md.stressbalance.spcvz=NaN*ones(md.mesh.numberofvertices,1); 26 26 27 27 pos=find(md.mesh.vertexonbed); 28 md. diagnostic.spcvx(pos)=0.;29 md. diagnostic.spcvy(pos)=0.;28 md.stressbalance.spcvx(pos)=0.; 29 md.stressbalance.spcvy(pos)=0.; 30 30 31 31 %Create MPCs to have periodic boundary conditions … … 36 36 posy2=find(md.mesh.y==max(md.mesh.y) & md.mesh.x~=0. & md.mesh.x~=max(md.mesh.x)); 37 37 38 md. diagnostic.vertex_pairing=[posx,posx2;posy,posy2];38 md.stressbalance.vertex_pairing=[posx,posx2;posy,posy2]; 39 39 40 %Compute the diagnostic40 %Compute the stressbalance 41 41 md.cluster=generic('name',oshostname(),'np',8); 42 md=solve(md, DiagnosticSolutionEnum());42 md=solve(md,StressbalanceSolutionEnum()); 43 43 44 44 %Plot the results and save them 45 vx=(md.results. DiagnosticSolution.Vx);46 vy=(md.results. DiagnosticSolution.Vy);47 vz=(md.results. DiagnosticSolution.Vz);48 results{i}=md.results. DiagnosticSolution;45 vx=(md.results.StressbalanceSolution.Vx); 46 vy=(md.results.StressbalanceSolution.Vy); 47 vz=(md.results.StressbalanceSolution.Vz); 48 results{i}=md.results.StressbalanceSolution; 49 49 minvx(i)=min(vx(end-md.mesh.numberofvertices2d+1:end)); 50 50 maxvx(i)=max(vx(end-md.mesh.numberofvertices2d+1:end));
Note:
See TracChangeset
for help on using the changeset viewer.