From: Christoph Schwarzbach <cschwarz@st...>  20040427 09:07:21

Problem: Example # 13 (ex13.C) doesn't compile using complex numbers. Rationale: Variables U_Old, U, u_x, u_y, v_x, and v_y (ex13.C, lines 476 to 481) are declared realvalued vectors and numbers. They are used to hold real or complexvalued solution components. This is only valid for realvalued solutions if libmesh is built with complex number support disabled. Therefore, initialization with complexvalued solution components fails during compilation stage. Solution: Change declaration to NumberVectorValue and Number, respectively (see patch below). Christoph ? patch Index: examples/ex13/ex13.C =================================================================== RCS file: /cvsroot/libmesh/libmesh/examples/ex13/ex13.C,v retrieving revision 1.4 diff c r1.4 ex13.C *** examples/ex13/ex13.C 20 Mar 2004 15:16:56 0000 1.4  examples/ex13/ex13.C 27 Apr 2004 08:22:28 0000 *************** *** 473,484 **** // Definitions for convenience. It is sometimes simpler to do a // dot product if you have the full vector at your disposal. ! const Point U_old (u_old, v_old); ! const Point U (u, v); ! const Real u_x = grad_u(0); ! const Real u_y = grad_u(1); ! const Real v_x = grad_v(0); ! const Real v_y = grad_v(1); // First, an iloop over the velocity degrees of freedom. // We know that n_u_dofs == n_v_dofs so we can compute contributions  473,484  // Definitions for convenience. It is sometimes simpler to do a // dot product if you have the full vector at your disposal. ! const NumberVectorValue U_old (u_old, v_old); ! const NumberVectorValue U (u, v); ! const Number u_x = grad_u(0); ! const Number u_y = grad_u(1); ! const Number v_x = grad_v(0); ! const Number v_y = grad_v(1); // First, an iloop over the velocity degrees of freedom. // We know that n_u_dofs == n_v_dofs so we can compute contributions 