Changeset 16454


Ignore:
Timestamp:
10/18/13 08:17:30 (11 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed tutorials with new mask and solution names

Location:
issm/trunk/examples
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/examples/Jakobshavn/Jks.par

    r11995 r16454  
    4444disp('   Construct basal friction parameters');
    4545md.friction.coefficient=30*ones(md.mesh.numberofvertices,1);
    46 pos=find(md.mask.vertexonfloatingice);
    47 md.friction.coefficient(pos)=0; %no friction applied on floating ice
     46md.friction.coefficient(find(md.mask.groundedice_levelset<0.))=0.;
    4847md.friction.p=ones(md.mesh.numberofelements,1);
    4948md.friction.q=ones(md.mesh.numberofelements,1);
     
    5857disp('   Set other boundary conditions');
    5958md=SetMarineIceSheetBC(md,'./Front.exp');
    60 md.diagnostic.icefront(:,end)=1; %Apply water pressure at the ice front
    6159md.basalforcings.melting_rate=zeros(md.mesh.numberofvertices,1);
  • issm/trunk/examples/Jakobshavn/runme.m

    r11995 r16454  
    4242        md=loadmodel('JksPar.mdl');
    4343
    44         md=setflowequation(md,'macayeal','all');
     44        md=setflowequation(md,'SSA','all');
    4545
    4646        %Control general
     
    6464
    6565        %Additional parameters
    66         md.diagnostic.restol=0.01;
    67         md.diagnostic.reltol=0.1;
    68         md.diagnostic.abstol=NaN;
     66        md.stressbalance.restol=0.01;
     67        md.stressbalance.reltol=0.1;
     68        md.stressbalance.abstol=NaN;
    6969
    7070        %Go solve
    7171        md.cluster=generic('name',oshostname,'np',4);
    72         md.solver=addoptions(md.solver,NoneAnalysisEnum,asmoptions);
    73         md.solver=addoptions(md.solver,DiagnosticVertAnalysisEnum,jacobiasmoptions);
    74         md=solve(md,DiagnosticSolutionEnum);
     72        md=solve(md,StressbalanceSolutionEnum);
    7573       
    7674        save JksControl.mdl md
     
    8381                'FontSize#all',12,...
    8482                'data',md.inversion.vel_obs,'title','Observed velocity',...
    85                 'data',md.results.DiagnosticSolution.Vel,'title','Modeled Velocity',...
     83                'data',md.results.StressbalanceSolution.Vel,'title','Modeled Velocity',...
    8684                'colorbar#1','off','colorbar#2','on','colorbartitle#2','[m/yr]',...
    8785                'caxis#1-2',[0,7000],...
    8886                'data',md.geometry.bed,'title','Bed elevation',...
    89                 'data',md.results.DiagnosticSolution.FrictionCoefficient,...
     87                'data',md.results.StressbalanceSolution.FrictionCoefficient,...
    9088                'title','Friction Coefficient',...
    9189                'colorbar#3','on','colorbartitle#3','[m]','colorbar#4','on');
  • issm/trunk/examples/SquareIceShelf/Square.par

    r11237 r16454  
    1111
    1212disp('      creating drag');
    13 pos=find(md.mask.vertexonfloatingice);
    1413md.friction.coefficient=200*ones(md.mesh.numberofvertices,1);
    15 md.friction.coefficient(pos)=0;
     14md.friction.coefficient(find(md.mask.groundedice_levelset<0.))=0.;
    1615md.friction.p=ones(md.mesh.numberofelements,1);
    1716md.friction.q=ones(md.mesh.numberofelements,1);
  • issm/trunk/examples/SquareIceShelf/runme.m

    r11995 r16454  
    33md=setmask(md,'all','');
    44md=parameterize(md,'Square.par');
    5 md=setflowequation(md,'macayeal','all');
     5md=setflowequation(md,'SSA','all');
    66md.cluster=generic('name',oshostname,'np',2);
    7 md=solve(md,DiagnosticSolutionEnum);
     7md=solve(md,StressbalanceSolutionEnum);
Note: See TracChangeset for help on using the changeset viewer.