public static void TestCartesian() { using (SipPoisson.SipPoissonMain p = new SipPoissonMain()) { var ctrl = SipHardcodedControl.TestCartesian1(); p.Init(ctrl); p.RunSolverMode(); //Application<SipControl>._Main(new string[] { // "--control", "cs:ipPoisson.ippHardcodedControl.TestCartesian1()" // }, // false, // "", // delegate() { // p = new SipPoissonMain(); // return p; // }); double err = (double)p.QueryHandler.QueryResults["SolL2err"]; double thres = 5.0e-9; Console.WriteLine("L2 Error of solution: " + err + " (threshold is " + thres + ")"); Assert.LessOrEqual(err, thres); } }
void Test_LDomain() { int numberOfVoronoiCells = 20; AppControl lShape = VoronoiControl.TestVoronoi_LDomain(numberOfVoronoiCells, NoOfLlyodsIter: 20); IApplication poisson = new SipPoissonMain(); RunApplication(poisson, lShape); }
static ISessionInfo CreateSession(int numberOfVoronoiCells) { AppControl lShape = VoronoiControl.TestVoronoi_LDomain(numberOfVoronoiCells, db: Database); IApplication poisson = new SipPoissonMain(); RunApplication(poisson, lShape); ISessionInfo session = poisson.CurrentSessionInfo; return(session); }