#!/bin/bash

source /opt/intel/bin/ifortvars.sh

# copy modified file
cp gga_x_pbe_srp.c src/gga_x_pbe.c

# first make original libs
./configure --enable-static
make 
cp -r src/.libs libs
make check
cp testsuite/test-suite.log libs/. #logfile should contain all OK

# make now libs with SRP32 functional
./configure --enable-static
make CPPFLAGS=-DSRP  
cp -r src/.libs libs-SRP
make check
cp testsuite/test-suite.log libs-SRP/. #logfile should contain FAIL for revPBE lines
