Ignore:
Timestamp:
08/02/16 17:06:46 (9 years ago)
Author:
agscott1
Message:

CHG: Replaced Enums with Strings in matlab and python. Updated corresponding cpp code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/taoinversion.m

    r20896 r21049  
    117117                        md = checkfield(md,'fieldname','inversion.max_parameters','size',[md.mesh.numberofvertices num_controls]);
    118118
    119                         if solution==BalancethicknessSolutionEnum()
     119                        if strcmp(solution,'BalancethicknessSolution')
    120120                                md = checkfield(md,'fieldname','inversion.thickness_obs','size',[md.mesh.numberofvertices 1],'NaN',1,'Inf',1);
    121                         elseif solution==BalancethicknessSoftSolutionEnum()
     121                        elseif strcmp(solution,'BalancethicknessSoftSolution')
    122122                                md = checkfield(md,'fieldname','inversion.thickness_obs','size',[md.mesh.numberofvertices 1],'NaN',1,'Inf',1);
    123123                        else
     
    192192                        num_cost_functions=size(self.cost_functions,2);
    193193                        data=marshallcostfunctions(self.cost_functions);
    194                         WriteData(fid,prefix,'data',data,'name','md.inversion.cost_functions','format','DoubleMat','mattype',3);
     194                        WriteData(fid,prefix,'data',data,'name','md.inversion.cost_functions','format','StringArray');
    195195                        WriteData(fid,prefix,'data',num_cost_functions,'name','md.inversion.num_cost_functions','format','Integer');
    196196                end % }}}
Note: See TracChangeset for help on using the changeset viewer.