Changeset 2382


Ignore:
Timestamp:
10/07/09 14:56:14 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added outputfilename in model needed to save control intermediary results

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

Legend:

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

    r2354 r2382  
    221221
    222222        %Results fields
     223        md.inputfilename='';
     224        md.outputfilename='';
    223225        md.results=NaN;
    224226        md.vx=NaN;
  • issm/trunk/src/m/classes/public/loadresultsfromdisk.m

    r2115 r2382  
    2222        %Check result is consistent, only if it exists
    2323        disp(sprintf('%s\n','checking result consistency'));
    24         if ~isresultconsistent(md,md.analysis_type),
    25                 %it would be very cruel to put an error, it would kill the computed results (even if not consistent...)
    26                 disp('!! results not consistent correct the model !!')
    27         end
     24%       if ~isresultconsistent(md,md.analysis_type),
     25%               %it would be very cruel to put an error, it would kill the computed results (even if not consistent...)
     26%               disp('!! results not consistent correct the model !!')
     27%       end
    2828end
    2929
  • issm/trunk/src/m/classes/public/marshall.m

    r2354 r2382  
    1010%some checks on list of arguments
    1111if ((nargin~=3) & (nargout~=0))
    12         marshallusage;
     12        help marshall;
    1313        error('marshall error message');
    1414end
     
    173173end
    174174
     175%input and output file names
     176WriteData(fid,md.inputfilename,'String','inputfilename');
     177WriteData(fid,md.outputfilename,'String','outputfilename');
     178
    175179%close file
    176180st=fclose(fid);
     
    178182        error(['marshall error message: could not close file ' [md.name '.bin']]);
    179183end
    180 
    181 end
    182 
    183 
    184 function marshallusage();
    185 disp(' ');
    186 disp('function marshall(md,solutiontype)');
    187 disp(' marshall: output Cielo compatible binary file from @model md, for certain solution type.');
    188 disp('             solutiontype can be ''diagnostic'',''prognostic'' or ''control''. ');
    189 disp('             This binary file will be used for parallel runs in cielo.');
    190 disp('INPUT function marshall(md,solutiontype)');
    191 end
  • issm/trunk/src/m/classes/public/parametercontrol.m

    r2374 r2382  
    1515if exist(options,'nsteps'),
    1616        nsteps=getoption(options,'nsteps');
    17         if (length(nsteps)~=1 | nsteps>0 | floor(nsteps)==nsteps)
     17        if (length(nsteps)~=1 | nsteps<=0 | floor(nsteps)~=nsteps)
    1818                md.nsteps=100;
    1919        else
  • issm/trunk/src/m/classes/public/presolve.m

    r2110 r2382  
    55%      md=presolve(md)
    66
    7 %first, deal with rifts.
     7%deal with outputfilename and inputfilename
     8md.inputfilename=[md.name '.bin'];
     9md.outputfilename=[md.name '.outbin'];
     10
     11%deal with rifts.
    812if isempty(md.rifts) | isnans(md.rifts),
    913        md.numrifts=0;
     
    2933        count=count+numpairsforthisrift;
    3034end
    31 
    32 
Note: See TracChangeset for help on using the changeset viewer.