On Tue, 3 Jun 2014 13:50:04 +0300
Päivo Simson <[email protected]> wrote:

> Hi!
> 
> Is there a way to disable console output for
> interpolate_nonmatching_mesh? This happens when the point is outside
> the original mesh. The output looks like this:
> ...
> <Point x = -7 y = 17.5 z = 0>
> <Point x = -7 y = 10.5 z = 0>
> <Point x = 7 y = 17.5 z = 0>
> <Point x = -7 y = 3.5 z = 0>
> <Point x = 21 y = 17.5 z = 0>
> ...
> I could not find anywhere in the source code where these messages
> could be disabled. Im using fenicstools-1.3.0

This is probably because of 

   384       id = mesh.bounding_box_tree()->compute_closest_entity(point).first;
   385       cout << "Extrapolating function value at x = " << point
   386            << " (not inside domain)." << endl;

in dolfin/function/Function.cpp which happens when extrapolating. This
is really annoying and flooding stdout and should be fixed. AFAIK this
can only be muted using 

  set_log_active(false);

before executing some extrapolating code and afterwards reverted by

  set_log_active(true);

Jan

> 
> Any help is much appreciated.
> 
> Best regards,
> Päivo

_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to