Add single example
This commit is contained in:
parent
d5b1daa413
commit
5ce9a84872
|
@ -210,16 +210,16 @@ impl Configuration {
|
||||||
.map(|(name, g)| {
|
.map(|(name, g)| {
|
||||||
let default_operators = default.operators.unwrap_or_default();
|
let default_operators = default.operators.unwrap_or_default();
|
||||||
let operators = g.operators.unwrap_or_default();
|
let operators = g.operators.unwrap_or_default();
|
||||||
let xi = operators.xi.unwrap_or(
|
let xi = operators.xi.unwrap_or_else(|| {
|
||||||
default_operators
|
default_operators
|
||||||
.xi
|
.xi
|
||||||
.unwrap_or_else(|| panic!("No xi operator found for grid: {}", name)),
|
.unwrap_or_else(|| panic!("No xi operator found for grid: {}", name))
|
||||||
);
|
});
|
||||||
let eta = operators.eta.unwrap_or(
|
let eta = operators.eta.unwrap_or_else(|| {
|
||||||
default_operators
|
default_operators
|
||||||
.eta
|
.eta
|
||||||
.unwrap_or_else(|| panic!("No eta operator found for grid: {}", name)),
|
.unwrap_or_else(|| panic!("No eta operator found for grid: {}", name))
|
||||||
);
|
});
|
||||||
|
|
||||||
use sbp::operators::*;
|
use sbp::operators::*;
|
||||||
use Operator as op;
|
use Operator as op;
|
||||||
|
|
Loading…
Reference in New Issue