Generic PROCEDURE to compute the Cauchy convergence factor
Compute the Cauchy convergence factor when the exact solution is known.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nx | |||
| integer, | intent(in) | :: | ny | |||
| integer, | intent(in) | :: | nz | |||
| double precision, | intent(in) | :: | num | |||
| double precision, | intent(in) | :: | den | |||
| integer, | intent(in) | :: | ref_lev | |||
| class(tpo), | intent(inout) | :: | tpo_coarse | |||
| class(tpo), | intent(inout) | :: | tpo_fine | |||
| procedure(get_scalar_at_grid_point), | intent(in), | POINTER | :: | get_hc | ||
| double precision, | intent(inout), | DIMENSION(:,:,:), ALLOCATABLE | :: | convergence_factor | 
Compute the Cauchy convergence factor when the exact solution is not known.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nx | |||
| integer, | intent(in) | :: | ny | |||
| integer, | intent(in) | :: | nz | |||
| double precision, | intent(in) | :: | num | |||
| double precision, | intent(in) | :: | den | |||
| integer, | intent(in) | :: | ref_lev | |||
| class(tpo), | intent(inout) | :: | tpo_coarse | |||
| class(tpo), | intent(inout) | :: | tpo_medium | |||
| class(tpo), | intent(inout) | :: | tpo_fine | |||
| procedure(get_scalar_at_grid_point), | intent(in), | POINTER | :: | get_hc | ||
| double precision, | intent(inout), | DIMENSION(:,:,:), ALLOCATABLE | :: | convergence_factor |