source: issm/trunk/src/m/solutions/jpl/diagnostic.m@ 4002

Last change on this file since 4002 was 4002, checked in by Eric.Larour, 15 years ago

Added new Verticesdof and NodesDof modules. Deleted Dof module. Created new counters for loads and constraints. Presorting grouped together. Update of counters. CreateDataSets simplified.

File size: 908 bytes
RevLine 
[738]1function md=diagnostic(md);
[302]2%DIAGNOSTIC - compute the velocity field of a model
[738]3%
[129]4% Usage:
5% md=diagnostic(md)
[302]6%
[1]7 %timing
8 t1=clock;
9
[4002]10 analyses=[DiagnosticHorizAnalysisEnum,DiagnosticVertAnalysisEnum,DiagnosticStokesAnalysisEnum,DiagnosticHutterAnalysisEnum,SlopecomputeAnalysisEnum];
[2333]11
[4002]12 displaystring(md.verbose,'%s',['create fem model']);
13 femmodel=CreateFemModel(md,analyses);
[2333]14
[302]15 %compute solution
[4002]16 if ~femmodel.parameters.QmuAnalysis,
17 if femodel.parameters.control_analysis,
18
[1907]19 %launch core of control solution.
[4002]20 md.results.DiagnosticAnalysis=control_core(femmodel);
[1907]21
22 else,
[4002]23
[1907]24 %launch core of diagnostic solution.
[4002]25 md.results.DiagnosticAnalysis=diagnostic_core(femmodel);
[1907]26
27 end
[959]28 else
29 %launch dakota driver for diagnostic core solution
[4002]30 Qmu(femmodel);
[959]31 end
[1]32
[302]33 %stop timing
[1]34 t2=clock;
[2330]35 displaystring(md.verbose,'\n%s\n',['solution converged in ' num2str(etime(t2,t1)) ' seconds']);
Note: See TracBrowser for help on using the repository browser.