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

Alias script added and tutorials updated to remove need to prepend castep-serial and castep-mpi #9

Merged
merged 4 commits into from
Sep 17, 2024

Conversation

jkshenton
Copy link
Contributor

I added a script to create aliases for all the serial-built castep tools - it just prepends castep-serial to each, allowing them to be invoked directly in the VM. The list of executables it aliases can be found in the docs/workshop/serial_executables.conf` file. Feel free to remove ones that don't make sense - I just added ~all that i found in the serial bin directory of the apptainer.

For the mpi tools, i simply alias mpirun="castep-mpi mpirun" so that anything following the mpirun command runs in the castep-mpi apptainer. i.e. we can do mpirun -np 16 castep.mpi seedname rather than needing to prepend castep-mpi to it first. Similarly for e.g. optados.mpi

I've added a note to workhop tutorial 0 explaining how to source this script (once we're happy I'll upload to the /course_materials folder on the VMs) and then removed castep-serial and castep-mpi from the tutorial files.

It would be great if someone could review and test it before we merge.

@jkshenton jkshenton requested a review from krefson September 16, 2024 21:33
When sourcing the file, we should look for serial_executables.conf in the same directory as the script is in.
@jkshenton jkshenton merged commit 780edf7 into castep-docs:develop Sep 17, 2024
1 check passed
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.

1 participant