Skip to content

adding vector causes core dump. #378

@elmbeech

Description

@elmbeech

this is a very toy project based on the template project.

  • 3 cell types: tumor, cell_1, cell_2
  • 4 substrates: debris, anti-inflamatory, pro-inflamatory, drug_1
  • 8 rules
  • fast-paced output: data every 12 min, svg never.
  • 12 threads

the custom.cpp adds a vector.

// constantes variables static const double ZERO = 0; static const std::vector<double> VECTOR_ZERO (4, ZERO); // generate a 4 character long vector of zeros. def setup_tissue( void ) { [...] // add custom data vector for (int i = 0 ; i < all_cells->size(); i++) { std::vector<double> vector_double = VECTOR_ZERO; (*all_cells)[i]->custom_data.add_vector_variable("my_vector", vector_double); } return; } 

I run into a core dump every time I run it.
I tried to reduce more complexity, but then I no longer run into the core dump every time.
Will try to track it more down after smb. Feel free to help to solve the riddle.

vector.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions