default operator bugfix

This commit is contained in:
Magnus Ulimoen 2020-04-30 20:03:34 +02:00
parent c4848ffd1a
commit 34f837c0be
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ pub fn json_to_grids(
let opeta = grid["operators"]["eta"]
.as_str()
.unwrap_or(&default_operator.1);
.unwrap_or(&default_operator.0);
match (opeta, opxi) {
("upwind4", "upwind4") => Right(Box::new(Upwind4) as Box<dyn UpwindOperator2d>),