Changeset 971


Ignore:
Timestamp:
06/12/09 20:22:19 (16 years ago)
Author:
Eric.Larour
Message:

Folded analysis_type into models

Location:
issm/trunk/src/m/solutions/cielo
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/cielo/diagnostic.m

    r967 r971  
    1010
    1111        %Build all models requested for diagnostic simulation
     12        models.analysis_type='diagnostic'; %needed for processresults
     13       
    1214        displaystring(md.debug,'%s',['reading diagnostic horiz model data']);
    1315        md.analysis_type='diagnostic'; md.sub_analysis_type='horiz'; models.dh=CreateFemModel(md);
     
    3941                %process results
    4042                if ~isstruct(md.results), md.results=struct(); end
    41                 md.results.diagnostic=processresults(results,models,'diagnostic');
     43                md.results.diagnostic=processresults(results,models);
    4244        else
    4345                %launch dakota driver for diagnostic core solution
  • issm/trunk/src/m/solutions/cielo/processresults.m

    r968 r971  
    1 function newresults=processresults(results,models,analysis_type);
     1function newresults=processresults(results,models)
    22%PROCESSRESULTS - process results from core solution
    33%
     
    1010%initialize output
    1111newresults=struct();
     12
     13%get analysis_type:
     14analysis_type=models.analysis_type;
    1215
    1316%recover models first
  • issm/trunk/src/m/solutions/cielo/prognostic.m

    r968 r971  
    99
    1010        %Build all models requested for diagnostic simulation
     11        models.analysis_type='prognostic'; %needed for processresults
     12       
    1113        displaystring(md.debug,'%s',['reading prognostic model data']);
    1214        md.analysis_type='prognostic'; models.p=CreateFemModel(md);
     
    2931        displaystring(md.debug,'\n%s',['load results...']);
    3032        if ~isstruct(md.results), md.results=struct(); end
    31         md.results.prognostic=processresults(results,models,'prognostic');
     33        md.results.prognostic=processresults(results,models);
    3234
    3335        %stop timing
  • issm/trunk/src/m/solutions/cielo/thermal.m

    r968 r971  
    77        %timing
    88        t1=clock;
     9       
     10        models.analysis_type='thermal'; %needed for processresults
    911
    1012        %Build all models requested for diagnostic simulation
     
    3032        %plug onto the model
    3133        if ~isstruct(md.results), md.results=struct(); end
    32         md.results.thermal=processresults(results,models,'thermal');
     34        md.results.thermal=processresults(results,models);
    3335
    3436        %stop timing
  • issm/trunk/src/m/solutions/cielo/transient2d.m

    r936 r971  
    88
    99%Build all models requested
     10models.analysis_type='transient'; %needed for processresults
     11
    1012displaystring(md.debug,'%s',['reading diagnostic horiz model data']);
    1113md.analysis_type='diagnostic'; md.sub_analysis_type='horiz'; models.dh=CreateFemModel(md);
  • issm/trunk/src/m/solutions/cielo/transient3d.m

    r968 r971  
    88
    99%Build all models related to diagnostic
     10models.analysis_type='transient'; %needed for processresults
     11
    1012displaystring(md.debug,'%s',['reading diagnostic horiz model data']);
    1113md.analysis_type='diagnostic'; md.sub_analysis_type='horiz'; models.dh=CreateFemModel(md);
     
    137139%process results
    138140if ~isstruct(md.results), md.results=struct(); end
    139 md.results.transient=processresults(results,models,'transient');
     141md.results.transient=processresults(results,models);
Note: See TracChangeset for help on using the changeset viewer.