From 0c861a91665ba189b4f57d1371b07cf88b552516 Mon Sep 17 00:00:00 2001
From: easybuild <easybuild@login2.bullx>
Date: Mon, 5 Nov 2018 13:09:38 +0100
Subject: [PATCH] Mon, 05 Nov 2018 13:09:37 +0100

---
 anselm.md  | 91 ------------------------------------------------------
 modules.py | 14 +++++----
 2 files changed, 8 insertions(+), 97 deletions(-)

diff --git a/anselm.md b/anselm.md
index 8bf2d574..06e23f79 100644
--- a/anselm.md
+++ b/anselm.md
@@ -145,42 +145,6 @@
 | [xproto](http://www.freedesktop.org/wiki/Software/xlibs) | X protocol and ancillary headers. |
 | [xtrans](http://www.freedesktop.org/wiki/Software/xlibs) | xtrans includes a number of routines to make X implementations transport-independent; at time of writing, it includes support for UNIX sockets, IPv4, IPv6, and DECnet. |
 
-## Engineering
-
-| Module | Description |
-| ------ | ----------- |
-| adams | &nbsp; |
-| beopest | &nbsp; |
-| blender | &nbsp; |
-| Code_Saturne | &nbsp; |
-| comsol | &nbsp; |
-| digimat | &nbsp; |
-| Discovery_Studio | &nbsp; |
-| dytran | &nbsp; |
-| fds | &nbsp; |
-| hypermesh | &nbsp; |
-| hyperworks | &nbsp; |
-| lsdyna | &nbsp; |
-| lsprepost | &nbsp; |
-| lux | &nbsp; |
-| marc | &nbsp; |
-| maxwell | &nbsp; |
-| modflow-2005 | &nbsp; |
-| modflow-nwt | &nbsp; |
-| nastran | &nbsp; |
-| openfoam | &nbsp; |
-| paraview | &nbsp; |
-| pest | &nbsp; |
-| wien2k | &nbsp; |
-
-## Environments
-
-| Module | Description |
-| ------ | ----------- |
-| bullxde | &nbsp; |
-| PrgEnv-gnu | &nbsp; |
-| PrgEnv-intel | &nbsp; |
-
 ## Geo
 
 | Module | Description |
@@ -189,11 +153,6 @@
 | [PHREEQC](https://wwwbrr.cr.usgs.gov/projects/GWC_coupled/phreeqc/) | A Computer Program for Speciation, Batch-Reaction, One-Dimensional Transport, and Inverse Geochemical Calculations |
 | [PROJ_4](http://proj.osgeo.org) | PROJ.4 - Cartographic Projections Library originally written by Gerald Evenden then of the USGS. |
 
-## Init
-
-| Module | Description |
-| ------ | ----------- |
-
 ## Lang
 
 | Module | Description |
@@ -273,35 +232,6 @@
 | [Tensorflow](https://www.tensorflow.org/) | An open-source software library for Machine Intelligence |
 | [zlib](http://www.zlib.net/) | zlib is designed to be a free, general-purpose, legally unencumbered -- that is, not covered by any patents -- lossless data-compression library for use on virtually any computer hardware and operating system. |
 
-## Libraries
-
-| Module | Description |
-| ------ | ----------- |
-| adios | &nbsp; |
-| dataspaces | &nbsp; |
-| fftw2 | &nbsp; |
-| fftw2-mpi | &nbsp; |
-| fftw3 | &nbsp; |
-| fftw3-mpi | &nbsp; |
-| gpi2 | &nbsp; |
-| hdf5 | &nbsp; |
-| hdf5-parallel | &nbsp; |
-| ipp | &nbsp; |
-| magma | &nbsp; |
-| mkl | &nbsp; |
-| mxml | &nbsp; |
-| netcdf | &nbsp; |
-| netcdf-cxx | &nbsp; |
-| netcdf-fortran | &nbsp; |
-| netcdf-parallel | &nbsp; |
-| opencl-rt | &nbsp; |
-| opencl-sdk | &nbsp; |
-| petsc | &nbsp; |
-| plasma | &nbsp; |
-| szip | &nbsp; |
-| tbb | &nbsp; |
-| trilinos | &nbsp; |
-
 ## Math
 
 | Module | Description |
@@ -363,20 +293,6 @@
 | [SuiteSparse](http://faculty.cse.tamu.edu/davis/suitesparse.html) | SuiteSparse is a collection of libraries manipulate sparse matrices. |
 | [Trilinos](http://trilinos.sandia.gov/) | The Trilinos Project is an effort to develop algorithms and enabling technologies within an object-oriented software framework for the solution of large-scale, complex multi-physics engineering and scientific problems. A unique design feature of Trilinos is its focus on packages. |
 
-## Omics
-
-| Module | Description |
-| ------ | ----------- |
-| fastqc | &nbsp; |
-| gatk | &nbsp; |
-| hpg-aligner | &nbsp; |
-| hpg-fastq | &nbsp; |
-| hpg-variant | &nbsp; |
-| ngsPipeline | &nbsp; |
-| picard | &nbsp; |
-| samtools | &nbsp; |
-| snpEff | &nbsp; |
-
 ## Perf
 
 | Module | Description |
@@ -404,13 +320,6 @@
 | [Siesta](http://departments.icmab.es/leem/siesta) | SIESTA is both a method and its computer program implementation, to perform efficient electronic structure calculations and ab initio molecular dynamics simulations of molecules and solids. This version si compiled with OpenMP and MPI support. |
 | [VASP](http://www.vasp.at) | The Vienna Ab initio Simulation Package (VASP) is a computer program for atomic scale materials modelling, e.g. electronic structure calculations and quantum-mechanical molecular dynamics, from first principles. To use VASP, You need academic licenses from University of Wiena. Follow the instructions https://www.vasp.at/index.php/faqs. Then send us please a list of authorized users and their ID for which you need this access. Please use only http://support.it4i.cz/rt. We are responsible to verify your licenses. After succesfull verification You will be granted to use VASP in our enviroment. |
 
-## Prace
-
-| Module | Description |
-| ------ | ----------- |
-| GLOBUS | &nbsp; |
-| PRACE | &nbsp; |
-
 ## Python
 
 | Module | Description |
diff --git a/modules.py b/modules.py
index 83d654a7..a22a7b5e 100755
--- a/modules.py
+++ b/modules.py
@@ -11,12 +11,6 @@ def software_list(class_path):
     # In case that there is 'all' module
     if 'all' in software_list:
         software_list.remove('all')
-        software_list.remove('init')
-        software_list.remove('environments')
-        software_list.remove('engineering')
-        software_list.remove('libraries')
-        software_list.remove('omics')
-        software_list.remove('prace')
     return software_list
 
 
@@ -52,6 +46,14 @@ if __name__ == "__main__":
     HTML_SOURCE_DATA = {}
     subdirs = os.environ['MODULEPATH'].split(':')
 
+    if os.getenv('CLUSTER')=="ANSELM":
+       subdirs.remove("/apps/modules/init")
+       subdirs.remove("/apps/modules/environments")
+       subdirs.remove("/apps/modules/engineering")
+       subdirs.remove("/apps/modules/libraries")
+       subdirs.remove("/apps/modules/omics")
+       subdirs.remove("/apps/modules/prace")
+
     print "# Available Modules"
     for dir in sorted(subdirs):
         available_software = software_list(dir)
-- 
GitLab