MyraMath
multifrontal_solve_Right_Lower


Source: tests/multifrontal/detail/multifrontal_solve_Right_Lower.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.
15 
16 // Algorithms.
18 
19 // JobGraph under test.
22 #include <myramath/multifrontal/detail/solvel_right.h>
23 
24 // Reporting.
25 #include <tests/myratest.h>
26 
27 using namespace myra;
28 
29 ADD_TEST("multifrontal_solve_Right_Lower","[multifrontal][jobgraph]")
30  {
31  // Construct AssemblyTree of a 3D laplacian.
32  int I = 32;
33  int J = 32;
34  int K = 32;
35  Pattern pattern = stencil3(I,J,K);
36  Permutation perm = bisect3(I,J,K);
37  AssemblyTree tree(pattern,perm);
38  // Presume two right hand sides, blocksize 1.
39  int B = 2;
40  int blocksize = 1;
41  // Verify the JobGraph.
42  typedef ::multifrontal::detail::solvel_right::JobGraphBase1 Graph;
43  Graph graph(&tree,B,blocksize);
44  REQUIRE( verify(graph) );
45  // Save .dot file to disk?
46  graphviz(graph,"graph2.dot");
47  }
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.
Given a JobGraph, produces a .dot file for visualization with graphviz.


Results: [PASS]


Go back to Summary of /test programs.