From: Charles P. <cha...@gm...> - 2018-05-23 18:54:43
|
thanks for the reply. this is part of a dynamic quadrature rule, so its not clear what orders I may need, but in my current application, they are almost always greater than 43. On Wed, May 23, 2018 at 2:51 PM, John Peterson <jwp...@gm...> wrote: > > > On Wed, May 23, 2018 at 11:10 AM, Charles Puelz <cha...@gm...> > wrote: > >> Hi everyone, >> >> I'd like to use the QGrid object as a quadrature rule, and use an order >> that's potentially >> much bigger than what is defined in the Order enum. For example, I'd like >> to do: >> >> Order foo = static_cast<Order>(100) >> >> but I am concerned about undefined behavior with this cast. Is there a >> good way >> to use QGrid with an order greater than 43? >> > > The easiest thing would probably be to just add your own enumerations up > to whatever order you need. The list can be sparse, i.e. you don't have to > list everything between 43 and 100. > > -- > John > -- Charles Puelz Postdoc UNC Math Department cpuelz.github.io |