From: robert <robert.bodner@un...> - 2010-11-25 19:50:51
Hi to all,
I am trying to learn libmesh but I still have some problems.
Right now I want to solve the diffusion equation but after every time
step I would like to look at the results to evaluate them.
Unfortunately I couldn't figure out how to do so.
I have just tried to use something which I found in
exact_error_estimator.C Here my slightly modified code:
const System& fine_system = es.get_system(system.name());
// system fine_system.update_global_solution(global_soln);
fine_soln->init (global_soln.size(), true, SERIAL);
(*fine_soln) = global_soln;
fine_values = AutoPtr<MeshFunction> (new MeshFunction(es, *fine_soln,
const std::vector<Point>& fe_points = fe->get_xyz();
When I try to compile this I get the following error message: error:
expected type-specifier before ‘(’ token which I don't understand
because in my opinien I specified the types. However, I am not ever sure
if I can use this to get where I want.
thank you very much, Robert
From: Roy Stogner <roystgnr@ic...> - 2010-12-02 03:45:28
On Thu, 25 Nov 2010, robert wrote:
> When I try to compile this I get the following error message: error:
> expected type-specifier before ‘(’ token which I don't understand
> because in my opinien I specified the types.
Make sure you're not missing an include file; that would be the
easiest way to end up with a type that's known to you but not your
Line numbers are important. There are a hundred open-parentheses in
your code; guessing where a bug is is futile unless you first figure
out *which* '(' is preceded by an unrecognized type.
> However, I am not ever sure if I can use this to get where I want.
Sorry I missed your earlier Forum post - as I just said there;
MeshFunction will do what you want but there are more efficient things
to do depending on what extra context you have in your code.