Diff of /src/lib/model/NodeArray.cc [01a998] .. [081fbe] Maximize Restore

  Switch to unified view

a/src/lib/model/NodeArray.cc b/src/lib/model/NodeArray.cc
...
...
168
        Node *node = _node_pointers[i];
168
        Node *node = _node_pointers[i];
169
        if (node == 0) {
169
        if (node == 0) {
170
        string msg = "Attempt to set value of undefined node ";
170
        string msg = "Attempt to set value of undefined node ";
171
        throw runtime_error(msg + name() + 
171
        throw runtime_error(msg + name() + 
172
                    print(value.range().leftIndex(i)));
172
                    print(value.range().leftIndex(i)));
173
      }
174
      if (node->isObserved()) {
175
      throw NodeError(node,
176
              "Attempt to overwrite value of observed node");
173
        }
177
        }
174
        if (node->isRandomVariable()) {
178
        if (node->isRandomVariable()) {
175
        setnodes.insert(node);
179
        setnodes.insert(node);
176
        }
180
        }
177
        else {
181
        else {