Hello everyone:
I have written code for doing a calculation over a certain time period/duration. The calculation happens at certain timesteps.
The timestep and duration are different for each calculation. For each calculation, I want to be able to define a timestep and a duration and then use this information to make a container of times.
This is probably a silly question, but what would be the best way to do that? I saw an example where someone uses a "set." Does anyone know what the advantage of that would be over a vector? How would I go about this?
Thanks a lot for any help!
I have written code for doing a calculation over a certain time period/duration. The calculation happens at certain timesteps.
The timestep and duration are different for each calculation. For each calculation, I want to be able to define a timestep and a duration and then use this information to make a container of times.
This is probably a silly question, but what would be the best way to do that? I saw an example where someone uses a "set." Does anyone know what the advantage of that would be over a vector? How would I go about this?
Thanks a lot for any help!