Ignore:
Timestamp:
09/06/11 10:08:46 (14 years ago)
Author:
Mathieu Morlighem
Message:

moved fields to surfaceforcings object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/test/NightlyRun/test1502.m

    r9597 r9607  
    1515%Solve for thinning rate -> -1 * surface mass balance
    1616smb= 2*ones(md.numberofnodes,1);   
    17 md.surface_mass_balance= smb;
     17md.surfaceforcings.mass_balance= smb;
    1818md.basal_melting_rate= smb;
    1919
     
    2222for i=1:10
    2323         md=solve(md,PrognosticSolutionEnum);
    24          md.surface_mass_balance= md.surface_mass_balance - (PatchToVec(md.results.PrognosticSolution.Thickness)-md.thickness);
     24         md.surfaceforcings.mass_balance= md.surfaceforcings.mass_balance - (PatchToVec(md.results.PrognosticSolution.Thickness)-md.thickness);
    2525end
    2626
    2727%Set up transient
    28 smb = md.surface_mass_balance;
     28smb = md.surfaceforcings.mass_balance;
    2929
    3030tooth= [ [ones(400,1)*(smb') - 10]' [ones(400,1)*(smb')]' ];
    3131smb=[ [ones(399,1)*(smb')]' smb  tooth tooth];
    3232
    33 md.surface_mass_balance= smb;
    34 md.surface_mass_balance(end+1,:)=[1:2000];
     33md.surfaceforcings.mass_balance= smb;
     34md.surfaceforcings.mass_balance(end+1,:)=[1:2000];
    3535
    3636md=solve(md,TransientSolutionEnum);
Note: See TracChangeset for help on using the changeset viewer.