Skip to content

Commit

Permalink
Merge pull request #54 from rjleveque/fix-env-variables
Browse files Browse the repository at this point in the history
Fixed environment variables in Makefiles...
  • Loading branch information
mandli committed Jul 30, 2013
2 parents 53dc916 + 0d49e18 commit b4324f4
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 75 deletions.
9 changes: 2 additions & 7 deletions src/2d/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Makefile for Clawpack code in this directory.
# This version only sets the local files and frequently changed
# options, and then includes the standard makefile pointed to by CLAWMAKE.
CLAWMAKE = $(CLAWUTIL)/src/Makefile.common
CLAWMAKE = $(CLAW)/clawutil/src/Makefile.common

# See the above file for details and a list of make options, or type
# make .help
Expand All @@ -17,13 +17,8 @@ CLAWMAKE = $(CLAWUTIL)/src/Makefile.common
# an f90 compiler such as gfortran.

# Environment variable FC should be set to fortran compiler, e.g. gfortran
FC ?= gfortran # default if not set as environment variable
# Add any desired compiler flags such as -g here:
# INTEL ifort flags
#FFLAGS ?= -g -C -CB -CU -fpe0 -ftrapuv
# gfortran flags
# #FFLAGS = -g -fbounds-check -ffpe-trap=invalid,overflow,zero

FFLAGS ?=

CLAW_LIB = $(shell pwd)

Expand Down
8 changes: 4 additions & 4 deletions tests/acoustics-example1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile for Clawpack code in this directory.
# This version only sets the local files and frequently changed
# options, and then includes the standard makefile pointed to by CLAWMAKE.
CLAWMAKE = $(CLAWUTIL)/src/Makefile.common
CLAWMAKE = $(CLAW)/clawutil/src/Makefile.common

# See the above file for details and a list of make options, or type
# make .help
Expand All @@ -23,9 +23,9 @@ OVERWRITE ?= True # False ==> make a copy of OUTDIR first
RESTART ?= False # Should = clawdata.restart in setrun

# Environment variable FC should be set to fortran compiler, e.g. gfortran
FC ?= gfortran # default if not set as environment variable
# Add any desired compiler flags such as -g here:
FFLAGS ?= -O2 -fopenmp

# Compiler flags can be specified here or set as an environment variable
FFLAGS ?=

# ---------------------------------
# List of sources for this program:
Expand Down
11 changes: 4 additions & 7 deletions tests/annulus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile for Clawpack code in this directory.
# This version only sets the local files and frequently changed
# options, and then includes the standard makefile pointed to by CLAWMAKE.
CLAWMAKE = $(CLAWUTIL)/src/Makefile.common
CLAWMAKE = $(CLAW)/clawutil/src/Makefile.common

# See the above file for details and a list of make options, or type
# make .help
Expand All @@ -23,13 +23,10 @@ OVERWRITE ?= True # False ==> make a copy of OUTDIR first
RESTART ?= False # Should = clawdata.restart in setrun

# Environment variable FC should be set to fortran compiler, e.g. gfortran
FC ?= gfortran # default if not set as environment variable

# Add any desired compiler flags such as -g here:
FFLAGS ?= -O2 -fopenmp
#FFLAGS = -W -Wall -fbounds-check -ffpe-trap=zero,overflow,invalid -g
# intel ifort flags
# FFLAGS = -g -C -CB -CU -fpe0 -ftrapuv
# Compiler flags can be specified here or set as an environment variable
FFLAGS ?=


# ---------------------------------
# List of sources for this program:
Expand Down
12 changes: 5 additions & 7 deletions tests/burgers_pwconst/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile for Clawpack code in this directory.
# This version only sets the local files and frequently changed
# options, and then includes the standard makefile pointed to by CLAWMAKE.
CLAWMAKE = $(CLAWUTIL)/src/Makefile.common
CLAWMAKE = $(CLAW)/clawutil/src/Makefile.common

# See the above file for details and a list of make options, or type
# make .help
Expand All @@ -23,12 +23,10 @@ OVERWRITE ?= True # False ==> make a copy of OUTDIR first
RESTART ?= False # Should = clawdata.restart in setrun

