1# Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at 2# the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights 3# reserved. See files LICENSE and NOTICE for details. 4# 5# This file is part of CEED, a collection of benchmarks, miniapps, software 6# libraries and APIs for efficient high-order finite element and spectral 7# element discretizations for exascale applications. For more information and 8# source code availability see http://github.com/ceed. 9# 10# The CEED research is supported by the Exascale Computing Project (17-SC-20-SC) 11# a collaborative effort of two U.S. Department of Energy organizations (Office 12# of Science and the National Nuclear Security Administration) responsible for 13# the planning and preparation of a capable exascale ecosystem, including 14# software, applications, hardware, advanced system engineering and early 15# testbed platforms, in support of the nation's exascale computing imperative. 16 17NEK5K_DIR ?= $(abspath ../../../Nek5000) 18MPI ?= 1 19 20ifeq ($(MPI),0) 21 ifeq (,$(filter-out undefined default,$(origin CC))) 22 CC = gcc 23 endif 24 ifeq (,$(filter-out undefined default,$(origin FC))) 25 FC = gfortran 26 endif 27else 28 FC = mpif77 29 CC = mpicc 30endif 31 32CEED_DIR ?= $(abspath ../..) 33CEED_FLAGS ?= -I$(CEED_DIR)/include 34CEED_LIBS ?= -Wl,-rpath,$(CEED_DIR)/lib -L$(CEED_DIR)/lib -lceed 35 36.PHONY: all bps clean 37 38all: bps 39 40bps: bps/bps.usr 41 FC=$(FC) CC=$(CC) MPI=$(MPI) NEK5K_DIR=$(NEK5K_DIR) CEED_DIR=$(CEED_DIR) && ./nek-examples.sh -m 42 43clean: 44 NEK5K_DIR=$(NEK5K_DIR) && ./nek-examples.sh -clean 45