On Mon, Mar 13, 2017 at 11:06 AM, Barna Becsek <barnabec...@gmail.com> wrote:
> Dear Roy, > > I was able to overcome the problem with a little help from a friend. > Basically what I did is replace “this->qrule->get_weights()” with > “const_cast<const QBase *>(this->qrule)->get_weights()” and everything > worked fine! > I, however, still don’t understand why this would be necessary. In theory > qrule already is a QBase pointer. > const_cast compiles down to literally no machine instructions IIRC. This can't really have fixed the problem. Maybe there was not problem in the first place, or maybe you have a Heisenbug... the latter can sometimes be "fixed" with an innocuous change like adding a print statement... -- John ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users