# Environment variable FC should be set to fortran compiler, e.g. gfortran
FC ?= gfortran # default if not set as environment variable
# Add any desired compiler flags such as -g here:
FFLAGS ?= -O2 -fopenmp
#FFLAGS = -W -Wall -fbounds-check -ffpe-trap=zero,overflow,invalid -g
# intel ifort flags
# FFLAGS = -g -C -CB -CU -fpe0 -ftrapuv

# Compiler flags can be specified here or set as an environment variable
FFLAGS ?=


# ---------------------------------
# List of sources for this program:
Expand Down
11 changes: 4 additions & 7 deletions tests/example1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile for Clawpack code in this directory.
# This version only sets the local files and frequently changed
# options, and then includes the standard makefile pointed to by CLAWMAKE.
CLAWMAKE = $(CLAWUTIL)/src/Makefile.common
CLAWMAKE = $(CLAW)/clawutil/src/Makefile.common

# See the above file for details and a list of make options, or type
# make .help
Expand All @@ -23,13 +23,10 @@ OVERWRITE ?= True # False ==> make a copy of OUTDIR first
RESTART ?= False # Should = clawdata.restart in setrun

# Environment variable FC should be set to fortran compiler, e.g. gfortran
FC ?= gfortran # default if not set as environment variable

# Add any desired compiler flags such as -g here:
FFLAGS ?= -O2 -fopenmp
#FFLAGS = -W -Wall -fbounds-check -ffpe-trap=zero,overflow,invalid -g
# intel ifort flags
# FFLAGS = -g -C -CB -CU -fpe0 -ftrapuv
# Compiler flags can be specified here or set as an environment variable
FFLAGS ?=


# ---------------------------------
# List of sources for this program:
Expand Down
11 changes: 4 additions & 7 deletions tests/quadrants/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile for Clawpack code in this directory.
# This version only sets the local files and frequently changed
# options, and then includes the standard makefile pointed to by CLAWMAKE.
CLAWMAKE = $(CLAWUTIL)/src/Makefile.common
CLAWMAKE = $(CLAW)/clawutil/src/Makefile.common

# See the above file for details and a list of make options, or type
# make .help
Expand All @@ -23,13 +23,10 @@ OVERWRITE ?= True # False ==> make a copy of OUTDIR first
RESTART ?= True # Should = clawdata.restart in setrun

# Environment variable FC should be set to fortran compiler, e.g. gfortran
FC ?= gfortran # default if not set as environment variable

# Add any desired compiler flags such as -g here:
FFLAGS ?= -O2
#FFLAGS = -W -Wall -fbounds-check -ffpe-trap=zero,overflow,invalid -g
# intel ifort flags
# FFLAGS = -g -C -CB -CU -fpe0 -ftrapuv
# Compiler flags can be specified here or set as an environment variable
FFLAGS ?=



# ---------------------------------
Expand Down
11 changes: 4 additions & 7 deletions tests/shockbubble/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile for Clawpack code in this directory.
# This version only sets the local files and frequently changed
# options, and then includes the standard makefile pointed to by CLAWMAKE.
CLAWMAKE = $(CLAWUTIL)/src/Makefile.common
CLAWMAKE = $(CLAW)/clawutil/src/Makefile.common

# See the above file for details and a list of make options, or type
# make .help
Expand All @@ -23,13 +23,10 @@ OVERWRITE ?= True # False ==> make a copy of OUTDIR first
RESTART ?= False # Should = clawdata.restart in setrun

# Environment variable FC should be set to fortran compiler, e.g. gfortran
FC ?= gfortran # default if not set as environment variable

# Add any desired compiler flags such as -g here:
FFLAGS ?= -O2 -fopenmp
#FFLAGS = -W -Wall -fbounds-check -ffpe-trap=zero,overflow,invalid -g
# intel ifort flags
# FFLAGS = -g -C -CB -CU -fpe0 -ftrapuv
# Compiler flags can be specified here or set as an environment variable
FFLAGS ?=



# ---------------------------------
Expand Down
15 changes: 5 additions & 10 deletions tests/swirl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile for Clawpack code in this directory.
# This version only sets the local files and frequently changed
# options, and then includes the standard makefile pointed to by CLAWMAKE.
CLAWMAKE = $(CLAWUTIL)/src/Makefile.common
CLAWMAKE = $(CLAW)/clawutil/src/Makefile.common

