Skip to content
Snippets Groups Projects
Commit f30ec5ef authored by Robert K's avatar Robert K
Browse files

[bugfix][ShallowWater] disable user defined flux, because it segfaults.

parent 1c8ad338
No related branches found
No related tags found
No related merge requests found
Pipeline #74694 passed
......@@ -83,9 +83,10 @@ namespace Fem
*/
DGAdvectionFluxPythonUserDefine (const ModelImp& modelImp,
const ParameterType& parameter )
: BaseType( *(new ModelType(modelImp)), parameter )
//: BaseType( *(new ModelType(modelImp)), parameter )
: BaseType( modelImp, parameter )
{
modelPtr_.reset( &this->model_ );
//modelPtr_.reset( &this->model_ );
}
/**
......@@ -111,7 +112,7 @@ namespace Fem
}
protected:
std::unique_ptr< const ModelType > modelPtr_;
//std::unique_ptr< const ModelType > modelPtr_;
};
} // end namespace Fem
......
from dune.fem import threading
threading.use = 8
from dune.fem import parameter
from dune.femdg.testing import run
......
......@@ -40,11 +40,11 @@ def ShallowWater(topo,g):
# boundary = {range(1,5): lambda t,x,u,n: Model.F_c(t,x,u)*n}
boundary = {range(1,5): lambda t,x,u: u}
topography = topo
def NumericalF_c(model,clsName,includes):
print("NumericalFlux_c")
from dune.generator.importclass import load
from dune.generator import path
return load(clsName,[path(__file__)+"llf.hh"]+includes,model)
#def NumericalF_c(model,clsName,includes):
# print("NumericalFlux_c")
# from dune.generator.importclass import load
# from dune.generator import path
# return load(clsName,[path(__file__)+"llfwb.hh"]+includes,model)
return Model
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment