Skip to content

Commit 407d74d

Browse files
dcodoniktboltmrp089
authored
Added a check on the flux profile type name. If a match is not found, a runtime error is given. (SimVascular#325)
Co-authored-by: Dave Parker <[email protected]> Co-authored-by: Martin R. Pfaller <[email protected]>
1 parent d272890 commit 407d74d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Code/Source/solver/read_files.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,8 @@ void read_bc(Simulation* simulation, EquationParameters* eq_params, eqType& lEq,
416416
int iFa = lBc.iFa;
417417

418418
read_spatial_values(com_mod, com_mod.msh[iM], com_mod.msh[iM].fa[iFa], file_name, lBc);
419+
} else {
420+
throw std::runtime_error("[read_bc] Unknown spatial profile type '" + ctmp + "'.");
419421
}
420422

421423
// Weak Dirichlet BC for fluid/FSI equations

0 commit comments

Comments
 (0)