Changeset 4542


Ignore:
Timestamp:
07/12/10 16:57:54 (15 years ago)
Author:
seroussi
Message:

ugly duct tape, will be removed tomorrow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Nightly/testsgetfields.m

    r4523 r4542  
    2626                vel=zeros(md.numberofgrids,1);
    2727                vel(md.results.DiagnosticSolution.Vel.index)=md.results.DiagnosticSolution.Vel.value;
    28                 j=md.results.DiagnosticSolution.J;
    29                 parameter=zeros(md.numberofgrids,1);
     28                if ~strcmpi(md.cluster,'none'),
     29                        j=md.results.DiagnosticSolution.J;
     30                        parameter=zeros(md.numberofgrids,1);
     31                end
    3032                if strcmpi(md.control_type,'rheology_B'),
    3133                        parameter(md.results.DiagnosticSolution.RheologyB.index)=md.results.DiagnosticSolution.RheologyB.value;
     
    3537                        error('not implemented yet');
    3638                end
    37                 field_values={vel,j,parameter};
     39                if ~strcmpi(md.cluster,'none'),
     40                        field_values={vel,j,parameter};
     41                else
     42                        field_values={vel};
     43                end
    3844        elseif qmu,
    3945                fields={'dakota.importancefactors'};
Note: See TracChangeset for help on using the changeset viewer.