Changeset 9893
- Timestamp:
- 09/22/11 15:04:31 (13 years ago)
- Location:
- issm/trunk/src/m
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/process_solve_options.m
r9725 r9893 34 34 % process flaim arguments 35 35 outoptions.fmdir=getfieldvalue(options,'fmdir',['fm' num2str(feature('GetPid'))]); 36 outoptions.fmfile=getfieldvalue(options,'fmfile','fm_targets');37 36 outoptions.overwrite=getfieldvalue(options,'overwrite','n'); 38 37 outoptions.keep=getfieldvalue(options,'keep','y'); -
issm/trunk/src/m/model/solve.m
r9882 r9893 38 38 if (solutionenum == FlaimSolutionEnum) 39 39 modelconsistency(true); 40 md.mesh.checkconsistency(md );41 md.flaim.checkconsistency(md );40 md.mesh.checkconsistency(md,solutionenum); 41 md.flaim.checkconsistency(md,solutionenum); 42 42 if ~modelconsistency() 43 43 error(' '); -
issm/trunk/src/m/solutions/flaim_sol.m
r9882 r9893 1 1 function 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. 5 4 % 6 5 % options come from the solve.m routine. They can include flaim options: 7 6 % 8 % fmdir: any directory whereto run the flaim analysis7 % fmdir: any directory to run the flaim analysis 9 8 % fmfile: input file for flaim 10 9 % overwrite: overwrite qmudir before analysis 11 10 % keep: keep qmudir after analysis 11 % latsgn: latitude sign (+1, north; -1, south) 12 % cmap: matlab colormap 13 % 12 14 13 15 disp('preprocessing flaim inputs'); … … 34 36 [pathstr,name,ext,versn] = fileparts(md.flaim.tracks); 35 37 fm_tracks=fullfile('',[name ext versn]); 36 [pathstr,name,ext,versn] = fileparts(options.fmfile); 37 if isempty(ext) 38 ext='.kml'; 38 if ~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]); 46 else 47 fm_targets='fm_targets.kml'; 48 filelog='fm_targets.log'; 39 49 end 40 filekml=fullfile(pathstr,[name ext versn]); 41 ext='.log'; 42 filelog=fullfile(pathstr,[name ext versn]); 50 md.flaim.targets=fm_targets; 43 51 if ~isempty(md.flaim.solution) 44 52 [pathstr,name,ext,versn] = fileparts(md.flaim.solution); … … 80 88 81 89 display('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,f ilekml);90 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,fm_targets); 83 91 % for testing 84 %f ilekml='issm-split-geikie1-targets.kml';92 %fm_targets='issm-split-geikie1-targets.kml'; 85 93 86 94 % call flaim … … 88 96 display('Calling flaim.'); 89 97 FLAIM_DIR=flaimdir(); 90 %system([FLAIM_DIR '/clasp/swathModule/models/issm/issm.exe -kml ' fm_tracks ' -kml ' f ilekml' -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 ' f ilekml' -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]); 99 flaim_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']; 92 100 if (md.flaim.usevalueordering) 93 101 flaim_cmd=[flaim_cmd ' -usevalueordering'];
Note:
See TracChangeset
for help on using the changeset viewer.