Ok, thanks for hint.
attached you will find the patch.

best regards

Ingo

John Peterson wrote:
> Use the svn diff command against the HEAD version to create a patch.
> Also, your email was formatted as HTML, it garbled the code in my mail
> reader...
>
> -J
>
> Ingo Schmidt writes:
>  > -------------------------------------------------------------------------
>  > SF.Net email is sponsored by: The Future of Linux Business White Paper
>  > from Novell.  From the desktop to the data center, Linux is going
>  > mainstream.  Let it simplify your IT future.
>  > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
>   

-- 
Dipl.-Ing. Ingo Schmidt
Institute of Modelling and Computation

Hamburg University of Technology        tel: +49/(0)40/42878-4483
Denickestr.17                           fax: +49/(0)40/42878-4353       
Building L/ room: 3032                  e
21075 Hamburg

http://www.mub.TU-Harburg.de

Index: src/mesh/mesh_data.C
===================================================================
--- src/mesh/mesh_data.C        (Revision 2572)
+++ src/mesh/mesh_data.C        (Arbeitskopie)
@@ -761,3 +761,23 @@
   this->_node_data = omd._node_data;
   this->_elem_data = omd._elem_data;
 }
+
+void MeshData::set_data(Node* node, std::vector<Number> nod_val)
+{
+  if(has_data(node) && nod_val.size() == (this->get_data(node)).size())
+         this->_node_data[node] = nod_val;
+#ifdef DEBUG
+ else if (has_data(node) && nod_val.size() != (this->get_data(node)).size())
+ {
+      std::cerr << "ERROR: Unequal size of data vectors for this node 
"<<node->id()<<"." << std::endl;
+      error();
+ }
+ else
+  {
+      std::cerr << "ERROR: No data for this node "<<node->id()<<"." << 
std::endl;
+      error();
+  }
+#endif
+
+}
+
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to