clawpack / clawutil

General utility programs
BSD 3-Clause "New" or "Revised" License
10 stars 31 forks source link

Make sets `FC` to `f77` by default covering up `FC ?= gfortran` #45

Open mandli opened 11 years ago

mandli commented 11 years ago

Currently the default (in GNU Make anyway) for FC is set to f77. This makes it so that

FC ?= gfortran

never works (although if FC is set in the environment or on the command line this will work). Something like

ifeq ($(FC), f77)
    FC = gfortran 
endif

would work to replace f77 (since we do not support it anyway) but this really should happen above any variables the user sets.

mandli commented 11 years ago

Decided with @rjleveque to modify the Makefile.common and the local Makefiles to not include the FC variable and set FC = gfortran in Makefile.common if FC = f77.

mandli commented 11 years ago

Also see clawpack/amrclaw#49.