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
Line 
1function md=diagnostic(md);
2%DIAGNOSTIC - compute the velocity field of a model
3%
4% Usage:
5% md=diagnostic(md)
6%
7 %timing
8 t1=clock;
9
10 analyses=[DiagnosticHorizAnalysisEnum,DiagnosticVertAnalysisEnum,DiagnosticStokesAnalysisEnum,DiagnosticHutterAnalysisEnum,SlopecomputeAnalysisEnum];
11
12 displaystring(md.verbose,'%s',['create fem model']);
13 femmodel=CreateFemModel(md,analyses);
14
15 %compute solution
16 if ~femmodel.parameters.QmuAnalysis,
17 if femodel.parameters.control_analysis,
18
19 %launch core of control solution.
20 md.results.DiagnosticAnalysis=control_core(femmodel);
21
22 else,
23
24 %launch core of diagnostic solution.
25 md.results.DiagnosticAnalysis=diagnostic_core(femmodel);
26
27 end
28 else
29 %launch dakota driver for diagnostic core solution
30 Qmu(femmodel);
31 end
32
33 %stop timing
34 t2=clock;
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.