184 char *element_type,
bool do_compare) {
188 printf(
"\n %s: n_element difference: current = %d, last check = %d",
194 printf(
"\n %s: n_cells difference: current = %d, last check = %d",
202 "\n %s[%d]: start int data difference: current = %d, last check = "
211 "\n %s[%d]: end int data difference: current = %d, last check = %d",
222 "\n %s[%d]: int datum %d (at index %d) difference: current = %d, "
235 "\n %s[%d]: start float data difference: current = %d, last check = "
244 "\n %s[%d]: end float data difference: current = %d, last check = "
256 "\n %s[%d]: float datum %d (at index %d) difference: current = "
257 "%lg, last check = %lg",
269 "\n %s[%d]: start float data difference: current = %d, last check = "
278 "\n %s[%d]: end float data difference: current = %d, last check = "
284 for (
int i_cell = 0; i_cell < current.
n_cells; ++i_cell) {
285 double *curr_env_ptr =
288 double *last_env_ptr =
294 if (curr_env_ptr[i] != last_env_ptr[i] && do_compare) {
296 "\n %s[%d]: env datum %d (at index %d) for cell %d difference: "
297 "current = %lg, last check = %lg",
298 element_type, e, count, i, i_cell, curr_env_ptr[i],
302 last_env_ptr[i] = curr_env_ptr[i];
void attach_to_data(ModelElement *model_element, int num_elements, int num_cells, int *int_data, double *float_data, double *env_data, int *int_indices, int *float_indices, int *env_indices)