Changeset 18177


Ignore:
Timestamp:
06/23/14 16:39:50 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: testing more 2d FS elements

Location:
issm/trunk-jpl/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test701.m

    r17762 r18177  
    3434md.stressbalance.spcvx(find(vertexflags(md.mesh,4)))=0;
    3535md.stressbalance.spcvy(find(vertexflags(md.mesh,4)))=0;
    36 %md.stressbalance.spcvx(find(vertexflags(md.mesh,4) | vertexflags(md.mesh,2)))=0;
    37 %md.stressbalance.spcvy(find(vertexflags(md.mesh,4) | vertexflags(md.mesh,2)))=0;
    3836
    3937%Misc
    4038md=setflowequation(md,'FS','all');
    41 md.flowequation.fe_FS='TaylorHood';
    4239md.stressbalance.abstol=NaN;
     40md.stressbalance.FSreconditioning=1;
     41md.flowequation.XTH_r=10000;
    4342md.miscellaneous.name = 'flowline';
     43md.cluster=generic('np',2);
    4444
    4545%Go solve
    46 md.cluster=generic('np',2);
    47 md=solve(md,StressbalanceSolutionEnum());
    48 
    49 %Fields and tolerances to track changes
    50 field_names     ={'Vx','Vy','Vel','Pressure'};
    51 field_tolerances={5e-10,2e-9,2e-9,1e-10};
    52 field_values={...
    53         (md.results.StressbalanceSolution.Vx),...
    54         (md.results.StressbalanceSolution.Vy),...
    55         (md.results.StressbalanceSolution.Vel),...
    56         (md.results.StressbalanceSolution.Pressure)};
     46field_names={};
     47field_tolerances={};
     48field_values={};
     49for i={'MINI','MINIcondensed','TaylorHood','XTaylorHood','CrouzeixRaviart'}
     50        disp(' ');
     51        disp([' ===== Testing ' i{1} ' Full-Stokes Finite element =====']);
     52        md.flowequation.fe_FS=i{1};
     53        md=solve(md,StressbalanceSolutionEnum());
     54        field_names     ={field_names{:},['Vx' i{1}],['Vy' i{1}],['Vel' i{1}],['Pressure' i{1}]};
     55        field_tolerances={field_tolerances{:},5e-10,2e-9,2e-9,1e-10};
     56        field_values={field_values{:},...
     57                (md.results.StressbalanceSolution.Vx),...
     58                (md.results.StressbalanceSolution.Vy),...
     59                (md.results.StressbalanceSolution.Vel),...
     60                (md.results.StressbalanceSolution.Pressure),...
     61                };
     62end
Note: See TracChangeset for help on using the changeset viewer.