Skip to content
Snippets Groups Projects
Commit f593a6c4 authored by Xin Li's avatar Xin Li
Browse files

updated advanced_lab

parent 5c835a4d
Branches 2021
Tags 2021
No related merge requests found
CC = cc # for GNU compiler
ifeq ($(CRAY_PRGENVCRAY), loaded) CC = gcc
CFLAGS = -O2 -openmp
else ifeq ($(CRAY_PRGENVINTEL), loaded)
CFLAGS = -O2 -openmp -D_Float128=__float128
else ifeq ($(CRAY_PRGENVGNU), loaded)
CFLAGS = -O2 -fopenmp CFLAGS = -O2 -fopenmp
else
CFLAGS = -O2 # for Intel compiler
endif #CC = icc
#CFLAGS = -O2 -qopenmp
SRC = vtk_export.c shwater2d.c SRC = vtk_export.c shwater2d.c
OBJS = ${SRC:.c=.o} OBJS = ${SRC:.c=.o}
DEST = shwater2d DEST = shwater2d
......
FC = ftn # for GNU compiler
ifeq ($(CRAY_PRGENVCRAY), loaded) FC = gfortran
FFLAGS = -O2 -openmp
else ifeq ($(CRAY_PRGENVINTEL), loaded)
FFLAGS = -O2 -openmp
else ifeq ($(CRAY_PRGENVGNU), loaded)
ifeq ($(shell expr $(GCC_VERSION) '<' 5.0), 1)
$(error Unsupported GCC version, use at least v5.x (module swap gcc gcc/5.1.0))
endif
FFLAGS = -O2 -fopenmp FFLAGS = -O2 -fopenmp
else
FFLAGS = -O2 # for Intel compiler
endif #FC = ifort
#FFLAGS = -O2 -fopenmp
SRC = vtk_export.f90 shwater2d.f90 SRC = vtk_export.f90 shwater2d.f90
OBJS = ${SRC:.f90=.o} OBJS = ${SRC:.f90=.o}
DEST = shwater2d DEST = shwater2d
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment