Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Lmod provides a mechanism to save sets of modules that can then be restored. This is a convenient way to switch out a whole bunch of modules to change the environment quickly. While we strongly advise keeping a clean and minimal environment in your shell startup, for those who wish to load modules at shell startupIf you typically need to load several modules, module sets provides a better mechanism than loading individual module files. The reasons are that

...

Info

The default module set, if you have one, will be loaded by default. If there is no default module set, a default stack module will be loaded. Since your default module set will be loaded automatically, you should remove a "module restore" command from your shell startup file, such as ~/.bashrc, as it is not necessary and will just duplicate what is done by default. 

As the default stack module loaded at startup is changed over time, having a default module set ensures that your module environment will stay the same. You can then verify your jobs with a new stack and then update the default module set when you are ready.

...