| 1 | /*!\file ModelProcessorx
|
|---|
| 2 | * \brief: create datasets using input binary file and a set of requested analyses
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 | #ifdef HAVE_CONFIG_H
|
|---|
| 6 | #include "config.h"
|
|---|
| 7 | #else
|
|---|
| 8 | #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
|
|---|
| 9 | #endif
|
|---|
| 10 |
|
|---|
| 11 | #include "../../objects/objects.h"
|
|---|
| 12 | #include "../../shared/shared.h"
|
|---|
| 13 | #include "../../DataSet/DataSet.h"
|
|---|
| 14 | #include "../../EnumDefinitions/EnumDefinitions.h"
|
|---|
| 15 | #include "../../include/include.h"
|
|---|
| 16 | #include "../../modules/modules.h"
|
|---|
| 17 |
|
|---|
| 18 | void ModelProcessorx(DataSet** pelements, DataSet** pnodes, DataSet** pvertices, DataSet** pmaterials, DataSet** pconstraints, DataSet** ploads, Parameters** pparameters, ConstDataHandle IOMODEL,int solution_type,int nummodels, int* analysis_type_list){
|
|---|
| 19 |
|
|---|
| 20 | int i;
|
|---|
| 21 | int analysis_type;
|
|---|
| 22 |
|
|---|
| 23 | /*output: */
|
|---|
| 24 | DataSet* elements=NULL;
|
|---|
| 25 | DataSet* nodes=NULL;
|
|---|
| 26 | DataSet* vertices=NULL;
|
|---|
| 27 | DataSet* materials=NULL;
|
|---|
| 28 | DataSet* constraints=NULL;
|
|---|
| 29 | DataSet* loads=NULL;
|
|---|
| 30 | Parameters* parameters=NULL;
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | /*intermediary: */
|
|---|
| 34 | IoModel* iomodel=NULL;
|
|---|
| 35 |
|
|---|
| 36 | _printf_(" fill model with matlab workspace data\n");
|
|---|
| 37 | iomodel = new IoModel(IOMODEL);
|
|---|
| 38 |
|
|---|
| 39 | for(i=0;i<nummodels;i++){
|
|---|
| 40 |
|
|---|
| 41 | analysis_type=analysis_type_list[i];
|
|---|
| 42 |
|
|---|
| 43 | _printf_(" create datasets for this analysis type:\n");
|
|---|
| 44 | CreateDataSets(&elements,&nodes,&vertices,&materials,&constraints,&loads,¶meters,iomodel,IOMODEL,solution_type,analysis_type,nummodels,i);
|
|---|
| 45 | }
|
|---|
| 46 |
|
|---|
| 47 | /*Free ressources:*/
|
|---|
| 48 | delete iomodel;
|
|---|
| 49 |
|
|---|
| 50 | /*Assign output pointers:*/
|
|---|
| 51 | *pelements=elements;
|
|---|
| 52 | *pnodes=nodes;
|
|---|
| 53 | *pvertices=vertices;
|
|---|
| 54 | *pmaterials=materials;
|
|---|
| 55 | *pconstraints=constraints;
|
|---|
| 56 | *ploads=loads;
|
|---|
| 57 | *pparameters=parameters;
|
|---|
| 58 |
|
|---|
| 59 | }
|
|---|