QR_MUMPS
Functions/Subroutines
qrm_print_tree.F90 File Reference

This file contains various routine for printing trees. More...

Go to the source code of this file.

Functions/Subroutines

subroutine qrm_print_elim_tree (file, parent, n)
 This subroutine prints on a file the elimination tree described by a parent array. The tree is written in "dot" format (see graphviz) More...
 
subroutine qrm_print_asm_tree (file, parent, rc, n)
 This subroutine prints on a file the assembly tree described by a parent and a postorder arrays. The tree is written in "dot" format (see graphviz) More...
 
subroutine qrm_print_nsteps_tree (file, adata, weight)
 prints an assembly tree in compressed format More...
 

Detailed Description

This file contains various routine for printing trees.

Date
2016-01-29 22:22:30 +0100 (Fri, 29 Jan 2016)
Author
abuttari
Version
1.1
Revision
2075

Definition in file qrm_print_tree.F90.

Function/Subroutine Documentation

subroutine qrm_print_asm_tree ( character, dimension(*)  file,
integer, dimension(:)  parent,
integer, dimension(:)  rc,
integer  n 
)

This subroutine prints on a file the assembly tree described by a parent and a postorder arrays. The tree is written in "dot" format (see graphviz)

Parameters
[in]filethe file where to print the tree
[in]parentan integer array containing the elimination tree in input and the assembly tree on output. The meaning of parent on output is:
  • parent(i) = j>0: i is the principal variable of a node and j if the principal variable of its father node
  • parent(i) = j=0: i is a principal variable of a root node
  • parent(i) = j<0: i is a subordinate variable inside a node whose principal variable is j.
[in]rcan array containing
[in]nan integer containing the number of nodes in the tree

Definition at line 98 of file qrm_print_tree.F90.

subroutine qrm_print_elim_tree ( character, dimension(*)  file,
integer, dimension(:)  parent,
integer  n 
)

This subroutine prints on a file the elimination tree described by a parent array. The tree is written in "dot" format (see graphviz)

Parameters
[in]filethe file where to print the tree
[in]parentan integer array. parent(i)=j means that node/variable j is the father of node/variable i in the tree
[in]nan integer containing the number of nodes in the tree

Definition at line 46 of file qrm_print_tree.F90.

subroutine qrm_print_nsteps_tree ( character, dimension(*)  file,
type(qrm_adata_type adata,
real(kind(1.d0)), dimension(:), optional  weight 
)

prints an assembly tree in compressed format

Parameters
[in]adataa qrm_adata_type data containing the tree
[in]filethe file where to print the tree
[in]weightoptional: weight(i) is the weight of the subtree rooted at i

Definition at line 164 of file qrm_print_tree.F90.