add progressbar

This commit is contained in:
Magnus Ulimoen
2020-04-02 22:32:07 +02:00
parent d80a9bfa6d
commit 18ebbfde75
3 changed files with 21 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
use crate::Float;
use json::JsonValue;
#[derive(Debug, Clone)]
pub struct SimpleGrid {
@@ -27,8 +28,7 @@ pub struct SimpleGrid {
/// Optional parameters:
/// * name (for relating boundaries)
/// * dir{e,w,n,s} (for boundary terms)
pub fn json_to_grids(json: json::JsonValue) -> Result<Vec<SimpleGrid>, String> {
use json::JsonValue;
pub fn json_to_grids(json: JsonValue) -> Result<Vec<SimpleGrid>, String> {
fn json_to_grid(mut grid: JsonValue) -> Result<SimpleGrid, String> {
#[derive(Debug)]
enum ArrayForm {