|
Last change
on this file since 13975 was 13975, checked in by Mathieu Morlighem, 13 years ago |
|
merged trunk-jpl and trunk for revision 13974
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | /*!\file: DakotaPlugin.h:
|
|---|
| 2 | */
|
|---|
| 3 |
|
|---|
| 4 | #ifndef _DAKOTAPLUGIN_H
|
|---|
| 5 | #define _DAKOTAPLUGIN_H
|
|---|
| 6 |
|
|---|
| 7 | #ifdef _HAVE_DAKOTA_ //only works if dakota library has been compiled in.
|
|---|
| 8 |
|
|---|
| 9 | /*Headers:*/
|
|---|
| 10 | #include <DirectApplicInterface.H>
|
|---|
| 11 | #include "../../toolkits/toolkits.h"
|
|---|
| 12 | #include "../../classes/classes.h"
|
|---|
| 13 |
|
|---|
| 14 | namespace SIM {
|
|---|
| 15 |
|
|---|
| 16 | class DakotaPlugin: public Dakota::DirectApplicInterface
|
|---|
| 17 | {
|
|---|
| 18 | public:
|
|---|
| 19 |
|
|---|
| 20 | DakotaPlugin(const Dakota::ProblemDescDB& problem_db,void* model);
|
|---|
| 21 | ~DakotaPlugin();
|
|---|
| 22 |
|
|---|
| 23 | /*these fields are used by core solutions: */
|
|---|
| 24 | void* femmodel;
|
|---|
| 25 |
|
|---|
| 26 | int counter;
|
|---|
| 27 |
|
|---|
| 28 | protected:
|
|---|
| 29 |
|
|---|
| 30 | // execute the input filter portion of a direct evaluation invocation
|
|---|
| 31 | //int derived_map_if(const Dakota::String& if_name);
|
|---|
| 32 | /// execute an analysis code portion of a direct evaluation invocation
|
|---|
| 33 | int derived_map_ac(const Dakota::String& ac_name);
|
|---|
| 34 | // execute the output filter portion of a direct evaluation invocation
|
|---|
| 35 | //int derived_map_of(const Dakota::String& of_name);
|
|---|
| 36 |
|
|---|
| 37 | /*add for issm: */
|
|---|
| 38 | int GetCounter();
|
|---|
| 39 |
|
|---|
| 40 | private:
|
|---|
| 41 |
|
|---|
| 42 | };
|
|---|
| 43 |
|
|---|
| 44 | } // namespace SIM
|
|---|
| 45 |
|
|---|
| 46 | #endif //only works if dakota library has been compiled in.
|
|---|
| 47 |
|
|---|
| 48 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.