Debian Codegraph @

rt/pecos/mf/sl6/gcc/4.6/openmpi/1.6/modulefiles/phdf5/1.8.9.lua

raw symbols SCIP
1 local modname = "phdf5"
2 local version = "1.8.9"
3 local system_type = "sl6"
4 local modules_top_dir = "/unknown/apps/ossw"
5 local compiler = "gcc"
6 local compiler_version = "4.6"
7 local mpi_implementation = "openmpi"
8 local mpi_version = "1.6"
9
10
11 help(
12 "The phdf5 module file defines the following environment variables:\n"..
13 "PHDF5_DIR, PHDF5_LIB, and PHDF5_INC for the location of the \n"..
14 "PHDF5 distribution.\n"..
15 "To use the PHDF5 library, compile the source code with the option:\n"..
16 "-I$PHDF5_INC \n"..
17 "and add the following options to the link step: \n"..
18 "-L$PHDF5_LIB -lhdf5\n\n"..
19 "Version "..version..", compiled with "..compiler.." "..compiler_version.." compilers\n"..
20 "in parallel with "..mpi_implementation.." "..mpi_version
21 )
22
23 whatis( "Name: parallel HDF5 Library" )
24 whatis( "Version: "..version..", built with "..compiler.." "..compiler_version.." and "..mpi_implementation.." "..mpi_version )
25 whatis( "Category: library" )
26 whatis( "URL: http://www.hdfgroup.org/HDF5/" )
27
28 local phdf5_base = modules_top_dir.."/libraries/phdf5/phdf5-"..version.."/"..system_type.."/"..compiler.."-"..compiler_version.."/"..mpi_implementation.."-"..mpi_version
29
30 local mpath_root = os.getenv("MODULEPATH_ROOT")
31 edit_derived_modulepaths(mpath_root, modname, version)
32
33 prepend_path( "LD_LIBRARY_PATH", pathJoin(phdf5_base, "lib") )
34 prepend_path( "PATH", pathJoin(phdf5_base, "bin" ) )
35 prepend_path( "INCLUDE", pathJoin(phdf5_base, "include" ) )
36
37 setenv( "PHDF5_DIR", phdf5_base )
38 setenv( "PHDF5_BIN", pathJoin(phdf5_base, "bin" ) )
39 setenv( "PHDF5_INC", pathJoin(phdf5_base, "include" ) )
40 setenv( "PHDF5_LIB", pathJoin(phdf5_base, "lib" ) )
41
42 setenv( "PHDF5_VERSION", version )