]> SALOME platform Git repositories - modules/yacs.git/blob - src/engine/Plugin/solution.cxx
Salome HOME
9eab080440d0de1111026dbc6608d623a5f8e806
[modules/yacs.git] / src / engine / Plugin / solution.cxx
1 // --- C++ ---
2 // --- coding: latin_1 ---
3 //
4 //    File
5 //      creation : 2007-02-22.15.08.41
6 //      revision : $Id$
7 //
8 //    Copyright © 2007 Commissariat à l'Energie Atomique
9 //      par Gilles ARNAUD (DM2S/SFME/LETR)
10 //        C.E. Saclay; Bat 454; 91191 GIF/YVETTE CEDEX; France
11 //        Tel: 01 69 08 38 86; Fax : 33 1 69 08 85 68 
12 //        Gilles.Arnaud@cea.fr
13 // 
14 //    Object
15 //      individu solution
16 // 
17 //___________________________________________________________________
18
19 #include "solution.hxx"
20
21 #include <iostream>
22
23 Solution::Solution(std::vector<double> &par, std::vector<double> &crt)
24 {
25     param = &par;
26     obj = &crt;
27 }
28
29 Solution::~Solution(void)
30 {
31     delete param;
32     delete obj;
33 }
34
35 void Solution::echo(void)
36 {
37     int     i;
38
39     for (i=0; i<param->size(); i++)
40         std::cout << (*param)[i] << "  ";
41     std::cout << std::endl << "->" ;
42     for (i=0; i<obj->size(); i++)
43         std::cout << "  " << (*obj)[i];
44     std::cout << std::endl;
45 }
46