|
Last change
on this file since 4102 was 4102, checked in by seroussi, 15 years ago |
|
changes .m solutions, transient missing
|
|
File size:
766 bytes
|
| Rev | Line | |
|---|
| [4102] | 1 | function md=slopecompute(md);
|
|---|
| 2 | %SLOPECOMPUTE - compute the slope of a model
|
|---|
| 3 | %
|
|---|
| 4 | % Usage:
|
|---|
| 5 | % md=slopecompute(md)
|
|---|
| 6 | %
|
|---|
| 7 | %timing
|
|---|
| 8 | t1=clock;
|
|---|
| 9 |
|
|---|
| 10 | analysis_types=SlopeAnalysisEnum;
|
|---|
| 11 | solution_type=SlopeAnalysisEnum;
|
|---|
| 12 |
|
|---|
| 13 | displaystring(md.verbose,'%s',['create finite element model']);
|
|---|
| 14 | femmodel=NewFemModel(md,solution_type,analysis_types);
|
|---|
| 15 |
|
|---|
| 16 | %retrieve parameters
|
|---|
| 17 | verbose=femmodel.parameters.Verbose;
|
|---|
| 18 | qmu_analysis=femmodel.parameters.QmuAnalysis;
|
|---|
| 19 |
|
|---|
| 20 | %compute solution
|
|---|
| 21 | if ~qmu_analysis,
|
|---|
| 22 | displaystring(verbose,'%s',['call computational core']);
|
|---|
| 23 | bedslope_core(femmodel);
|
|---|
| 24 | else
|
|---|
| 25 | %launch dakota driver for diagnostic core solution
|
|---|
| 26 | Qmu(femmodel);
|
|---|
| 27 | end
|
|---|
| 28 |
|
|---|
| 29 | %stop timing
|
|---|
| 30 | t2=clock;
|
|---|
| 31 | displaystring(md.verbose,'\n%s\n',['solution converged in ' num2str(etime(t2,t1)) ' seconds']);
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.