Commit 4f660b1e authored by Lukas Riedel's avatar Lukas Riedel 📝

Remove assertions from flux reconstruction functions

The constructors properly initialize the asserted objects. There is
no point in the code where they can be replaced by empty/null pointers.
parent dd8873c2
......@@ -559,10 +559,6 @@ public:
gf_ptr = std::make_unique<GFFluxReconstruction>(
this->_log,gv,inifile.sub("fluxReconstruction"));
assert(fboundary);
assert(fparam);
assert(slop);
slop->setTime(state.time);
// update it with the state
......@@ -579,10 +575,6 @@ public:
cache = std::make_unique<GFFluxReconstruction>(
this->_log,gv,inifile.sub("fluxReconstruction"));
assert(fboundary);
assert(fparam);
assert(slop);
// update it with current state
cache->update(*u,*gfs,*slop);
......
......@@ -488,9 +488,6 @@ public:
gf_ptr = std::make_unique<GFFluxReconstruction>(
this->_log,gv,inifile.sub("fluxReconstruction"));
assert(sboundary);
assert(slop);
slop->setTime(state.time);
......@@ -505,9 +502,6 @@ public:
cache = std::make_unique<GFFluxReconstruction>(
this->_log,gv,inifile.sub("fluxReconstruction"));
assert(sboundary);
assert(slop);
slop->setTime(state.time);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment