Skip to content
Snippets Groups Projects
Commit 6c6b87f4 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[staggered][globalVolVars] Use standard signature for dirichlet method

* dirichlet(element, scvf)
parent 4ba330aa
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!419Feature/improve staggered
...@@ -108,7 +108,7 @@ public: ...@@ -108,7 +108,7 @@ public:
for(int eqIdx = 0; eqIdx < numEqCellCenter; ++eqIdx) for(int eqIdx = 0; eqIdx < numEqCellCenter; ++eqIdx)
{ {
if(bcTypes.isDirichlet(eqIdx)) if(bcTypes.isDirichlet(eqIdx))
boundaryPriVars[cellCenterIdx][eqIdx] = problem.dirichletAtPos(scvf.center())[cellCenterIdx][eqIdx]; boundaryPriVars[cellCenterIdx][eqIdx] = problem.dirichlet(element, scvf)[cellCenterIdx][eqIdx];
else if(bcTypes.isNeumann(eqIdx) || bcTypes.isOutflow(eqIdx)) else if(bcTypes.isNeumann(eqIdx) || bcTypes.isOutflow(eqIdx))
boundaryPriVars[cellCenterIdx][eqIdx] = sol[cellCenterIdx][scvf.insideScvIdx()][eqIdx]; boundaryPriVars[cellCenterIdx][eqIdx] = sol[cellCenterIdx][scvf.insideScvIdx()][eqIdx];
//TODO: this assumes a zero-gradient for e.g. the pressure on the boundary //TODO: this assumes a zero-gradient for e.g. the pressure on the boundary
......
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