Skip to content

Commit 3f81059

Browse files
committed
Replace assert by warning.
1 parent e81a8ff commit 3f81059

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

SU2_CFD/src/drivers/CDiscAdjMultizoneDriver.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,9 @@ void CDiscAdjMultizoneDriver::SetAdj_ObjFunction() {
881881
void CDiscAdjMultizoneDriver::ComputeAdjoints(unsigned short iZone, bool eval_transfer) {
882882

883883
#if defined(CODI_INDEX_TAPE) || defined(HAVE_OPDI)
884-
assert(nZone <= 1 && "index AD types do not support multiple zones");
884+
if (nZone > 1) {
885+
std::cout << "WARNING: Index AD types do not support multiple zones." << std::endl;
886+
}
885887
#endif
886888

887889
AD::ClearAdjoints();

0 commit comments

Comments
 (0)