Changeset 13431


Ignore:
Timestamp:
09/24/12 22:25:47 (12 years ago)
Author:
Eric.Larour
Message:

CHG: changed ad test run to work in prognostic mode

File:
1 edited

Legend:

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

    r13325 r13431  
    66md.diagnostic.requested_outputs=StressTensorEnum;
    77md.autodiff.isautodiff=true;
    8 md.autodiff.independents={'Thickness','Surface'};
    9 md.autodiff.dependents={'IceVolume'};
    10 %md=solve(md,TransientSolutionEnum);
     8
     9md.autodiff.independents={...
     10        independent('name','Thickness','type','vertex','nods',md.mesh.numberofvertices,'fos_forward_index',1), ...
     11        independent('name','Surface','type','vertex','nods',md.mesh.numberofvertices)...
     12        };
     13
     14md.autodiff.dependents={...
     15        dependent('name','IceVolume','type','scalar')...
     16        };
     17md.autodiff.driver='fos_forward';
     18
    1119md=solve(md,PrognosticSolutionEnum);
    12 
    13 %Fields and tolerances to track changes
    14 field_names     ={'Vx','Vy','Vel','Pressure',...
    15         'StressTensorxx','StressTensoryy','StressTensorxy'};
    16 field_tolerances={1e-13,1e-13,1e-13,1e-13,...
    17         1e-13,1e-13,1e-13};
    18 field_values={...
    19         (md.results.TransientSolution.Vx),...
    20         (md.results.TransientSolution.Vy),...
    21         (md.results.TransientSolution.Vel),...
    22         (md.results.TransientSolution.Pressure),...
    23         (md.results.TransientSolution.StressTensorxx),...
    24         (md.results.TransientSolution.StressTensoryy),...
    25         (md.results.TransientSolution.StressTensorxy),...
    26         };
Note: See TracChangeset for help on using the changeset viewer.