#include <float.h>#include "cs_base.h"#include "cs_cdo_bc.h"#include "cs_cdo_local.h"#include "cs_defs.h"#include "cs_equation_param.h"#include "cs_math.h"#include "cs_matrix.h"Go to the source code of this file.
Functions | |
| static void | cs_dbg_check_hmg_dirichlet_cw (const char *fname, const cs_cell_sys_t *csys) |
| Check if there is no invalid setting for a homogeneous Dirichlet. | |
| bool | cs_dbg_cw_test (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, const cs_cell_sys_t *csys) |
| Function used to select which element deserves a dump or specific treatment during a debugging stage. | |
| void | cs_dbg_array_fprintf (FILE *fp, const char *fname, cs_real_t thd, cs_lnum_t n_elts, const cs_real_t array[], int n_cols) |
| Print an array. Print into the file f if given otherwise open a new file named fname if given otherwise print into the standard output The usage of threshold allows one to compare more easier arrays. without taking into account numerical roundoff. | |
| void | cs_dbg_fprintf_system (const char *eqname, int id, int level, const cs_real_t *sol, const cs_real_t *rhs, cs_lnum_t size) |
| In debug mode, print into a file the solution and its right-hand side. | |
| void | cs_dbg_darray_to_listing (const char *header, const cs_lnum_t size, const cs_real_t array[], int n_cols) |
| In debug mode, dump an array of double into the log. | |
| void | cs_dbg_iarray_to_listing (const char *header, const cs_lnum_t size, const cs_lnum_t array[], int n_cols) |
| In debug mode, dump an array of integer into the log. | |
| void | cs_dbg_dump_local_scalar_msr_matrix (const char *name, const cs_matrix_t *matrix) |
| In debug mode, dump a linear system. Case of scalar-valued entries. | |
| void | cs_dbg_print_local_scalar_msr_matrix (const char *name, const cs_matrix_t *matrix) |
| Print a linear system. Case of scalar-valued entries. | |
| void | cs_dbg_dump_msr_system (const char *eqname, cs_lnum_t size, int verbosity, const cs_real_t x[], const cs_real_t b[], const cs_lnum_t row_index[], const cs_lnum_t col_id[], const cs_real_t xval[], const cs_real_t dval[]) |
| In debug mode, dump a linear system stored in a MSR format into the listing file (should be a small system) | |
| void | cs_dbg_binary_dump_system (const char *basename, const cs_matrix_t *matrix, const cs_real_t *rhs, const cs_real_t *sol) |
| Binary dump (matrix, rhs and solution) of a matrix, its right-hand side and the solution array. | |
| void cs_dbg_array_fprintf | ( | FILE * | fp, |
| const char * | fname, | ||
| cs_real_t | thd, | ||
| cs_lnum_t | n_elts, | ||
| const cs_real_t | array[], | ||
| int | n_cols ) |
Print an array. Print into the file f if given otherwise open a new file named fname if given otherwise print into the standard output The usage of threshold allows one to compare more easier arrays. without taking into account numerical roundoff.
| [in] | fp | pointer to a file structure or NULL |
| [in] | fname | filename or NULL |
| [in] | thd | threshold (below this value --> set 0) |
| [in] | n_elts | size of the array |
| [in] | array | list of values to dump |
| [in] | n_cols | print array with n_cols columns |
Print an array. Print into the file f if given otherwise open a new file named fname if given otherwise print into the standard output The usage of threshold allows one to compare more easier arrays. without taking into account numerical roundoff.
| [in] | fp | pointer to a file structure or NULL |
| [in] | fname | filename or NULL |
| [in] | thd | threshold (below this value --> set 0) |
| [in] | n_elts | size of the array |
| [in] | array | list of values to dump |
| [in] | n_cols | print array with n_cols columns |
| void cs_dbg_binary_dump_system | ( | const char * | basename, |
| const cs_matrix_t * | matrix, | ||
| const cs_real_t * | rhs, | ||
| const cs_real_t * | sol ) |
Binary dump (matrix, rhs and solution) of a matrix, its right-hand side and the solution array.
| [in] | basename | name of the system |
| [in] | matrix | matrix to dump |
| [in] | b | right-hand side to dump or NULL |
| [in] | x | solution array to dump or NULL |
| [in] | basename | name of the system |
| [in] | matrix | matrix to dump |
| [in] | b | right-hand side to dump |
| [in] | x | solution array to dump |
|
inlinestatic |
Check if there is no invalid setting for a homogeneous Dirichlet.
| [in] | fname | name of the calling function |
| [in] | csys | pointer to a cs_cell_mesh_t structure |
| bool cs_dbg_cw_test | ( | const cs_equation_param_t * | eqp, |
| const cs_cell_mesh_t * | cm, | ||
| const cs_cell_sys_t * | csys ) |
Function used to select which element deserves a dump or specific treatment during a debugging stage.
| [in] | eqp | pointer to a cs_equation_param_t structure |
| [in] | cm | pointer to a cs_cell_mesh_t structure |
| [in] | csys | pointer to a cs_cell_sys_t structure |
| void cs_dbg_darray_to_listing | ( | const char * | header, |
| const cs_lnum_t | size, | ||
| const cs_real_t | array[], | ||
| int | n_cols ) |
In debug mode, dump an array of double into the log.
| [in] | header | header message to write |
| [in] | size | number of elements in array |
| [in] | array | pointer to the array of values |
| [in] | n_cols | print array with n_cols columns |
| void cs_dbg_dump_local_scalar_msr_matrix | ( | const char * | name, |
| const cs_matrix_t * | matrix ) |
In debug mode, dump a linear system. Case of scalar-valued entries.
| [in] | name | name of the equation related to the current system |
| [in] | matrix | pointer to the matrix to dump |
| void cs_dbg_dump_msr_system | ( | const char * | eqname, |
| cs_lnum_t | size, | ||
| int | verbosity, | ||
| const cs_real_t | x[], | ||
| const cs_real_t | b[], | ||
| const cs_lnum_t | row_index[], | ||
| const cs_lnum_t | col_id[], | ||
| const cs_real_t | xval[], | ||
| const cs_real_t | dval[] ) |
In debug mode, dump a linear system stored in a MSR format into the listing file (should be a small system)
| [in] | eqname | name of the equation related to the current system |
| [in] | size | number of elements in array |
| [in] | verbosity | level of display |
| [in] | x | solution array |
| [in] | b | right-hand side |
| [in] | row_index | index on row entries (column id and extra-diag values) |
| [in] | col_id | list of column id |
| [in] | xval | array of extra-diagonal values |
| [in] | dval | array of diagonal values |
| void cs_dbg_fprintf_system | ( | const char * | eqname, |
| int | id, | ||
| int | level, | ||
| const cs_real_t * | sol, | ||
| const cs_real_t * | rhs, | ||
| cs_lnum_t | size ) |
In debug mode, print into a file the solution and its right-hand side.
| [in] | eqname | name of the related equation |
| [in] | id | id number |
| [in] | level | level of debug |
| [in] | sol | solution array |
| [in] | rhs | rhs array |
| [in] | size | size of the array to print |
| void cs_dbg_iarray_to_listing | ( | const char * | header, |
| const cs_lnum_t | size, | ||
| const cs_lnum_t | array[], | ||
| int | n_cols ) |
In debug mode, dump an array of integer into the log.
| [in] | header | header message to write |
| [in] | size | number of elements in array |
| [in] | array | pointer to the array of values |
| [in] | n_cols | print array with n_cols columns |
| void cs_dbg_print_local_scalar_msr_matrix | ( | const char * | name, |
| const cs_matrix_t * | matrix ) |
Print a linear system. Case of scalar-valued entries.
| [in] | name | name of the equation related to the current system |
| [in] | matrix | pointer to the matrix to dump |