Merge pull request #3457 from totto82/addThermalBC

add THERMAL option to BC
This commit is contained in:
Bård Skaflestad
2023-03-29 14:07:45 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -36,7 +36,8 @@ class DeckRecord;
enum class BCType {
RATE,
FREE,
DIRICHLET
DIRICHLET,
THERMAL
};
enum class BCComponent {

View File

@@ -38,6 +38,9 @@ BCType bctype(const std::string& s) {
if (s == "DIRICHLET")
return BCType::DIRICHLET;
if (s == "THERMAL")
return BCType::THERMAL;
throw std::invalid_argument("Not recognized boundary condition type: " + s);
}