We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 950d272 commit 0a7fc93Copy full SHA for 0a7fc93
1 file changed
Common/src/geometry/CPhysicalGeometry.cpp
@@ -4366,6 +4366,10 @@ void CPhysicalGeometry::SetPositive_ZArea(CConfig* config) {
4366
else
4367
config->SetRefArea(TotalPositiveYArea);
4368
4369
+ if (config->GetRefArea() < 1.0e-10) {
4370
+ SU2_MPI::Error("Computed reference area is zero. Please set REF_AREA explicitly in the config file.", "SetPositive_ZArea");
4371
+ }
4372
+
4373
if (rank == MASTER_NODE) {
4374
if (D3)
4375
cout << "Reference area = " << TotalPositiveZArea << A << ".\n";
0 commit comments