# g95 Fortran compiler for testing, with all available diagnostics flags on
#
# $Id$

%include compilers/G95-gcc_MPI

%section Makefile
	FFLAGS += -O1 -g -I/usr/include/mpich2/
	FFLAGS += -freal=nan -finteger=-2147483648 -fbounds-check -ftrace=full
	# FFLAGS += -Wuninitialized # In order for this to take effect -freal and -finteger must be tured off
	FFLAGS += -Wall -Wno=140,141,109,112,137
	F90FLAGS += -Werror
	LD_MPI = -L/usr/lib/ -lmpich
%endsection Makefile

%section environment
	G95_MEM_INIT       = NAN
	G95_FPU_EXCEPTIONS = Yes
	G95_MEM_MAXALLOC   = Yes
	G95_FPU_ZERODIV    = Yes
	G95_FPU_OVERFLOW   = Yes
	G95_SHOW_LOCUS     = Yes
	G95_FPU_INVALID    = Yes
%endsection environment

%section runtime
	mpiexec = mpirun
%endsection runtime