Changeset 17469


Ignore:
Timestamp:
03/18/14 16:32:17 (11 years ago)
Author:
jbondzio
Message:

minor: more semicolons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/Par/ValleyGlacierShelf.par

    r17467 r17469  
    11%Start defining model parameters here
    2 x = md.mesh.x
    3 y = md.mesh.y
    4 xmin = min(x)
    5 xmax = max(x)
    6 ymin = min(y)
    7 ymax = max(y)
    8 Lx = (xmax-xmin)
    9 Ly = (ymax-ymin)
    10 xm = (xmin+xmax)/2.
    11 ym = (ymin+ymax)/2.
     2x = md.mesh.x;
     3y = md.mesh.y;
     4xmin = min(x);
     5xmax = max(x);
     6ymin = min(y);
     7ymax = max(y);
     8Lx = (xmax-xmin);
     9Ly = (ymax-ymin);
     10xm = (xmin+xmax)/2.;
     11ym = (ymin+ymax)/2.;
    1212
    1313%Geometry: U-shaped valley in y direction
    14 thk_center = 1000.
    15 thk_margin = 0.5*thk_center
    16 bmax = 0.
    17 bmin = -thk_center*md.materials.rho_ice/md.materials.rho_water
     14thk_center = 1000.;
     15thk_margin = 0.5*thk_center;
     16bmax = 0.;
     17bmin = -thk_center*md.materials.rho_ice/md.materials.rho_water;
    1818
    19 alpha = 2./3.
    20 slope = 0.9*(bmin-bmax)*(x-xmin)/(Lx*alpha) + 0.1*(bmin-bmax)*(y-ymin)/(Ly) + bmax
    21 md.geometry.surface = (thk_center+bmax) + slope
    22 md.geometry.bed = bmax + slope + 4./Ly^2*(thk_center-thk_margin)*(y-ym).^2)
    23 md.geometry.thickness = md.geometry.surface - md.geometry.bed
    24 md.geometry.bathymetry = md.geometry.bed
     19alpha = 2./3.;
     20slope = 0.9*(bmin-bmax)*(x-xmin)/(Lx*alpha) + 0.1*(bmin-bmax)*(y-ymin)/(Ly) + bmax;
     21md.geometry.surface = (thk_center+bmax) + slope ;
     22md.geometry.bed = bmax + slope + 4./Ly^2*(thk_center-thk_margin)*(y-ym).^2);
     23md.geometry.thickness = md.geometry.surface - md.geometry.bed;
     24md.geometry.bathymetry = md.geometry.bed;
    2525
    2626%Mask
    27 md.mask.ice_levelset = x - alpha*Lx
    28 md.mask.groundedice_levelset = ones(md.mesh.numberofvertices,1)
     27md.mask.ice_levelset = x - alpha*Lx;
     28md.mask.groundedice_levelset = ones(md.mesh.numberofvertices,1);
    2929
    3030%Initial velocity
    31 md.initialization.vx = zeros(md.mesh.numberofvertices,1)
    32 md.initialization.vy = zeros(md.mesh.numberofvertices,1)
    33 md.initialization.vz = zeros(md.mesh.numberofvertices,1)
    34 md.initialization.pressure = zeros(md.mesh.numberofvertices,1)
     31md.initialization.vx = zeros(md.mesh.numberofvertices,1);
     32md.initialization.vy = zeros(md.mesh.numberofvertices,1);
     33md.initialization.vz = zeros(md.mesh.numberofvertices,1);
     34md.initialization.pressure = zeros(md.mesh.numberofvertices,1);
    3535
    3636%Materials
    37 md.initialization.temperature = (273.15-5.)*ones(md.mesh.numberofvertices,1)
    38 md.initialization.waterfraction = zeros(md.mesh.numberofvertices,1)
    39 md.initialization.watercolumn = zeros(md.mesh.numberofvertices,1)
    40 md.materials.rheology_B = paterson(md.initialization.temperature)
    41 md.materials.rheology_n = 3.*ones(md.mesh.numberofelements,1)
     37md.initialization.temperature = (273.15-5.)*ones(md.mesh.numberofvertices,1);
     38md.initialization.waterfraction = zeros(md.mesh.numberofvertices,1);
     39md.initialization.watercolumn = zeros(md.mesh.numberofvertices,1);
     40md.materials.rheology_B = paterson(md.initialization.temperature);
     41md.materials.rheology_n = 3.*ones(md.mesh.numberofelements,1);
    4242
    4343%Thermal
    44 md.thermal.isenthalpy = 0
    45 md.thermal.spctemperature = NaN(md.mesh.numberofvertices,1)
     44md.thermal.isenthalpy = 0;
     45md.thermal.spctemperature = NaN(md.mesh.numberofvertices,1);
    4646
    4747%Groundingline
    48 md.groundingline.migration = 'SubelementMigration'
     48md.groundingline.migration = 'SubelementMigration';
    4949
    5050%Damage
    51 md.damage.D = zeros(md.mesh.numberofvertices,1)
     51md.damage.D = zeros(md.mesh.numberofvertices,1);
    5252
    5353%Surface mass balance and basal melting
    54 md.surfaceforcings.mass_balance = 0.3*ones(md.mesh.numberofvertices,1)
    55 md.basalforcings.melting_rate = md.surfaceforcings.mass_balance
     54md.surfaceforcings.mass_balance = 0.3*ones(md.mesh.numberofvertices,1);
     55md.basalforcings.melting_rate = md.surfaceforcings.mass_balance;
    5656
    5757%Friction
    58 md.friction.coefficient = 20.*ones(md.mesh.numberofvertices,1)
    59 md.friction.coefficient(find(md.mask.groundedice_levelset<0.)) = 0.
    60 md.friction.p = ones(md.mesh.numberofelements,1)
    61 md.friction.q = ones(md.mesh.numberofelements,1)
     58md.friction.coefficient = 20.*ones(md.mesh.numberofvertices,1);
     59md.friction.coefficient(find(md.mask.groundedice_levelset<0.)) = 0.;
     60md.friction.p = ones(md.mesh.numberofelements,1);
     61md.friction.q = ones(md.mesh.numberofelements,1);
    6262
    6363%Transient
    64 md.transient.isstressbalance = 1
    65 md.transient.islevelset = 1
    66 md.transient.ismasstransport = 0
    67 md.transient.isthermal = 0
    68 md.transient.isgroundingline = 1
    69 md.transient.isgia = 0
     64md.transient.isstressbalance = 1;
     65md.transient.islevelset = 1;
     66md.transient.ismasstransport = 0;
     67md.transient.isthermal = 0;
     68md.transient.isgroundingline = 1;
     69md.transient.isgia = 0;
    7070
    7171%Stressbalance
    72 md.stressbalance.maxiter = 100
    73 md.stressbalance.viscosity_overshoot = 0.0
    74 md.stressbalance.restol = 0.05
    75 md.stressbalance.reltol = 0.05
    76 md.stressbalance.abstol = NaN
     72md.stressbalance.maxiter = 100;
     73md.stressbalance.viscosity_overshoot = 0.0;
     74md.stressbalance.restol = 0.05;
     75md.stressbalance.reltol = 0.05;
     76md.stressbalance.abstol = NaN;
    7777
    78 %Masstransport
    79 md.masstransport.calvingrate = 0.*ones(md.mesh.numberofvertices,1)
    80 md.masstransport.stabilization = 1.
     78%Masstransport;
     79md.masstransport.calvingrate = 0.*ones(md.mesh.numberofvertices,1);
     80md.masstransport.stabilization = 1.;
    8181
    8282%Numerical parameters
    83 md.thermal.stabilization = 1.
    84 md.settings.waitonlock = 30
    85 md.steadystate.reltol = 0.05
    86 md.timestepping.time_step = 1.
    87 md.timestepping.final_time = 3.
     83md.thermal.stabilization = 1.;
     84md.settings.waitonlock = 30;
     85md.steadystate.reltol = 0.05;
     86md.timestepping.time_step = 1.;
     87md.timestepping.final_time = 3.;
    8888
    8989%Verbose
    90 md.verbose = verbose(0)
     90md.verbose = verbose(0);
    9191
    9292%Deal with boundary conditions:
    93 md = SetIceShelfBC(md)
     93md = SetIceShelfBC(md);
    9494
    95 %Change name so that no test have the same name
     95%Change name so that no test have the same name;
    9696A = dbstack;
    9797if (length(A)>2), md.miscellaneous.name=A(3).file(1:end-2); end
Note: See TracChangeset for help on using the changeset viewer.