version 0.6.0
Loading...
Searching...
No Matches
Debug I/O

I/O routines for debugging purpose. More...

Namespaces

module  variables_debugging_io
 Variables to enable debugging I/O.
 

Classes

interface  mod_debug_io::write_array_to_file
 Generic interface to print double or integer array to a .txt file. More...
 

Functions

subroutine mod_debug_io::write_double_array_to_file (array, name)
 Print a double array to a .txt file.
 
subroutine mod_debug_io::write_integer_array_to_file (array, name)
 Print an integer array to a .txt file.
 
subroutine mod_debug_io::write_cell_linear_system_to_file (matrix, rhs, equation_ls_map, stl, isd_metrics, isd_target, name)
 Print a cell linear system to file.
 
subroutine mod_debug_io::write_face_linear_system_to_file (matrix, rhs, navier_ls_map, stl_u, stl_v, stl_w, isd_metrics, isd_target, name)
 Print a face linear system to file.
 

Detailed Description

I/O set of routines for debugging purpose.

This module helps to:

Each MPI process writes its data in a separate file.

Warning
For debugging purposes only!

Function Documentation

◆ write_cell_linear_system_to_file()

subroutine mod_debug_io::write_cell_linear_system_to_file ( double precision, dimension(:), intent(in) matrix,
double precision, dimension(:), intent(in) rhs,
type(t_ls_map), intent(in) equation_ls_map,
integer, dimension(:,:,:), intent(in), allocatable stl,
type(t_immersed_subdomain_metrics), dimension(:), intent(in), allocatable isd_metrics,
integer, dimension(:), intent(in), allocatable isd_target,
character(len=*), intent(in) name )
Warning
For debugging purposes only!

Files are written in the output directory for each iteration. Each local domain matrix and rhs are written in a separate file.

◆ write_double_array_to_file()

subroutine mod_debug_io::write_double_array_to_file ( double precision, dimension(:,:,:), intent(in) array,
character(len=*), intent(in) name )
  • The array can be defined on cells or faces: dimensions of the array are given as input;
  • .txt files are created in the output directory;

◆ write_face_linear_system_to_file()

subroutine mod_debug_io::write_face_linear_system_to_file ( double precision, dimension(:), intent(in) matrix,
double precision, dimension(:), intent(in) rhs,
type(t_face_ls_map), intent(in) navier_ls_map,
integer, dimension(:,:,:,:), intent(in), allocatable stl_u,
integer, dimension(:,:,:,:), intent(in), allocatable stl_v,
integer, dimension(:,:,:,:), intent(in), allocatable stl_w,
type(t_immersed_subdomain_metrics), dimension(:), intent(in) isd_metrics,
integer, dimension(:), intent(in), allocatable isd_target,
character(len=*), intent(in) name )
Warning
For debugging purposes only!

Files are written in the output directory for each iteration. Each local domain matrix and rhs are written in a separate file.

◆ write_integer_array_to_file()

subroutine mod_debug_io::write_integer_array_to_file ( integer, dimension(:,:,:), intent(in) array,
character(len=*), intent(in) name )
  • The array can be defined on cells or faces: dimensions of the array are given as input;
  • .txt files are created in the output directory;
  • The name of the file starts with name variable, followed by the rank number, and by the time iteration number.