fix issue when BCPROP is not set initially

This commit is contained in:
Tor Harald Sandve
2023-10-06 09:42:00 +02:00
parent c3de02f18f
commit 72de9d3a9b
2 changed files with 16 additions and 11 deletions

View File

@@ -467,7 +467,9 @@ public:
const IntensiveQuantities& insideIntQuants,
unsigned globalSpaceIdx)
{
if (bdyInfo.type == BCType::RATE) {
if (bdyInfo.type == BCType::NONE) {
bdyFlux = 0.0;
} else if (bdyInfo.type == BCType::RATE) {
computeBoundaryFluxRate(bdyFlux, bdyInfo);
} else if (bdyInfo.type == BCType::FREE || bdyInfo.type == BCType::DIRICHLET) {
computeBoundaryFluxFree(problem, bdyFlux, bdyInfo, insideIntQuants, globalSpaceIdx);