-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: main
Are you sure you want to change the base?
Conversation
else if (args.Ignitions == "raster") { | ||
|
||
if (initialPoints.empty()) { | ||
initialPoints = this->IgnitionPoints; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matiasuno Resolviste esto?
Cell2Fire/Cell2Fire.cpp
Outdated
@@ -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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matiasuno hiciste este cambio?
added ignitions-raster option to give a set of ignition points as