Skip to content

Refactor the mechanism conversion scripts #505

Open
@rs028

Description

@rs028

The mechanism conversion script (mech_converter.py) needs to be refactored. At the moment it consists of a giant convert_to_fortran() function, which does a lot of things in a sequence to convert the chemical mechanism from facsimile to fortran format.
In addition, two other scripts have been added to the conversion process and are called within convert_to_fortran():

  1. fix_mechanism_fac.py to preprocess the facsimile file
  2. kpp_conversion.py to support an alternative kpp format

The whole thing is hard to maintain/modify and probably not very efficient. The code should be split in smaller functions and reorganized accordingly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Compilation and Execution Issues

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions