Changeset 9893


Ignore:
Timestamp:
09/22/11 15:04:31 (13 years ago)
Author:
jschierm
Message:

flaim: Implemented md.flaim.targets parameter.

Location:
issm/trunk/src/m
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/process_solve_options.m

    r9725 r9893  
    3434%  process flaim arguments
    3535outoptions.fmdir=getfieldvalue(options,'fmdir',['fm' num2str(feature('GetPid'))]);
    36 outoptions.fmfile=getfieldvalue(options,'fmfile','fm_targets');
    3736outoptions.overwrite=getfieldvalue(options,'overwrite','n');
    3837outoptions.keep=getfieldvalue(options,'keep','y');
  • issm/trunk/src/m/model/solve.m

    r9882 r9893  
    3838if (solutionenum == FlaimSolutionEnum)
    3939        modelconsistency(true);
    40         md.mesh.checkconsistency(md);
    41         md.flaim.checkconsistency(md);
     40        md.mesh.checkconsistency(md,solutionenum);
     41        md.flaim.checkconsistency(md,solutionenum);
    4242        if ~modelconsistency()
    4343                error(' ');
  • issm/trunk/src/m/solutions/flaim_sol.m

    r9882 r9893  
    11function md=flaim_sol(md,options)
    2 %QMU - apply Quantification of Margins and Uncertainties techniques
    3 %      to a solution sequence (like diagnostic.m, progonstic.m, etc ...),
    4 %      using the Dakota software from Sandia.
     2%
     3%   run flaim solution.
    54%
    65%   options come from the solve.m routine. They can include flaim options:
    76%
    8 %       fmdir:  any directory where to run the flaim analysis
     7%       fmdir:  any directory to run the flaim analysis
    98%       fmfile: input file for flaim
    109%       overwrite: overwrite qmudir before analysis
    1110%       keep: keep qmudir after analysis
     11%       latsgn: latitude sign (+1, north; -1, south)
     12%       cmap: matlab colormap
     13%
    1214
    1315disp('preprocessing flaim inputs');
     
    3436[pathstr,name,ext,versn] = fileparts(md.flaim.tracks);
    3537fm_tracks=fullfile('',[name ext versn]);
    36 [pathstr,name,ext,versn] = fileparts(options.fmfile);
    37 if isempty(ext)
    38     ext='.kml';
     38if ~isempty(md.flaim.targets)
     39    [pathstr,name,ext,versn] = fileparts(md.flaim.targets);
     40    if isempty(ext)
     41        ext='.kml';
     42    end
     43    fm_targets=fullfile(pathstr,[name ext versn]);
     44    ext='.log';
     45    filelog=fullfile(pathstr,[name ext versn]);
     46else
     47    fm_targets='fm_targets.kml';
     48    filelog='fm_targets.log';
    3949end
    40 filekml=fullfile(pathstr,[name ext versn]);
    41 ext='.log';
    42 filelog=fullfile(pathstr,[name ext versn]);
     50md.flaim.targets=fm_targets;
    4351if ~isempty(md.flaim.solution)
    4452        [pathstr,name,ext,versn] = fileparts(md.flaim.solution);
     
    8088
    8189display('Calling KMLMeshWrite.');
    82 KMLMeshWrite(md.miscellaneous.name,md.miscellaneous.notes,md.mesh.elements,md.mesh.vertexconnectivity,md.mesh.lat,md.mesh.long,md.qmu.partition,md.flaim.criterion,options.cmap,filekml);
     90KMLMeshWrite(md.miscellaneous.name,md.miscellaneous.notes,md.mesh.elements,md.mesh.vertexconnectivity,md.mesh.lat,md.mesh.long,md.qmu.partition,md.flaim.criterion,options.cmap,fm_targets);
    8391%  for testing
    84 %filekml='issm-split-geikie1-targets.kml';
     92%fm_targets='issm-split-geikie1-targets.kml';
    8593
    8694%  call flaim
     
    8896display('Calling flaim.');
    8997FLAIM_DIR=flaimdir();
    90 %system([FLAIM_DIR '/clasp/swathModule/models/issm/issm.exe -kml ' fm_tracks ' -kml ' filekml ' -gridsatequator 200000 -opt 1 -hst 2017-276T02:57:00 -hdur 4d -sparsepoints -usevalueordering -split-antimeridian >& ' filelog]);
    91 flaim_cmd=[FLAIM_DIR '/clasp/swathModule/models/issm/issm.exe -kml ' fm_tracks ' -kml ' filekml ' -gridsatequator ' int2str(md.flaim.gridsatequator) ' -opt 1 -hst 2017-276T02:57:00 -hdur 4d -sparsepoints'];
     98%system([FLAIM_DIR '/clasp/swathModule/models/issm/issm.exe -kml ' fm_tracks ' -kml ' fm_targets ' -gridsatequator 200000 -opt 1 -hst 2017-276T02:57:00 -hdur 4d -sparsepoints -usevalueordering -split-antimeridian >& ' filelog]);
     99flaim_cmd=[FLAIM_DIR '/clasp/swathModule/models/issm/issm.exe -kml ' fm_tracks ' -kml ' fm_targets ' -gridsatequator ' int2str(md.flaim.gridsatequator) ' -opt 1 -hst 2017-276T02:57:00 -hdur 4d -sparsepoints'];
    92100if (md.flaim.usevalueordering)
    93101        flaim_cmd=[flaim_cmd ' -usevalueordering'];
Note: See TracChangeset for help on using the changeset viewer.