The National Institute for Computational Sciences

General: How can I set my environment using .modulerc?

Some sites recommend using the .modulerc file to set your default modules. Do not do so on NICS systems : the .modulerc file is read every time module is called. This causes issues with some of the Cray software on Darter, the global default module list, and can lead to unexpected results (if you unload a module in the .modulerc file, it will be re-loaded next time you use the module command). Instead, set your default environment in your .bashrc file (or analogue). It is best to send the output (stderr in particular) to a log or /dev/null to prevent .bashrc from printing anything, which may cause errors.