Last change
on this file since 4028 was 4028, checked in by Eric.Larour, 15 years ago |
Thinking about shuffling analysis_type, sub_analysis_type and solution_type
|
File size:
973 bytes
|
Rev | Line | |
---|
[738] | 1 | function 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 |
|
---|
[4028] | 10 | solution_type=DiagnosticAnalysisEnum;
|
---|
| 11 | analysis_types=[DiagnosticHorizAnalysisEnum,DiagnosticVertAnalysisEnum,DiagnosticStokesAnalysisEnum,DiagnosticHutterAnalysisEnum,SlopecomputeAnalysisEnum];
|
---|
[2333] | 12 |
|
---|
[4002] | 13 | displaystring(md.verbose,'%s',['create fem model']);
|
---|
[4028] | 14 | femmodel=CreateFemModel(md,solution_type,analysis_types);
|
---|
[2333] | 15 |
|
---|
[302] | 16 | %compute solution
|
---|
[4002] | 17 | if ~femmodel.parameters.QmuAnalysis,
|
---|
| 18 | if femodel.parameters.control_analysis,
|
---|
| 19 |
|
---|
[1907] | 20 | %launch core of control solution.
|
---|
[4002] | 21 | md.results.DiagnosticAnalysis=control_core(femmodel);
|
---|
[1907] | 22 |
|
---|
| 23 | else,
|
---|
[4002] | 24 |
|
---|
[1907] | 25 | %launch core of diagnostic solution.
|
---|
[4002] | 26 | md.results.DiagnosticAnalysis=diagnostic_core(femmodel);
|
---|
[1907] | 27 |
|
---|
| 28 | end
|
---|
[959] | 29 | else
|
---|
| 30 | %launch dakota driver for diagnostic core solution
|
---|
[4002] | 31 | Qmu(femmodel);
|
---|
[959] | 32 | end
|
---|
[1] | 33 |
|
---|
[302] | 34 | %stop timing
|
---|
[1] | 35 | t2=clock;
|
---|
[2330] | 36 | displaystring(md.verbose,'\n%s\n',['solution converged in ' num2str(etime(t2,t1)) ' seconds']);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.