bendudson / BOUT

NOTE: BOUT++ now at https://github.com/boutproject/BOUT-dev
GNU Lesser General Public License v3.0
24 stars 34 forks source link

PVODE library doesn't compile on Cray XT-5 #13

Closed bendudson closed 14 years ago

bendudson commented 14 years ago

Can't compile PVODE on HECToR: Makefile uses $(CC) to compile, but include file llnltyps.h contains a namespace statement.

bendudson commented 14 years ago

To fix:

In Makefile:

BOUT_TOP = ../../.. include $(BOUT_TOP)/make.config

change $(CC) to $(CXX)

Insert "mpi.h" as the FIRST include (otherwise SEEK_SET defined) in cvode.c, nvector.c , cvspgmr.c, cvdiag.c

Add newlines to the end of cvode.h, llnlmath.c, cvspgmr.h, smalldense.c

bendudson commented 14 years ago

Same changes needed in precon/Makefile

"mpi.h" also needed at top of pvbbdpre.c, band.c

bendudson commented 14 years ago

PVODE library in repository (for now) with changes so compiles