# See the above file for details and a list of make options, or type
# make .help
Expand All @@ -22,16 +22,11 @@ PLOTDIR = _plots # Directory for plots
OVERWRITE ?= True # False ==> make a copy of OUTDIR first
RESTART ?= False # Should = clawdata.restart in setrun

#FC = ifort
#FFLAGS = -C -CB -CU -fpe1 -ftz -ftrapuv -g -fp-model precise
#FFLAGS = -C -CB -CU -fpe1 -ftrapuv -O2 -fp-model precise -openmp
# Environment variable FC should be set to fortran compiler, e.g. gfortran
FC ?= gfortran # default if not set as environment variable
# Add any desired compiler flags such as -g here:
FFLAGS ?= -O2 -fopenmp
#FFLAGS = -W -Wall -fbounds-check -ffpe-trap=zero,overflow,invalid -g
# intel ifort flags
# FFLAGS = -g -C -CB -CU -fpe0 -ftrapuv

# Compiler flags can be specified here or set as an environment variable
FFLAGS ?=


# ---------------------------------
# List of sources for this program:
Expand Down
16 changes: 5 additions & 11 deletions tests/swirl_regression/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile for Clawpack code in this directory.
# This version only sets the local files and frequently changed
# options, and then includes the standard makefile pointed to by CLAWMAKE.
CLAWMAKE = $(CLAWUTIL)/src/Makefile.common
CLAWMAKE = $(CLAW)/clawutil/src/Makefile.common

# See the above file for details and a list of make options, or type
# make .help
Expand All @@ -22,17 +22,11 @@ PLOTDIR = _plots # Directory for plots
OVERWRITE ?= True # False ==> make a copy of OUTDIR first
RESTART ?= False # Should = clawdata.restart in setrun

#FC = ifort
#FFLAGS = -C -CB -CU -fpe1 -ftz -ftrapuv -g -fp-model precise
#FFLAGS = -C -CB -CU -fpe1 -ftrapuv -O2 -fp-model precise -openmp
# Environment variable FC should be set to fortran compiler, e.g. gfortran
FC ?= gfortran # default if not set as environment variable
# Add any desired compiler flags such as -g here:
#FFLAGS ?= -O2 -fopenmp
FFLAGS ?= -O2
#FFLAGS = -W -Wall -fbounds-check -ffpe-trap=zero,overflow,invalid -g
# intel ifort flags
# FFLAGS = -g -C -CB -CU -fpe0 -ftrapuv

# Compiler flags can be specified here or set as an environment variable
FFLAGS ?=


# ---------------------------------
# List of sources for this program:
Expand Down
13 changes: 5 additions & 8 deletions tests/test_changeFlagging/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Makefile for Clawpack code in this directory.
# This version only sets the local files and frequently changed
# options, and then includes the standard makefile pointed to by CLAWMAKE.
CLAWMAKE = $(CLAWUTIL)/src/Makefile.common
CLAWMAKE = $(CLAW)/clawutil/src/Makefile.common

# See the above file for details and a list of make options, or type
# make .help
Expand All @@ -22,13 +22,10 @@ OVERWRITE ?= True # False ==> make a copy of OUTDIR first
RESTART ?= False # Should = clawdata.restart in setrun

# Environment variable FC should be set to fortran compiler, e.g. gfortran
FC ?= gfortran # default if not set as environment variable

# Add any desired compiler flags such as -g here:
FFLAGS ?= -O2
#FFLAGS = -W -Wall -fbounds-check -ffpe-trap=zero,overflow,invalid -g
# intel ifort flags
# FFLAGS = -g -C -CB -CU -fpe0 -ftrapuv
# Compiler flags can be specified here or set as an environment variable
FFLAGS ?=


# ---------------------------------
# List of sources for this program:
Expand Down Expand Up @@ -155,4 +152,4 @@ SOURCES = \
#-------------------------------------------------------------------
# Include Makefile containing standard definitions and make options:
include $(CLAWMAKE)
include $(CLAWMAKE)

0 comments on commit b4324f4

Please sign in to comment.