Assignment 2 Clarification

Assignment 2 Clarification

by Dany Yaacoub -
Number of replies: 6

Figure others may have a similar question so I'll post here.

When creating the module for the initialization of the simulation, should that include defining the parameters of the simulation? Or should those stay in main() in the antsontable.cpp file?

In reply to Dany Yaacoub

Re: Assignment 2 Clarification

by Ramses van Zon -
The parameters of the simulation should not be defined in the initialization module, they should be input arguments for it.
In reply to Ramses van Zon

Re: Assignment 2 Clarification

by Dany Yaacoub -
By input arguments do you mean arguments on the command line when running, or remaining where they originally are? I didn't see that in the assignment instructions, just want to be sure
In reply to Dany Yaacoub

Re: Assignment 2 Clarification

by Ramses van Zon -
I had in mind function arguments. Adding command line arguments is not part of the assignment.
In reply to Ramses van Zon

Re: Assignment 2 Clarification

by Dany Yaacoub -
Sorry if I'm misunderstanding, so a function that takes in the parameters as arguments and initializes everything? Should the values for length and num_timesteps and all those still be in the main() function, and then passed to the function that initializes everything? Apologies I'm just having trouble understanding exactly what is expected
In reply to Dany Yaacoub

Re: Assignment 2 Clarification

by Ramses van Zon -
Yes, that's fine, having those parameters still defined in main and passed to the initalization function.