/// <summary>
 /// Main routine
 /// </summary>
 /// <param name="args"></param>
 static void Main(string[] args)
 {
     BoSSS.Solution.Application._Main(args, true, delegate() {
         var p = new XdgNastyLevsetLocationTest();
         return(p);
     });
 }
Exemplo n.º 2
0
        public static void AllUp(
            [Values(XQuadFactoryHelper.MomentFittingVariants.OneStepGauss, XQuadFactoryHelper.MomentFittingVariants.OneStepGaussAndStokes)]
            XQuadFactoryHelper.MomentFittingVariants variant
            )
        {
            //static void Main(string[] args) {


            var Tests = new ITest[] { new Schraeg(XdgNastyLevsetLocationTest.GetTestRange(), XdgNastyLevsetLocationTest.GetTestRange()),
                                      new Parallel(XdgNastyLevsetLocationTest.GetTestRange(), XdgNastyLevsetLocationTest.GetTestRange()) };

            XQuadFactoryHelper.MomentFittingVariants[] Variants = new[] {
                XQuadFactoryHelper.MomentFittingVariants.OneStepGauss,
                XQuadFactoryHelper.MomentFittingVariants.OneStepGaussAndStokes
            };


            foreach (var tst in Tests)
            {
                XdgNastyLevsetLocationTest p = null;

                tst.ResetTest();

                BoSSS.Solution.Application._Main(new string[0], true, delegate() {
                    p      = new XdgNastyLevsetLocationTest();
                    p.test = tst;
                    p.momentFittingVariant = variant;
                    return(p);
                });

                Assert.IsTrue(p.IsPassed);
            }
        }
 /// <summary>
 /// Main routine
 /// </summary>
 /// <param name="args"></param>
 static void Main(string[] args)
 {
     BoSSS.Solution.Application._Main(args, true, "", delegate() {
         var p = new XdgNastyLevsetLocationTest();
         p.m_GridPartitioningType = GridPartType.METIS;
         return(p);
     });
 }
Exemplo n.º 4
0
        public void AllUp()
        {
            //static void Main(string[] args) {

            bool MpiInit;

            ilPSP.Environment.Bootstrap(new string[0], BoSSS.Solution.Application.GetBoSSSInstallDir(), out MpiInit);

            var Tests = new ITest[] { new Schraeg(XdgNastyLevsetLocationTest.GetTestRange(), XdgNastyLevsetLocationTest.GetTestRange()),
                                      new Parallel(XdgNastyLevsetLocationTest.GetTestRange(), XdgNastyLevsetLocationTest.GetTestRange()) };

            XQuadFactoryHelper.MomentFittingVariants[] Variants = new[] {
                XQuadFactoryHelper.MomentFittingVariants.OneStepGauss,
                XQuadFactoryHelper.MomentFittingVariants.OneStepGaussAndStokes
            };


            foreach (var tst in Tests)
            {
                foreach (var variant in Variants)
                {
                    XdgNastyLevsetLocationTest p = null;

                    tst.ResetTest();

                    BoSSS.Solution.Application._Main(new string[0], true, delegate() {
                        p      = new XdgNastyLevsetLocationTest();
                        p.test = tst;
                        p.momentFittingVariant = variant;
                        return(p);
                    });

                    Assert.IsTrue(p.IsPassed);
                }
            }

            MPI.Wrappers.csMPI.Raw.mpiFinalize();
        }