benkirk / libmesh

libMesh github repository

Home Page:http://libmesh.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libMesh-specific configuration options

For generic installation instructions, refer also to the INSTALL file.

Build Process

  1. ./bootstrap (optional, needed only if you add/modify m4 files or configure.ac)

  2. ./configure --prefix=/path/to/libmesh/install

  3. make

  4. make check (optional, runs the example programs and unit tests when possible)

  5. make install

METHODS

libMesh supports the notion of multiple methods - that is, compilation settings used to build the library. The major methods supported by the library are:

  • opt: Fully Optimized mode, with little to no error checking. No debugging symbols are included in the resulting library. Agressive optimization flags are used.

  • dbg: Full debugging mode - all useful compiler warnings are enabled, as well as robust internal state checking.

  • devel: Use high levels of compiler optimization, but also enable internal state checking. Debugging symbols are included, but the resulting code is not always easy to navigate in a debugger because of compiler optimizations.

  • pro: Optimized code path with compiler flags suitable for use with gprof.

  • oprof: Optimized code path with compiler flags suitable for use with oprofile.

To select a set of methods, you can pass them to configure in one of two ways:

$ ./configure --with-methods="opt dbg devel"

or

$ ./configure METHODS="devel oprof"

If unspecified, the three METHODS="opt dbg devel" are default.

Multiple Builds with Different Compilers

libMesh fully supports out-of-tree builds, and users are encouraged to use this feature when needed to support multiple compilers. For example, on a system where multiple compilers are availble and accessible via modules, you can share the same source tree by creating a subdirectory for each compiler build:

$ export LIBMESH_SRC=/local/libmesh
$ cd $LIBMESH_SRC
$ module load gcc/4.8
$ cd $LIBMESH_SRC && mkdir gcc-4.8 && cd gcc-4.8 && ../configure && make && make install
$ module swap gcc intel/16.0
$ cd $LIBMESH_SRC && mkdir intel-16.0 && cd intel-16.0 && ../configure && make && make install

Dependencies

libMesh has no required dependencies other than a reasonably modern C & C++ compiler. To run on distributed memory platforms in parallel you will also need MPI.

Optional Packages

We support a large number of optional packages, some of which are distributed inside the ./contrib directory and are compiler directly with libMesh, others can be used from third-party installation. For a list of supported packages and optional dependencies see here

License

LibMesh is open source software distributed under the LGPL license, version 2.1.

About

libMesh github repository

http://libmesh.github.io

License:GNU Lesser General Public License v2.1


Languages

Language:C 38.4%Language:C++ 35.2%Language:Makefile 17.2%Language:Fortran 2.7%Language:HTML 1.4%Language:Shell 1.4%Language:M4 1.3%Language:CMake 0.6%Language:Perl 0.6%Language:Roff 0.4%Language:Yacc 0.3%Language:Pawn 0.3%Language:Batchfile 0.0%Language:Lex 0.0%Language:QMake 0.0%Language:CSS 0.0%Language:Objective-C 0.0%Language:Python 0.0%Language:JavaScript 0.0%Language:SourcePawn 0.0%Language:Pascal 0.0%Language:Cap'n Proto 0.0%Language:MATLAB 0.0%Language:TeX 0.0%Language:PHP 0.0%Language:Prolog 0.0%