nomarkeu / yaml

0 stars 0 forks source link

Further work #1

Open sebwolf-de opened 4 years ago

sebwolf-de commented 4 years ago

Thanks for your initial work! Based on our call here are some suggestions for improvement:

Use booleans instead of 0/1 integers for e.g.

Think about the OutputMasks: Can we make the input more verbose:

Think about nRecordPoints:

krenzland commented 4 years ago

Regarding the enums, the easiest way is to accept strings and then convert it to the enum, like this

krenzland commented 4 years ago

The parameters are used here:

  1. https://github.com/SeisSol/SeisSol/blob/master/src/Numerical_aux/typesdef.f90
  2. https://github.com/SeisSol/SeisSol/blob/master/src/Initializer/dg_setup.f90

The first one defines all types used throughout the Fortran code, the second one initializes some stuff for Fortran. Don't look too closely at that, most of the settings are actually unused. The structs for equation/discretization/etc are actually used throughout the code.