MyraMath
multifrontal_factor_LU


Source: tests/multifrontal/detail/multifrontal_factor_LU.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/lu/factor.h>
23 
24 // Reporting.
25 #include <tests/myratest.h>
26 
27 using namespace myra;
28 typedef myra::multifrontal::Options Options;
29 
30 ADD_TEST("multifrontal_factor_LU","[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  // Verify the JobGraph.
40  typedef ::myra::multifrontal::detail::lu::factor::JobGraphBase1 Graph;
41  Graph graph(tree);
42  REQUIRE( verify(graph) );
43  // Save .dot file to disk?
44  graphviz(graph,"graph2.dot");
45  }
Options pack for routines in /multifrontal.
Definition: Options.h:24
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.