From c0c80f966fbb41a979a1c1b54fddd09439127968 Mon Sep 17 00:00:00 2001
From: Anton Kudryashov <qubabox@mail.ru>
Date: Mon, 23 Jan 2017 22:36:39 +0300
Subject: [PATCH] fixed prognostic cell with huge mean velocity value

---
 WindStressPRM/Objects/PrognosticCell.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/WindStressPRM/Objects/PrognosticCell.cs b/WindStressPRM/Objects/PrognosticCell.cs
index 4a91543..c594efd 100644
--- a/WindStressPRM/Objects/PrognosticCell.cs
+++ b/WindStressPRM/Objects/PrognosticCell.cs
@@ -45,9 +45,9 @@ namespace WindStressPRM
             {
                 throw new System.ArgumentException("Prognostic wind velocities are incorrect: one projection is Nan, and other has value.");
             }
-            // пустые данные
-            if (res1 == res2 == true)
+            else if (res2 == true)
             {
+                // пустые данные (Nan, Nan)
                 return;
             }
             ///Скорость ветра на высоте 10м от поверхности на Земле не может превышать 70м/c
-- 
GitLab