Changeset 4391


Ignore:
Timestamp:
07/01/10 11:30:53 (15 years ago)
Author:
Mathieu Morlighem
Message:

fixed m/utils/Nightly/testsgetfields.m for CM

Location:
issm/trunk/src/m
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk/src/m/classes/@bamggeom/bamggeom.m

    r3311 r4391  
    11function bg = bamggeom(varargin)
    2 %ICEFRONT - constructor for bamggeom object
     2%BAMGGEOM - constructor for bamggeom object
    33%
    44%   Usage:
  • TabularUnified issm/trunk/src/m/classes/@bamgmesh/bamgmesh.m

    r3332 r4391  
    11function bm = bamgmesh(varargin)
    2 %ICEFRONT - constructor for bamgmesh object
     2%BAMGMESH - constructor for bamgmesh object
    33%
    44%   Usage:
  • TabularUnified issm/trunk/src/m/classes/@bamgmesh/subsasgn.m

    r3277 r4391  
    1 function icefront = subsasgn(icefront,index,val)
     1function bamgmesh = subsasgn(bamgmesh,index,val)
    22%SUBSASGN - handles indexed assignments to objects
    33%
     
    66%
    77%   Usage:
    8 %      icefront = subsasgn(icefront,index,val)
     8%      bamgmesh = subsasgn(bamgmesh,index,val)
    99%
    1010%   See also SUBSREF
    1111
    12 icefront=builtin('subsasgn',icefront,index,val);
     12bamgmesh=builtin('subsasgn',bamgmesh,index,val);
  • TabularUnified issm/trunk/src/m/classes/@bamgmesh/subsref.m

    r3277 r4391  
    1 function icefront = subsref(icefront,index)
     1function bamgmesh = subsref(bamgmesh,index)
    22%SUBSREF - handles indexed references to objects
    33%
    44%   the first argument is the object and the second one a structure array
    55%   Usage:
    6 %      icefront = subsref(icefront,index)
     6%      bamgmesh = subsref(bamgmesh,index)
    77%
    88%   See also SUBSASGN
    99
    10 icefront=builtin('subsref',icefront,index);
     10bamgmesh=builtin('subsref',bamgmesh,index);
  • TabularUnified issm/trunk/src/m/utils/Nightly/testsgetfields.m

    r4377 r4391  
    2626                vel=zeros(md.numberofgrids,1);
    2727                vel(md.results.DiagnosticSolution.Vel.index)=md.results.DiagnosticSolution.Vel.value;
    28                 j=zeros(md.numberofgrids,1);
    29                 j(md.results.DiagnosticSolution.J.index)=md.results.DiagnosticSolution.J.value;
     28                j=md.results.DiagnosticSolution.J;
    3029                parameter=zeros(md.numberofgrids,1);
    31                 parameter(md.results.DiagnosticSolution.parameter.index)=md.results.DiagnosticSolution.parameter.value;
     30                if strcmpi(md.control_type,'rheology_B'),
     31                        parameter(md.results.DiagnosticSolution.RheologyB.index)=md.results.DiagnosticSolution.RheologyB.value;
     32                elseif strcmpi(md.control_type,'drag_coefficient'),
     33                        parameter(md.results.DiagnosticSolution.DragCoefficient.index)=md.results.DiagnosticSolution.DragCoefficient.value;
     34                else
     35                        error('not implemented yet');
     36                end
    3237                field_values={vel,j,parameter};
    3338        elseif qmu,
Note: See TracChangeset for help on using the changeset viewer.