ensure that h1/h0_param_indices are created regardless of whether there are parameters or not

issue#70
Houtan Bastani 2019-02-22 11:52:07 +01:00
parent 4160e48dab
commit d8c9bbc353
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 3 additions and 0 deletions

View File

@ -3718,6 +3718,9 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
output << get<3>(it) << " ";
output << "];" << endl;
}
// Create empty h0 and h1 substructures that will be overwritten later if not empty
output << modstruct << "pac." << substruct << "h0_param_indices = [];" << endl
<< modstruct << "pac." << substruct << "h1_param_indices = [];" << endl;
}
for (auto & it : pac_h0_indices)