コード例 #1
0
ファイル: Ftexs.cs プロジェクト: YburnContributors/Yburn
        private void AssertValidInput()
        {
            if (VX.GetLength(0) != NX ||
                VX.GetLength(1) != NY)
            {
                throw new Exception("Dimensions of VX are not compatible with T.");
            }

            if (VY.GetLength(0) != NX ||
                VY.GetLength(1) != NY)
            {
                throw new Exception("Dimensions of VY are not compatible with T.");
            }

            AssertPositiveT();
            AssertValidVelocity();

            if (MaxCFL <= 0)
            {
                throw new Exception("MaxCFL <= 0.");
            }
        }