Changeset 770


Ignore:
Timestamp:
06/04/09 13:46:13 (16 years ago)
Author:
Mathieu Morlighem
Message:

initialize md.results if needed

Location:
issm/trunk/src/m/solutions
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/ice/Loadresults.m

    r702 r770  
    88%      md=Loadresults(md,fem,u_g)
    99
     10if isnan(md.results), md.results=struct(); end
    1011if strcmpi(md.type,'2d')
    1112        if fem.ismacayealpattyn,
  • issm/trunk/src/m/solutions/ice/prognostic.m

    r674 r770  
    5858
    5959%project collapsed thickness onto 3d mesh
     60if isnan(md.results), md.results=struct(); end
    6061indx=1:6:m.gridset.gsize; indx=indx(m.tpart);
    6162md.results.prognostic.step=1;
  • issm/trunk/src/m/solutions/ice/thermal.m

    r703 r770  
    4545        indx=1:6:gridset.gsize;
    4646        indx=indx(m_t.tpart);
     47        if isnan(md.results), md.results=struct(); end
    4748        md.results.thermal.step=1;
    4849        md.results.thermal.time=0;
     
    9293                solution(n).time=soln(n).time/md.yts; %in year
    9394        end
     95        if isnan(md.results), md.results=struct(); end
    9496        md.results.thermal=solution;
    9597end
  • issm/trunk/src/m/solutions/ice/transient2d.m

    r744 r770  
    114114        solution2(i).step=i;
    115115end
     116if isnan(md.results), md.results=struct(); end
    116117md.results.transient=solution2;
  • issm/trunk/src/m/solutions/ice/transient3d.m

    r674 r770  
    164164        solution2(i).step=i;
    165165end
     166if isnan(md.results), md.results=struct(); end
    166167md.results.transient=solution2;
  • issm/trunk/src/m/solutions/macayeal/control.m

    r683 r770  
    239239
    240240         %Load results onto md:
     241         if isnan(md.results), md.results=struct(); end
    241242         md.results.control.step=1;
    242243         md.results.control.time=0;
  • issm/trunk/src/m/solutions/macayeal/diagnostic.m

    r674 r770  
    468468
    469469%Load results onto md:
     470if isnan(md.results), md.results=struct(); end
    470471md.results.diagnostic.step=1;
    471472md.results.diagnostic.time=0;
Note: See TracChangeset for help on using the changeset viewer.