robertsj / libdetran

deterministic transport utilities
MIT License
2 stars 2 forks source link

equation template #3

Closed robertsj closed 12 years ago

robertsj commented 12 years ago

In my naiveté, I thought I'd just toss the "equation" in as a smart pointer member. However, even though I inlined the solve function, perhaps being a pointer, it wasn't inlined upon profiling. Just creating a static equation each sweep dropped the time in half, and so I think I'm just going to template the sweeper.

robertsj commented 12 years ago

Switched things around so that InnerIteration instantiates the templated sweeper. I'll have to change this if any discretization is used beyond DD or SC is used (due to unknowns/cell).