/// <summary>
        /// Main routine
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            BoSSS.Solution.Application._Main(args, true, delegate() {
                ipViscosityMain p = new ipViscosityMain();
                return(p);
            });

            //BoSSS.Solution.Application.InitMPI(new string[0]);
            //_Test.ConsistencyTest(Terms.T1, ViscosityImplementation.H, 1);
            //csMPI.Raw.mpiFinalize();
        }
Exemple #2
0
        public static void ConsistencyTest(
            [Values(Terms.T1, Terms.T2, Terms.T3)] Terms t,
            [Values(0, 1)] int iSol
            )
        {
            ipViscosityMain p = null;

            BoSSS.Solution.Application._Main(new string[0], true, delegate() {
                p                  = new ipViscosityMain();
                p.mode             = TestMode.CheckResidual;
                p.solution         = solutions[iSol];
                p.PolynomialDegree = 4;
                p.grid             = new MixedBcGrid();
                p.whichTerms       = t;
                return(p);
            });

            p.L2ResidualNorm.ForEach(res => Assert.LessOrEqual(res, 1.0e-8, " Residual L2 Norm "));
        }
Exemple #3
0
        public static void solverTest(
            [Values(Terms.T1, Terms.T1 | Terms.T2, Terms.T1 | Terms.T2 | Terms.T3)] Terms t,
            [Values(0, 1, 2)] int iSol,
            [Values(2, 3, 4)] int deg
            )
        {
            ipViscosityMain p = null;

            BoSSS.Solution.Application._Main(new string[0], true, delegate() {
                p                  = new ipViscosityMain();
                p.mode             = TestMode.Solve;
                p.solution         = solutions[iSol];
                p.PolynomialDegree = deg;
                p.grid             = new MixedBcGrid();
                p.whichTerms       = t;
                return(p);
            });


            p.L2ResidualNorm.ForEach(res => Assert.LessOrEqual(res, 1.0e-8));
            p.L2ErrorNorm.ForEach(err => Assert.LessOrEqual(err, 0.5));
        }