Browse Source

Restriction for Lmod usage

Pierre-Yves Barriat 7 years ago
parent
commit
80a74d1887
1 changed files with 6 additions and 4 deletions
  1. 6 4
      bashrc

+ 6 - 4
bashrc

@@ -66,7 +66,9 @@ alias h="history"
 
 # Personal modules variables
 # --------------------------
-PATH="/projects/acad/ecearth/opt/apps/lua/lua/bin:$PATH"
-. /projects/acad/ecearth/opt/lmod/lmod/init/profile
-ulimit -u 8192
-export OMP_NUM_THREADS=2
+if [ `hostname` = "frontal3" ]; then
+  PATH="/projects/acad/ecearth/opt/apps/lua/lua/bin:$PATH"
+  . /projects/acad/ecearth/opt/lmod/lmod/init/profile
+  ulimit -u 8192
+  export OMP_NUM_THREADS=2
+fi