source: issm/trunk/src/c/modules/ModelProcessorx/ModelProcessorx.cpp@ 5103

Last change on this file since 5103 was 5103, checked in by Mathieu Morlighem, 15 years ago

moved EnumAsString to EnumToString

File size: 1.6 KB
Line 
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 "../../Container/Container.h"
14#include "../../EnumDefinitions/EnumDefinitions.h"
15#include "../../include/include.h"
16#include "../../modules/modules.h"
17
18void ModelProcessorx(Elements** pelements, Nodes** pnodes, Vertices** pvertices, Materials** pmaterials, Constraints** pconstraints, Loads** ploads, Parameters** pparameters, ConstDataHandle IOMODEL,const int solution_type,const int nummodels,const int* analysis_type_list){
19
20 int i;
21 int analysis_type;
22
23 /*output: */
24 Elements* elements=NULL;
25 Nodes* nodes=NULL;
26 Vertices* vertices=NULL;
27 Materials* materials=NULL;
28 Constraints* constraints=NULL;
29 Loads* 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 analysis %s\n",EnumToString(analysis_type));
44 CreateDataSets(&elements,&nodes,&vertices,&materials,&constraints,&loads,&parameters,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}
Note: See TracBrowser for help on using the repository browser.