Re: [Libmesh-users] project solution with FEMFunction

2013-09-21 Thread Paul T. Bauman
OK, I've got it. PR forthcoming. Manav was on the right track moving the side_fe_reinit around. reinit needs to be get called to properly initialize the quadrature rule. However, the reason this didn't fail in 2D or on the edge in 3D was because QGauss (the default quadrature rule here) internally

Re: [Libmesh-users] project solution with FEMFunction

2013-09-21 Thread Paul T. Bauman
No problem! This is still good info - probably means this has been broken since I originally wrote that code. On Sep 21, 2013, at 7:49 AM, Manav Bhatia wrote: > Hi Paul, > > Now that I think of it, I had never before tested this for 3d cases. > > Sorry that I made the wrong claim

Re: [Libmesh-users] project solution with FEMFunction

2013-09-21 Thread Manav Bhatia
Hi Paul, Now that I think of it, I had never before tested this for 3d cases. Sorry that I made the wrong claim. Manav > On Sep 21, 2013, at 2:23 AM, "Paul T. Bauman" wrote: > > On Fri, Sep 20, 2013 at 10:26 PM, Paul T. Bauman wrote: >> >> >> Thanks for the test case! I'll pl

Re: [Libmesh-users] project solution with FEMFunction

2013-09-20 Thread Paul T. Bauman
On Fri, Sep 20, 2013 at 10:26 PM, Paul T. Bauman wrote: > > Thanks for the test case! I'll play with this in a little while and see if > I can reproduce. > OK, I can reproduce. Will figure out the problem and get a PR in. You said this worked previously - any chance you have a hash or version nu

Re: [Libmesh-users] project solution with FEMFunction

2013-09-20 Thread Paul T. Bauman
Hi Manav, On Fri, Sep 20, 2013 at 10:22 PM, Manav Bhatia wrote: >Did you try this in 2D or 3D? > 2D > I do not get this error in 2D, but it shows up in 3D. > Hmm, OK. > >The following code is able to reproduce the issue at my end. > > int main (int argc, char* const argv[]) > { >

Re: [Libmesh-users] project solution with FEMFunction

2013-09-20 Thread Manav Bhatia
Hi Paul, Did you try this in 2D or 3D? I do not get this error in 2D, but it shows up in 3D. The following code is able to reproduce the issue at my end. int main (int argc, char* const argv[]) { // Initialize libMesh. LibMeshInit init (argc, argv); { ParallelMe

Re: [Libmesh-users] project solution with FEMFunction

2013-09-20 Thread Manav Bhatia
Yes, it is 2239. I am sorry about the typo and the resulting confusion. -Manav On Fri, Sep 20, 2013 at 4:07 PM, Roy Stogner wrote: > > On Fri, 20 Sep 2013, Manav Bhatia wrote: > > Sorry I was not too specific. I am on the git master, and line 2339 is a >> call to qsiderule.n_points(). It has an

Re: [Libmesh-users] project solution with FEMFunction

2013-09-20 Thread Paul T. Bauman
Hmm. I can't reproduce this. I have a code that uses FEMFunction for projections and I bumped up the basis order and cannot trip the error you are. In fact, I manually verified that n_points() returns the correct value on that line. Can you make a test case that trips the error? Are you using a LAG

Re: [Libmesh-users] project solution with FEMFunction

2013-09-20 Thread Manav Bhatia
Just found the the call to side_fe_reinit() in this for loop. It seems like the entire block from lines 2238 to 2247 should be moved to after the context.side_fe_reinit() ? -Manav On Fri, Sep 20, 2013 at 4:21 PM, Manav Bhatia wrote: > I was comparing the code with AssemblyContributions in fem_s

Re: [Libmesh-users] project solution with FEMFunction

2013-09-20 Thread Manav Bhatia
I was comparing the code with AssemblyContributions in fem_system.C, and see that context.side_fe_reinit() has not been called before the call to get qsiderule.n_points(). Should that be added to the for loop on element sides at line 2248 and move the get_side_qrule method call (line 2238) after t

Re: [Libmesh-users] project solution with FEMFunction

2013-09-20 Thread Roy Stogner
On Fri, 20 Sep 2013, Manav Bhatia wrote: > Sorry I was not too specific. I am on the git master, and line 2339 is a > call to qsiderule.n_points(). It has an assertion of > libmesh_assert(!_points.empyt()), where the code throws an exception. I think Paul's (and my) confusion was a simple typo -

[Libmesh-users] project solution with FEMFunction

2013-09-20 Thread Manav Bhatia
Hi, Have there been any changes to System::project_solution() with FEMFunctionBase over the last 2-3 months? I had a piece of code that was working fine with it, but now is throwing an error at line 2339 in sytem_projection.C: const unsigned int n_qp = qsiderule.n_points(); It seems

Re: [Libmesh-users] project solution with FEMFunction

2013-09-20 Thread Manav Bhatia
On Fri, Sep 20, 2013 at 2:45 PM, Paul T. Bauman wrote: > On Fri, Sep 20, 2013 at 1:34 PM, Manav Bhatia wrote: > >> >>Have there been any changes to System::project_solution() with >> FEMFunctionBase over the last 2-3 months? >> > > Current master shows FEMFunctionBase was touched 5 months ag

Re: [Libmesh-users] project solution with FEMFunction

2013-09-20 Thread Paul T. Bauman
On Fri, Sep 20, 2013 at 1:34 PM, Manav Bhatia wrote: > >Have there been any changes to System::project_solution() with > FEMFunctionBase over the last 2-3 months? > Current master shows FEMFunctionBase was touched 5 months ago. >I had a piece of code that was working fine with it, but