Verified Commit d8c9bbc3 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

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

parent 4160e48d
Pipeline #869 passed with stage
in 1 minute and 22 seconds
...@@ -3718,6 +3718,9 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de ...@@ -3718,6 +3718,9 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
output << get<3>(it) << " "; output << get<3>(it) << " ";
output << "];" << endl; 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) for (auto & it : pac_h0_indices)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment