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)
  )
)
#>      x .block  y    weight
#> 1  1.0      1 12 0.1666667
#> 2  2.0      1 12 0.3333333
#> 3  3.0      1 12 0.1666667
#> 4  1.5      1 12 0.6666667
#> 5  2.5      1 12 0.6666667
#> 6  2.0      2 11 0.1666667
#> 7  3.0      2 11 0.3333333
#> 8  4.0      2 11 0.1666667
#> 9  2.5      2 11 0.6666667
#> 10 3.5      2 11 0.6666667