common_config:
  proc: [1, 2]
  memory_limit: 1000
  check_rules:
    - vtkdiff:
        files: ["*.vtu"]
        interpolate: False
    - ndiff:
        files: ["*.pvd", "*.txt", "*.yaml", "*.msh"]

test_cases:
- files:
    - 01_darcy_unsteady_nobalance.yaml
    - 03_darcy_frac_nobalance.yaml
    - 04_fv_nobalance.yaml
    - 06_fv_dp_sorp_small_output_multi_fields.yaml
    - 08_fv_balance_times.yaml
    #- 09_observe_output.yaml
    - 12_file_names.yaml
    - 14_observe_output_only.yaml
    - 21_gmsh_cont_output.yaml
    - 22_gmsh_discont_output.yaml
    - 31_serial_vtk_node_interp.yaml
    - 32_serial_vtk_elem_interp.yaml
    - 33_serial_vtk_corn_interp.yaml
    - 43_square4x_DG_native_read.yaml
    - 44_P0_data_DG_write.yaml
    - 45_P0_data_DG_read.yaml
    - 46_P0_data_DG_write_msh.yaml
    - 47_P0_data_DG_read_msh.yaml

- files: 11_time_marks_mixed_times.yaml
  memory_limit: 1300

- files: 02_richards_nobalance.yaml
  time_limit: 45

- files: 09_observe_output.yaml
  check_rules:
    - vtkdiff:
        files: ["*.vtu"]
        interpolate: False
    - ndiff:
        files: ["*.pvd", "*.yaml", "*.msh", "water_balance.txt"]
    # Increased tolerance due to difference in error column between runs on diff. number of procs.
    # Thiss diff increased in the past and last update with node and ele permutations made this test failing.
    # Needs further investigation in future.
    - ndiff:
        files: ["mass_balance.txt"]
        r_tol: 1e-3
        a_tol: 1e-3

# parallel VTK tests
- files:
    - 34_parallel_vtk_node_interp.yaml
    - 35_parallel_vtk_elem_interp.yaml
    - 36_parallel_vtk_corn_interp.yaml
  time_limit: 60  
  proc: [3]

  
- files: 
  - 20_gmsh_precision.yaml
  proc: [1, 2]
  check_rules:
    - ndiff:
        files: "flow.msh"
        r_tol: 1e-10
        a_tol: 1e-10

- files: 
  - 42_square4x_DG_native_write.yaml
  proc: [1]
  check_rules:
    - ndiff:
        #files: ["flow/*.vtu", "solute/*.vtu"]
        files: ["*.vtu", "*.pvd", "*.txt", "*.yaml"]
        r_tol: 1e-4
        a_tol: 1e-6

# serial refined tests
- files:
    #- 23_gmsh_refined_serial_output.yaml
    
    # binary VTKtest
    - 37_serial_vtk_binary.yaml
    #- 51_darcy_fv_output_mesh_1d_serial.yaml
    #- 53_darcy_fv_output_mesh_2d_serial.yaml
    #- 55_darcy_fv_output_mesh_3d_serial.yaml
  proc: [1]

# parallel refined tests
- files:
    #- 24_gmsh_refined_parallel_output.yaml
    #- 52_darcy_fv_output_mesh_1d_parallel.yaml
    #- 54_darcy_fv_output_mesh_2d_parallel.yaml
    #- 56_darcy_fv_output_mesh_3d_parallel.yaml
    # test of generic fields subdomain and region_id
    - 13_generic_fields.yaml
  proc: [2]
