Esempio n. 1
0
    void TestPerf() throw(Exception)
    {
        // write headings
        PerformanceTester<CellLuoRudy1991FromCellMLBackwardEuler, BidomainProblem<2>, 2>::DisplayHeadings();
        HeartEventHandler::Headings();

        // base line
        PerformanceTester<CellLuoRudy1991FromCellMLBackwardEuler, BidomainProblem<2>, 2> tester;
        tester.SimTime=0.0025;
        tester.MeshNum=3;
        tester.Run();

        HeartEventHandler::Report();
    }
    void TestPerf() throw(Exception)
    {
        // solver and preconditioner options
        HeartConfig::Instance()->SetKSPSolver("symmlq");
        HeartConfig::Instance()->SetKSPPreconditioner("bjacobi");
        PetscTools::SetOption("-log_summary", "");

        // write headings
        PerformanceTester<CellLuoRudy1991FromCellMLBackwardEuler, BidomainProblem<3>, 3>::DisplayHeadings();
        HeartEventHandler::Headings();

        // base line
        PerformanceTester<CellLuoRudy1991FromCellMLBackwardEuler, BidomainProblem<3>, 3> tester;
        tester.MeshNum=0;
        tester.Run();

        HeartEventHandler::Report();
    }