From bced0df297cec525a0f7b810330034b9f0b64a41 Mon Sep 17 00:00:00 2001
From: easybuild <easybuild@login2.bullx>
Date: Mon, 5 Nov 2018 12:33:30 +0100
Subject: [PATCH] Mon, 05 Nov 2018 12:33:30 +0100

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

diff --git a/anselm.md b/anselm.md
index e7a2e6c1..a9fa6290 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 223ec7be..69ec25bc 100755
--- a/modules.py
+++ b/modules.py
@@ -46,6 +46,14 @@ if __name__ == "__main__":
     HTML_SOURCE_DATA = {}
     subdirs = os.environ['MODULEPATH'].split(':')
 
+    # Anselm patch
+    while "/apps/modules/init" in subdirs: subdirs.remove("/apps/modules/init")
+    while "/apps/modules/environments" in subdirs: subdirs.remove("/apps/modules/environments")
+    while "/apps/modules/engineering" in subdirs: subdirs.remove("/apps/modules/engineering")
+    while "/apps/modules/libraries" in subdirs: subdirs.remove("/apps/modules/libraries")
+    while "/apps/modules/omics" in subdirs: subdirs.remove("/apps/modules/omics")
+    while "/apps/modules/prace" in subdirs: subdirs.remove("/apps/modules/prace")
+
     print "# Available Modules"
     for dir in sorted(subdirs):
         available_software = software_list(dir)
@@ -55,8 +63,6 @@ if __name__ == "__main__":
         HTML_SOURCE_DATA[dir] = {}
         for soft in sorted(available_software, key=str.lower):
             software_path = os.path.join(dir, soft)
-            #if os.getenv('CLUSTER')!="ANSELM":
-            #  software_path = software_path.replace(os.path.basename(dir)+'/', 'all/')
             software_versions = get_software_versions(software_path)
             while ".common" in software_versions: software_versions.remove(".common")
             while ".common-6" in software_versions: software_versions.remove(".common-6")
-- 
GitLab