Skip to contents

Combine integration over different domains

Usage

fm_int_multi_sampler(domain, samplers, ...)

Arguments

domain

A list of named domains

samplers

A named list of samplers

...

Passed on to each fm_int() call.

Value

An object with integration points and weights

Examples

fm_int_multi_sampler(
  domain = list(x = fm_mesh_1d(1:4), y = 11:12),
  samplers = tibble::tibble(
    x = rbind(c(1, 3), c(2, 4)),
    y = c(12, 11)
  )
)
#> # A tibble: 10 × 4
#>        x .block     y weight
#>    <dbl>  <int> <int>  <dbl>
#>  1   1        1    12  0.167
#>  2   2        1    12  0.333
#>  3   3        1    12  0.167
#>  4   1.5      1    12  0.667
#>  5   2.5      1    12  0.667
#>  6   2        2    11  0.167
#>  7   3        2    11  0.333
#>  8   4        2    11  0.167
#>  9   2.5      2    11  0.667
#> 10   3.5      2    11  0.667