Ahmad, > I asked before how to implement rhs function which has an exponential > value on a part of the domain \omega_1 (f = a*x*exp(-b*y) on > \omega_1=[-0.25,0.25]x[-1,1] > > f =0 on \omega_2, where > > \omega=[-1,1]x[-1,1]=\omega_1 U \omega_2 ), i.e for each point (x,y) > returns double value for the rhs. > > I tried to modify step-8 by adding and declare > > virtual void vector_value_lists (const std::vector<Point<dim> > &points, > std::vector<double > &value_list) const; > > and I tried to modify in some places, but it still give me an error in the > following: > > std::vector< double > rhs_values (n_q_points, > vector< double >); > > In the attachment you will find the modified file.
Your attachment was too big to go through to the mailing list but I'll answer your question anyway: I assume you mean this error: step-8.cc: In member function 'void HelmholtzProblem<dim>::assemble_system()': step-8.cc:925:3: error: 'vector' was not declared in this scope step-8.cc:925:11: error: expected primary-expression before 'double' All the compiler is telling you is that you don't have the right syntax. I don't know what exactly you were trying to achieve but the right syntax for the line in question is simply std::vector<double> rhs_values (n_q_points); W. -- ------------------------------------------------------------------------- Wolfgang Bangerth email: [email protected] www: http://www.math.tamu.edu/~bangerth/ _______________________________________________ dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
