David, 

  The following if block seems to want a serial vector. I did try passing the 
System::current_local_solution to the mesh function, but it still resets the 
element to nullptr. 

-Manav

  // If we have an element, but it's not a local element, then we
  // either need to have a serialized vector or we need to find a
  // local element sharing the same point.
  if (element &&
      (element->processor_id() != this->processor_id()) &&
      _vector.type() != SERIAL)
    {
      // look for a local element containing the point
      std::set<const Elem *> point_neighbors;
      element->find_point_neighbors(p, point_neighbors);
      element = libmesh_nullptr;
      std::set<const Elem *>::const_iterator       it  = 
point_neighbors.begin();
      const std::set<const Elem *>::const_iterator end = point_neighbors.end();
      for (; it != end; ++it)
        {
          const Elem * elem = *it;
          if (elem->processor_id() == this->processor_id())
            {
              element = elem;
              break;
            }
        }
    }



> On Aug 11, 2016, at 6:39 PM, David Knezevic <[email protected]> 
> wrote:
> 
> On Thu, Aug 11, 2016 at 7:10 PM, Manav Bhatia <[email protected] 
> <mailto:[email protected]>> wrote:
> I got this to work!!!
> 
> The error was that I was not using a serialized vector to initialize the mesh 
> function. So, even though the point locator was finding the elem, the mesh 
> function was setting it to null due to the vector not being serial.
> 
> 
> FYI, it should be possible to get this to work with a GHOSTED vector. You 
> just have to augment the send_list correctly, and call the localize method 
> that takes the send_list argument.
> 

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to