mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
return 0 diffusivity if diffusion in disabled
This commit is contained in:
parent
48ad676010
commit
ffe51aa346
@ -498,7 +498,13 @@ public:
|
||||
* \brief Return the diffusivity for the intersection between two elements.
|
||||
*/
|
||||
Scalar diffusivity(unsigned elemIdx1, unsigned elemIdx2) const
|
||||
{ return diffusivity_->at(isId_(elemIdx1, elemIdx2)); }
|
||||
{
|
||||
if(diffusivity_->empty())
|
||||
return 0.0;
|
||||
|
||||
return diffusivity_->at(isId_(elemIdx1, elemIdx2));
|
||||
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user