Skip to content
Snippets Groups Projects
Commit 8b6bff53 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

dg : fix bug on bnd condition when there is no diffusion

parent cbe1aa42
No related branches found
No related tags found
No related merge requests found
......@@ -61,8 +61,8 @@ class dgBoundaryConditionOutsideValue : public dgBoundaryCondition {
maxDif->addMeAsDependencyOf(this);
}
void _eval() {
solutionRight.set(outsideValue());
if(maxDif){
solutionRight.set(outsideValue());
for(int i=0;i<_value.size1(); i++)
for(int j=0;j<_value.size2(); j++)
_value(i,j) = (*maxDif)(i,j);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment