fixed rest of review comments

This commit is contained in:
hnil 2022-12-19 11:34:06 +01:00
parent 83e7bbb140
commit e5c76f6eb2

View File

@ -436,9 +436,9 @@ private:
MatrixBlock bMat(0.0);
ADVectorBlock adres(0.0);
const IntensiveQuantities* intQuantsInP = model_().cachedIntensiveQuantities(globI, /*timeIdx*/ 0);
// if (intQuantsInP == nullptr) {
// throw std::logic_error("Missing updated intensive quantities for cell " + std::to_string(globI));
// }
if (intQuantsInP == nullptr) {
throw std::logic_error("Missing updated intensive quantities for cell " + std::to_string(globI));
}
const IntensiveQuantities& intQuantsIn = *intQuantsInP;
// Flux term.