ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/mtu/src/mg_solution.h
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months, 1 week ago) by francois
Content type: text/plain
File size: 2973 byte(s)
Log Message:
compatibilité Ubuntu 22.04
Suppression des refeences à Windows
Ajout d'une banière

File Contents

# User Rev Content
1 francois 1158 //####//------------------------------------------------------------
2     //####//------------------------------------------------------------
3     //####// MAGiC
4     //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5     //####// Departement de Genie Mecanique - UQTR
6     //####//------------------------------------------------------------
7     //####// MAGIC est un projet de recherche de l equipe ERICCA
8     //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9     //####// http://www.uqtr.ca/ericca
10     //####// http://www.uqtr.ca/
11     //####//------------------------------------------------------------
12     //####//------------------------------------------------------------
13     //####//
14     //####// mg_solution.h
15     //####//
16     //####//------------------------------------------------------------
17     //####//------------------------------------------------------------
18     //####// COPYRIGHT 2000-2024
19     //####// jeu 13 jun 2024 11:58:53 EDT
20     //####//------------------------------------------------------------
21     //####//------------------------------------------------------------
22 francois 283 #ifndef __MGSOLUTION_
23     #define __MGSOLUTION_
24    
25    
26    
27    
28 francois 1158
29    
30 francois 283 #include <map>
31     #include <set>
32 francois 377 #include <vector>
33 francois 283
34 francois 1158
35 francois 283 #include <stdio.h>
36    
37     #include "mg_identificateur.h"
38 francois 375 #include "mg_definition.h"
39 francois 283
40     const unsigned int SOL_EXISTANTE=0;
41    
42    
43 francois 1158 std::ostream& operator << (std::ostream& o,class MG_SOLUTION& sol);
44 francois 283
45    
46 francois 1158 class MG_SOLUTION : public MG_IDENTIFICATEUR
47 francois 283 {
48     public:
49 francois 375
50 francois 377 MG_SOLUTION(class MG_MAILLAGE *mai,int nb,char* chemin,int code,std::string nomsol,int entite=MAGIC::ENTITE_SOLUTION::ENTITE_NOEUD,int type_solution=MAGIC::TYPE_SOLUTION::SCALAIRE);
51     MG_SOLUTION(unsigned long num,MG_MAILLAGE *mai,int nb,char* chemin,int code,std::string nomsol,int entite=MAGIC::ENTITE_SOLUTION::ENTITE_NOEUD,int type_solution=MAGIC::TYPE_SOLUTION::SCALAIRE);
52 francois 283 virtual ~MG_SOLUTION();
53    
54 francois 377 double lire(int i,int j,int coord=0,int num_no=0);
55     void ecrire(double val,int i,int j,int coord=0,int num_no=0);
56 francois 283 void active_solution(int num);
57     void change_legende(int num,std::string val);
58     std::string get_legende(int num);
59     int get_nb_champ(void);
60     MG_MAILLAGE* get_maillage(void);
61 francois 377 double get_legende_min(int num=0);
62     double get_legende_max(int num=0);
63 francois 283 void efface(void);
64     std::string get_nom(void);
65 francois 326 std::string get_nom_fichier(void);
66 francois 635 int get_entite_solution(void);
67 francois 377 int get_dim_solution(void);
68    
69 francois 763 virtual void enregistrer(std::ostream& o,double version);
70 francois 910 virtual void get_fichier_dependant(std::vector<std::string> &liste_fichier);
71 francois 283
72 francois 910
73 francois 283 friend std::ostream& operator << (std::ostream& o,MG_SOLUTION& maillage);
74    
75     private:
76 francois 377 void inisolution(char* chemin,int code);
77 francois 283 char *nom_fichier;
78     int nb_champs;
79     FILE* in;
80     MG_MAILLAGE* mgmai;
81 francois 377 double solmin[MAX_TYPE_SOLUTION];
82     double solmax[MAX_TYPE_SOLUTION];
83 francois 283 std::string* legende;
84     std::string nomsolution;
85     int typeentite;
86 francois 377 int dim_solution;
87     std::vector<unsigned long> hash;
88 francois 283 };
89    
90    
91    
92     #endif
93    
94