Changeset 6249


Ignore:
Timestamp:
10/12/10 10:42:24 (14 years ago)
Author:
Eric.Larour
Message:

If we run by hand, dbstack won't return the calling routine name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/runsteps.m

    r6096 r6249  
    181181                         %before saving model, try and find a runme.m file, and save it.
    182182                         A=dbstack;
    183                          runmefilename=A(2).file;
    184                          md.runmefile=char(textread(runmefilename,'%s','delimiter','\n'));
     183                         if length(A)>=2,
     184                                 runmefilename=A(2).file;
     185                                 md.runmefile=char(textread(runmefilename,'%s','delimiter','\n'));
     186                         end
    185187
    186188                         %save model
Note: See TracChangeset for help on using the changeset viewer.