Next: A first demo Up: Getting Started Previous: Getting Started Contents

# Installing NGSolve as Netgen Add-On

To install NGSolve together with Netgen, you have to obtain first both packages from www.hpfem.jku.at. The most up to date version is available via CVS checkout.

For this, you have to set a environment variable `CVS_RSH` . On a `tcsh` unix shell you enter

    setenv CVS_RSH ssh

In a `bash` shell you enter

    export CVS_RSH=ssh

Then you can checkout the sources from the Netgen server:

    cvs -d :ext:netgen@thor.sfb013.uni-linz.ac.at:/cvs/netgen co netgen

This should give you the directory tree netgen. After that, change into netgen, and checkout ngsolve:

    cvs -d :ext:netgen@thor.sfb013.uni-linz.ac.at:/cvs/netgen co ngsolve

You have to modify a makefile to compile and link NGSolve:

- File libsrc/makefile.mach.LINUX

  Add the flag `-DNGSOLVE` to the `CPLUSPLUSFLAGS2`.

  Make sure that the lines

      goalngs = goalngs

  and

      appngs =  lib/$(MACHINE)/*.o -lngsolvebasic

  are commented in.

After that, you compile Netgen/NGSolve as you compile Netgen:

    > cd netgen
    > setenv MACHINE LINUX
    > make

The make includes the machine dependent makefile libsrc/makefile.mach.$(MACHINE). Please set MACHINE to the environment most similar to yours.

This should give you the binary `ng`.