SABER
|
Sampling functions. More...
Functions/Subroutines | |
subroutine, public | initialize_sampling (mpl, rng, area, n_loc, lon_loc, lat_loc, mask_loc, rh_loc, loc_to_glb, ntry, nrep, ns2_glb, sam2_glb, fast, verbosity, n_uni, uni_to_loc, tree_uni) |
Intialize sampling. More... | |
subroutine, public | initialize_sampling_local (mpl, area, n_loc, n_loc_eff, n_glb_eff, lon_loc, lat_loc, mask_loc, rh_loc, loc_to_glb, ns2_glb, ns1_glb_eff, lon1_glb_eff, lat1_glb_eff, rh1_glb_eff, sam1_glb_eff, verbosity, n_uni, uni_to_loc, tree_uni) |
Intialize sampling, local, based on ATLAS octahedral grid. More... | |
subroutine, public | initialize_sampling_global (mpl, rng, ns1_glb_eff, lon1_glb_eff, lat1_glb_eff, rh1_glb_eff, sam1_glb_eff, ntry, nrep, ns2_glb, sam2_glb, fast, verbosity) |
Intialize sampling, global. More... | |
Sampling functions.
subroutine, public tools_samp::initialize_sampling | ( | type(mpl_type), intent(inout) | mpl, |
type(rng_type), intent(inout) | rng, | ||
real(kind_real), intent(in) | area, | ||
integer, intent(in) | n_loc, | ||
real(kind_real), dimension(n_loc), intent(in) | lon_loc, | ||
real(kind_real), dimension(n_loc), intent(in) | lat_loc, | ||
logical, dimension(n_loc), intent(in) | mask_loc, | ||
real(kind_real), dimension(n_loc), intent(in) | rh_loc, | ||
integer, dimension(n_loc), intent(in) | loc_to_glb, | ||
integer, intent(in) | ntry, | ||
integer, intent(in) | nrep, | ||
integer, intent(in) | ns2_glb, | ||
integer, dimension(ns2_glb), intent(out) | sam2_glb, | ||
logical, intent(in), optional | fast, | ||
logical, intent(in), optional | verbosity, | ||
integer, intent(in), optional | n_uni, | ||
integer, dimension(:), intent(in), optional | uni_to_loc, | ||
type(tree_type), intent(in), optional | tree_uni | ||
) |
Intialize sampling.
[in,out] | mpl | MPI data |
[in,out] | rng | Random number generator |
[in] | area | Global domain area |
[in] | n_loc | Number of points (local) |
[in] | lon_loc | Longitudes (local) |
[in] | lat_loc | Latitudes (local) |
[in] | mask_loc | Mask (local) |
[in] | rh_loc | Horizontal support radius (local) |
[in] | loc_to_glb | Local to global index |
[in] | ntry | Number of tries |
[in] | nrep | Number of replacements |
[in] | ns2_glb | Number of samplings points (global) |
[out] | sam2_glb | Horizontal sampling index (global) |
[in] | fast | Fast sampling flag |
[in] | verbosity | Verbosity flag |
[in] | n_uni | Universe size |
[in] | uni_to_loc | Universe to local index |
[in] | tree_uni | Universe KD-tree |
Definition at line 32 of file tools_samp.F90.
subroutine, public tools_samp::initialize_sampling_global | ( | type(mpl_type), intent(inout) | mpl, |
type(rng_type), intent(inout) | rng, | ||
integer, intent(in) | ns1_glb_eff, | ||
real(kind_real), dimension(ns1_glb_eff), intent(in) | lon1_glb_eff, | ||
real(kind_real), dimension(ns1_glb_eff), intent(in) | lat1_glb_eff, | ||
real(kind_real), dimension(ns1_glb_eff), intent(in) | rh1_glb_eff, | ||
integer, dimension(ns1_glb_eff), intent(in) | sam1_glb_eff, | ||
integer, intent(in) | ntry, | ||
integer, intent(in) | nrep, | ||
integer, intent(in) | ns2_glb, | ||
integer, dimension(ns2_glb), intent(out) | sam2_glb, | ||
logical, intent(in), optional | fast, | ||
logical, intent(in), optional | verbosity | ||
) |
Intialize sampling, global.
[in,out] | mpl | MPI data |
[in,out] | rng | Random number generator |
[in] | ntry | Number of tries |
[in] | nrep | Number of replacements |
[in] | ns2_glb | Number of samplings points (global) |
[out] | sam2_glb | Horizontal sampling index (global) |
[in] | fast | Fast sampling flag |
[in] | verbosity | Verbosity flag |
Definition at line 511 of file tools_samp.F90.
subroutine, public tools_samp::initialize_sampling_local | ( | type(mpl_type), intent(inout) | mpl, |
real(kind_real), intent(in) | area, | ||
integer, intent(in) | n_loc, | ||
integer, intent(in) | n_loc_eff, | ||
integer, intent(in) | n_glb_eff, | ||
real(kind_real), dimension(n_loc), intent(in) | lon_loc, | ||
real(kind_real), dimension(n_loc), intent(in) | lat_loc, | ||
logical, dimension(n_loc), intent(in) | mask_loc, | ||
real(kind_real), dimension(n_loc), intent(in) | rh_loc, | ||
integer, dimension(n_loc), intent(in) | loc_to_glb, | ||
integer, intent(in) | ns2_glb, | ||
integer, intent(out) | ns1_glb_eff, | ||
real(kind_real), dimension(:), intent(out), allocatable | lon1_glb_eff, | ||
real(kind_real), dimension(:), intent(out), allocatable | lat1_glb_eff, | ||
real(kind_real), dimension(:), intent(out), allocatable | rh1_glb_eff, | ||
integer, dimension(:), intent(out), allocatable | sam1_glb_eff, | ||
logical, intent(in), optional | verbosity, | ||
integer, intent(in), optional | n_uni, | ||
integer, dimension(:), intent(in), optional | uni_to_loc, | ||
type(tree_type), intent(in), optional | tree_uni | ||
) |
Intialize sampling, local, based on ATLAS octahedral grid.
[in,out] | mpl | MPI data |
[in] | area | Global domain area |
[in] | n_loc | Number of points (local) |
[in] | n_loc_eff | Number of points (local, effective) |
[in] | n_glb_eff | Number of points (global, effective) |
[in] | lon_loc | Longitudes (local) |
[in] | lat_loc | Latitudes (local) |
[in] | mask_loc | Mask (local) |
[in] | rh_loc | Horizontal support radius (local) |
[in] | loc_to_glb | Local to global index |
[in] | ns2_glb | Number of samplings points (global) |
[in] | verbosity | Verbosity flag |
[in] | n_uni | Universe size |
[in] | uni_to_loc | Universe to local index |
[in] | tree_uni | Universe KD-tree |
Definition at line 168 of file tools_samp.F90.