SALSA Analysis Modules
Installation and compiling programs

Installation

See the README file. The main thing is that you need to have Petsc installed.

Compilation of user programs

The easiest way to compile a program that uses the Salsa Analysis Modules is to have these includes in your makefile:

include $(PETSC_DIR)/bmake/common/variables
include $(SALSA_MODULES_DIR)/Make.inc

The following flags for your C compiler are

Your program needs to include the following header files:

#include "anamod.h"
#include "anamodsalsamodules.h"

The following link line brings together all the needed libraries (add libnmd if required)

yourprog : 
	$(CLINKER) -o yourprog yourprog.o \
	    -L$(SALSA_MODULES_LIB_DIR) -lsalsamodules -lothermodules \
	    $(PETSC_LIB)