ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/app/microstructure/src/main.cpp
Revision: 801
Committed: Tue Jun 7 19:54:41 2016 UTC (8 years, 11 months ago) by couturad
File size: 2481 byte(s)
Log Message:
cas test microstructure plus bug d'inversion VER VES

File Contents

# User Rev Content
1 francois 756 //------------------------------------------------------------
2     //------------------------------------------------------------
3     // MAGiC
4     // Jean Christophe Cuilli�re et Vincent FRANCOIS
5     // D�partement de G�nie M�canique - UQTR
6     //------------------------------------------------------------
7     // Le projet MAGIC est un projet de recherche du d�partement
8     // de g�nie m�canique de l'Universit� du Qu�bec �
9     // Trois Rivi�res
10     // Les librairies ne peuvent �tre utilis�es sans l'accord
11     // des auteurs (contact : francois@uqtr.ca)
12     //------------------------------------------------------------
13     //------------------------------------------------------------
14     //
15     // main.cpp
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H25
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23    
24    
25    
26    
27     #include "gestionversion.h"
28     #include "magic_application.h"
29 couturad 772 #include "ve_ver.h"
30 couturad 801 #include "ve_ves.h"
31 francois 756 //---------------------------------------------------------------------------
32    
33    
34    
35    
36     int main(int argc,char **argv)
37     {
38     std::vector<MAGIC_PARAMETRE_APPLICATION> lst;
39 couturad 772 MAGIC_PARAMETRE_APPLICATION p1(2,(char*)"-construire",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Construction du VER selon le fichier de parametre");
40     MAGIC_PARAMETRE_APPLICATION p2(3,(char*)"-param",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier parametre");
41     MAGIC_PARAMETRE_APPLICATION p3(4,(char*)"-creeparam",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Création d'un fichier parametre");
42     p1.ajouter_dependance(3);
43     p3.ajouter_dependance(1);
44     lst.push_back(p1);
45     lst.push_back(p2);
46     lst.push_back(p3);
47     MAGIC_APPLICATION app((char*)"Homogéinisation d'une microstructure",argc,argv,lst,false,true);
48     if (app.get_erreur()==true) return 0;
49 francois 756
50 couturad 772 if (app.get_action()==2)
51     {
52     char fichierparam[1000];
53     app.recupere_parametre_string(3,fichierparam,(char*)"Fichier parametre manquant");
54 couturad 801 VE_VES *ves = new VE_VES();
55     ves->active_affichage(app.affiche);
56     ves->lire_param_VES(fichierparam);
57     ves->construire();
58 couturad 772
59     }
60 francois 756
61 couturad 772 if (app.get_action()==4)
62     {
63     char fichierout[1000];
64     app.recupere_parametre_string(1,fichierout,(char*)"Fichier resultat manquant");
65     OT_PARAMETRES param;
66     ini_param_VER(&param);
67     param.enregistrer(fichierout);
68     }
69 francois 756 app.affiche((char*)"Fin");
70     return 0;
71     }
72    
73    
74    
75     #pragma package(smart_init)