Mercurial > fem-fenics-eugenio
comparison src/Function.cc @ 168:67944f307560
Remove the verbose debug output
author | gedeone-octave <marcovass89@hotmail.it> |
---|---|
date | Sun, 06 Oct 2013 22:31:48 +0100 |
parents | 5fe2a157f4eb |
children | 9e944b0d0fc8 |
comparison
equal
deleted
inserted
replaced
167:3895c8d4c066 | 168:67944f307560 |
---|---|
81 | 81 |
82 if (V->dim () != myu.length ()) | 82 if (V->dim () != myu.length ()) |
83 error ("The size of the functional space and of the vector must agree"); | 83 error ("The size of the functional space and of the vector must agree"); |
84 else | 84 else |
85 { | 85 { |
86 std::cout <<"creating function from vector..."<< std::endl; | |
87 dolfin::Vector du(myu.length ()); | 86 dolfin::Vector du(myu.length ()); |
88 for (std::size_t i = 0; i < myu.length (); ++i) | 87 for (std::size_t i = 0; i < myu.length (); ++i) |
89 du.setitem (i, myu(i)); | 88 du.setitem (i, myu(i)); |
90 | 89 |
91 boost::shared_ptr<dolfin::Vector> uu (new dolfin::Vector(du)); | 90 boost::shared_ptr<dolfin::Vector> uu (new dolfin::Vector(du)); |
108 | 107 |
109 if (f->value_rank () < 1) | 108 if (f->value_rank () < 1) |
110 error ("Function: The function you provided isn't a vecotr field"); | 109 error ("Function: The function you provided isn't a vecotr field"); |
111 else | 110 else |
112 { | 111 { |
113 std::cout <<"Extracting function..."<< std::endl; | |
114 if (idx < 1 || idx > f->value_dimension (0)) | 112 if (idx < 1 || idx > f->value_dimension (0)) |
115 error ("Function: index out of bounds"); | 113 error ("Function: index out of bounds"); |
116 else | 114 else |
117 { | 115 { |
118 boost::shared_ptr <const dolfin::Function> u (new dolfin::Function((*f)[idx - 1])); | 116 boost::shared_ptr <const dolfin::Function> u (new dolfin::Function((*f)[idx - 1])); |