Added some autodetect logic to the Makefile to make switching between PGI and CRAY on titan easiter (i.e., general to both). Also removed more of the fancy from the source, but still, even with inlining ALL the freaking functions, PGI is complaining about function calls. Going back to cray now to see if anything has changed there with the most recent code changes.