Skip to content

Bug in dydt for cv_avg #43

@mgoodson-cvd

Description

@mgoodson-cvd

Just a warning to anyone still using this: there is a bug in dydt.c in the function computing cv_avg, here.

line += '(' + utils.get_array(lang, 'cv', len(specs) - 1) + ' * y_N)'

There needs to be a "+" sign prior to opening the next parentheses, otherwise you end up with code that looks like this:

  double cv_avg = (cv[0] * y[1]) + (cv[1] * y[2]) + (cv[2] * y[3]) + (cv[3] * y[4])(cv[4] * y_N);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions