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

Last change on this file since 6323 was 6323, checked in by Mathieu Morlighem, 14 years ago

Added some verbosity levels and generalized

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 /*intermediary: */
33 IoModel* iomodel=NULL;
34
35 iomodel = new IoModel(IOMODEL);
36 SetVerbosityLevel(iomodel->verbose);
37
38 for(i=0;i<nummodels;i++){
39
40 analysis_type=analysis_type_list[i];
41
42 ISSMPRINTF(VerboseMProcessor()," create datasets for analysis %s\n",EnumToString(analysis_type));
43 CreateDataSets(&elements,&nodes,&vertices,&materials,&constraints,&loads,&parameters,iomodel,IOMODEL,solution_type,analysis_type,nummodels,i);
44 }
45
46 /*Free ressources:*/
47 delete iomodel;
48
49 /*Assign output pointers:*/
50 *pelements=elements;
51 *pnodes=nodes;
52 *pvertices=vertices;
53 *pmaterials=materials;
54 *pconstraints=constraints;
55 *ploads=loads;
56 *pparameters=parameters;
57
58}
Note: See TracBrowser for help on using the repository browser.