version 0.6.0
Loading...
Searching...
No Matches
ut_solution_tools Module Reference

Tools to play with solutions.

Functions/Subroutines

subroutine init_positions (positions, non_uniform)
 
subroutine init_dx (dx, pos)
 Init the spacing 'dx' between positions.
 
subroutine init_cv (cv, dx_u, pos)
 Init the control volume 'cv' around nodes The first and last ones are set to dx_u.
 
subroutine init_faces_positions (faces_positions, positions, cv)
 Compute the positions of the faces surrounding nodes.
 
subroutine fill_solution (field, pos, sol)
 
subroutine fill_integ_solution (field, pos, dx, integ_sol)
 
subroutine fill_mean_solution (field, pos, dx, integ_sol)
 
subroutine fill_solution_2d (field, pos_x, pos_y, sol)
 
subroutine print_solution (it, t, pos, field, ref)
 
subroutine print_solution_verbose (it, name, t, pos, field, ref)
 
subroutine print_solution_verbose_2d (it, name, t, pos, field, ref)
 
double precision function compute_l2_error (solution, approx)
 

Function/Subroutine Documentation

◆ init_faces_positions()

subroutine ut_solution_tools::init_faces_positions ( double precision, dimension(:), intent(out) faces_positions,
double precision, dimension(:), intent(in) positions,
double precision, dimension(:), intent(in) cv )
Parameters
[out]faces_positionsthe resulting faces positions of size NX+1
[in]positionsthe nodes' positions of size NX
[in]cvthe nodes' control volume width of size NX