MyraMath
multifrontal_solve_Right_Upper


Source: tests/multifrontal/detail/multifrontal_solve_Right_Upper.cpp

1 // ========================================================================= //
2 // This file is part of MyraMath, copyright (c) 2014-2019 by Ryan A Chilton //
3 // and distributed by MyraCore, LLC. See LICENSE.txt for license terms. //
4 // ========================================================================= //
5 
11 // Containers.
16 
17 // Algorithms.
19 
20 // JobGraph under test.
23 #include <myramath/multifrontal/detail/solveu_right.h>
24 
25 // Reporting.
26 #include <tests/myratest.h>
27 
28 using namespace myra;
29 
30 ADD_TEST("multifrontal_solve_Right_Upper","[multifrontal][jobgraph]")
31  {
32  // Construct AssemblyTree of a 3D laplacian.
33  int I = 32;
34  int J = 32;
35  int K = 32;
36  Pattern pattern = stencil3(I,J,K);
37  Permutation perm = bisect3(I,J,K);
38  AssemblyTree tree(pattern,perm);
39  // Presume two right hand sides, blocksize 1.
40  int B = 2;
41  int blocksize = 1;
42  // Verify the JobGraph.
43  typedef ::multifrontal::detail::solveu_right::JobGraphBase1 Graph;
44  Graph graph(&tree,B,blocksize);
45  REQUIRE( verify(graph) );
46  // Save .dot file to disk?
47  graphviz(graph,"graph2.dot");
48  }
Given a JobGraph G, verifies it has valid topology.
Represents a Permutation matrix, used to reorder rows/columns/etc of various numeric containers...
Definition: Permutation.h:34
Symbolic analysis data structure for all multifrontal solvers.
Definition: AssemblyTree.h:38
Definition: syntax.dox:1
Describes data layout and job dependencies for symmetric-pattern multifrontal solvers.
Helper routines for reordering/filling 3D structured grids. Used by many unit tests.
Range/Iterator types associated with Pattern.
Holds the nonzero pattern of a sparse matrix.
Definition: Pattern.h:55
Container class for a sparse nonzero pattern, used in reordering/symbolic analysis.
Aggregates a (perm, iperm, swaps) triple into a vocabulary type.
Given a JobGraph, produces a .dot file for visualization with graphviz.


Results: [PASS]


Go back to Summary of /test programs.