コード例 #1
0
ファイル: Tests.cs プロジェクト: nehzatemamy/BoSSS
        public static void IterativeSolverTest([Values(Code.exp_Kcycle_schwarz, Code.exp_gmres_levelpmg)] Code SolverName)
        {
            using (var solver = new XdgPoisson3Main()) {
                int Res, p;
#if DEBUG
                Res = 6;
                p   = 2;
#else
                Res = 12;
                p   = 3;
#endif
                var C = HardCodedControl.Ball3D(pDeg: p, Res: Res, solverCode: SolverName);

                solver.Init(C);
                solver.RunSolverMode();
            }
        }
コード例 #2
0
ファイル: Tests.cs プロジェクト: rieckmann/BoSSS
        public static void SolverTest([Values(Code.exp_Kcycle_schwarz, Code.exp_gmres_levelpmg)] Code SolverName)
        {
            using (var solver = new XdgPoisson3Main()) {
                int Res, p;
#if DEBUG
                Res = 6;
                p   = 2;
#else
                Res = 12;
                p   = 3;
#endif
                Console.WriteLine("comment me in. Some kinda mis-merge happened");
                //var C = HardCodedControl.Ball3D(pDeg: p, Res: Res, solverCode: SolverName);


                //solver.Init(C);
                //solver.RunSolverMode();
            }
        }
コード例 #3
0
        public static void TestIterativeSolver(
#if DEBUG
            [Values(2)] int dgDeg,
            [Values(40)] int res,
            [Values(2)] int dim,
            [Values(SolverCodes.exp_gmres_levelpmg, SolverCodes.exp_Kcycle_schwarz)] SolverCodes solver