Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple ignition points #89

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Multiple ignition points #89

wants to merge 6 commits into from

Conversation

matiasuno
Copy link
Collaborator

added ignitions-raster option to give a set of ignition points as

else if (args.Ignitions == "raster") {

if (initialPoints.empty()) {
initialPoints = this->IgnitionPoints;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agregar identación

additional_args=""
sim_code="K"
fi
Cell2Fire$1 --input-instance-folder model/$model-$format --output-folder $output_folder --nsims 113 --ignitions-$ignition_mode --output-messages --grids --out-ros --out-intensity --sim ${sim_code} --seed 123 --ignitionsLog $additional_args > test_results/$model-$format-$ignition_mode/log.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El ignition mode tiene que ser el adecuado para que funcione el test. Aparte hay que hacer un chequeo del funcionamiento de los puntos múltiples.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matiasuno Resolviste esto?

@@ -780,7 +784,7 @@ bool Cell2Fire::RunIgnition(std::default_random_engine generator, int ep){
std::uniform_int_distribution<int> distribution(1, this->nCells);

// No Ignitions provided
if (this->args.Ignitions == 0) {
if (this->args.Ignitions == "random" || this->args.Ignitions == 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El tipo de Ignition actualmente es Bool, tiene que pasarse a string.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matiasuno hiciste este cambio?

@matildeRivas matildeRivas self-requested a review January 16, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants