Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
fb8b7e38
Commit
fb8b7e38
authored
Sep 03, 2019
by
Bernd Flemisch
Browse files
[flux][box][fickslaw] use main component index instead of phase index
Obviously has been forgotten in
c784ce62
.
parent
b4a2a64c
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/flux/box/fickslaw.hh
View file @
fb8b7e38
...
...
@@ -123,7 +123,7 @@ public:
// compute the diffusive flux
componentFlux
[
compIdx
]
=
-
1.0
*
rho
*
vtmv
(
scvf
.
unitOuterNormal
(),
D
,
gradX
)
*
scvf
.
area
();
if
(
BalanceEqOpts
::
mainComponentIsBalanced
(
phaseIdx
)
&&
!
FluidSystem
::
isTracerFluidSystem
())
componentFlux
[
phaseIdx
]
-=
componentFlux
[
compIdx
];
componentFlux
[
FluidSystem
::
getMainComponent
(
phaseIdx
)
]
-=
componentFlux
[
compIdx
];
}
return
componentFlux
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment