Hi folks, The member function zero_variable() defined in class System conducts two loops over nodes and over elements to zero the NumericVector v. It appears to me that the number of nodes should be different from that of elements, and the NumericVector v should have the same size as total nodal variables. I am curious why the loop over element is necessary.
On the other hand, the element loop uses: unsigned int n_comp = elem->n_comp(sys_num,var_num); const dof_id_type index = elem->dof_number(sys_num,var_num,i); Does Elem class have member functions n_comp() and dof_number()? Thank you for answers in advances. Xujun void zero_variable (NumericVector<Number>& v, unsigned int var_num) const; ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
