Fix invalid memory write in k-order DLL

The bug would show at order 3 when the last output argument (derivs) is not
requested (in practice every 3rd order solution without pruning). The DLL would
still attempt to write into it, causing an invalid memory access.
time-shift
Sébastien Villemot 2018-07-02 16:37:46 +02:00
parent 13ce918612
commit cb46a2697e
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ extern "C" {
++ii;
}
if (kOrder == 3 && nlhs > 4)
if (kOrder == 3 && nlhs > 5)
{
const FGSContainer *derivs = app.get_rule_ders();
const std::string fieldnames[] = {"gy", "gu", "gyy", "gyu", "guu", "gss",