Devoir
3. Git and rarray
Conditions d'achèvement
Ouvert le : jeudi 28 janvier 2021, 23:59
À rendre : jeudi 4 février 2021, 23:59
In this assignment, we are going to use rarrays and git in your modular version of antsontable. You are expected to do this on the Teach cluster, where rarray has already been installed. Please see the documentation for the Teach cluster before doing the assignment.
Copy the resulting zip file off of the teach cluster and submit the zip file together with the screen output of the program to the assignment dropbox by February 4th, 2021 at 23:55 PM. The late policy can be found in the syllabus.
- Log into the Teach cluster with ssh, and load the following modules
module load gcc rarray
- Clones the original, monolythic ants code from assignment 2 into a new directory with the command
git clone /scinet/course/phy1610/antsontable.git newants
This will put the code on the directory newants. - Copy your modularized ants code to that directory.
- Add the files that are modified or new compared to the original code to git, and commit your modularized code.
Be sure never to include object files, executables, output, or anything that is derived from or produced from the code and that can easily be regenerated. - Rewrite the ants code to use two-dimensional rarrays (a.k.a. rmatrices) instead of linearized 2d arrays.
Hint: you can replace the linearized arrays with rarrays and get back a linearize array from the rarray with the .data() method. Using this, you could first rarray-ize the main function, and then one-by-one rarray-ize the other modules.
- Change the code so that it writes out only once every 1000 time steps.
- Do not leave any unnecessary parts of the code.
- We expect to see several meaningful commits to the git repository during this process.
git2zip REPODIR(with REPODIR replaced by the directory where your code and the git repo lives, e.g. newants).
Copy the resulting zip file off of the teach cluster and submit the zip file together with the screen output of the program to the assignment dropbox by February 4th, 2021 at 23:55 PM. The late policy can be found in the syllabus.
- 14 août 2023, 15:41
- 14 août 2023, 15:41
- 14 août 2023, 15:41