exasim-project / OBR

A runner for OpenFOAM benchmarks
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Common notation #146

Closed greole closed 12 months ago

greole commented 12 months ago

This PR implements the common notation to allow writing yaml files with key values more compact

Example:

     values:
       - set: solvers/p
         preconditioner: none
         solver: GKOCG
         executor: reference
         matrixFormat: Coo
       - set: solvers/U
         preconditioner: BJ
         solver: GKOBiCGStab         
         executor: reference
         matrixFormat: Coo

can now be written as

     common:
         executor: reference
         matrixFormat: Coo
     values:
       - set: solvers/p
         preconditioner: none
         solver: GKOCG
       - set: solvers/U
         preconditioner: BJ
         solver: GKOBiCGStab         

Additionally,

greole commented 12 months ago

format!

greole commented 12 months ago

Strange black complains, but the format action seems to be ok with the formatting. Also my local black seems to be OK with the files.