186a4271fSThilina Rathnayake# Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at 286a4271fSThilina Rathnayake# the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights 386a4271fSThilina Rathnayake# reserved. See files LICENSE and NOTICE for details. 486a4271fSThilina Rathnayake# 586a4271fSThilina Rathnayake# This file is part of CEED, a collection of benchmarks, miniapps, software 686a4271fSThilina Rathnayake# libraries and APIs for efficient high-order finite element and spectral 786a4271fSThilina Rathnayake# element discretizations for exascale applications. For more information and 8*3d8e8822SJeremy L Thompson# source code availability see http://github.com/ceed 986a4271fSThilina Rathnayake# 1086a4271fSThilina Rathnayake# The CEED research is supported by the Exascale Computing Project (17-SC-20-SC) 1186a4271fSThilina Rathnayake# a collaborative effort of two U.S. Department of Energy organizations (Office 1286a4271fSThilina Rathnayake# of Science and the National Nuclear Security Administration) responsible for 1386a4271fSThilina Rathnayake# the planning and preparation of a capable exascale ecosystem, including 1486a4271fSThilina Rathnayake# software, applications, hardware, advanced system engineering and early 1586a4271fSThilina Rathnayake# testbed platforms, in support of the nation's exascale computing imperative. 1686a4271fSThilina Rathnayake 1786a4271fSThilina RathnayakeNEK5K_DIR ?= $(abspath ../../../Nek5000) 1886a4271fSThilina RathnayakeMPI ?= 1 1986a4271fSThilina Rathnayake 2086a4271fSThilina Rathnayakeifeq ($(MPI),0) 2186a4271fSThilina Rathnayake ifeq (,$(filter-out undefined default,$(origin CC))) 2286a4271fSThilina Rathnayake CC = gcc 2386a4271fSThilina Rathnayake endif 2486a4271fSThilina Rathnayake ifeq (,$(filter-out undefined default,$(origin FC))) 2586a4271fSThilina Rathnayake FC = gfortran 2686a4271fSThilina Rathnayake endif 2786a4271fSThilina Rathnayakeelse 2886a4271fSThilina Rathnayake FC = mpif77 2986a4271fSThilina Rathnayake CC = mpicc 3086a4271fSThilina Rathnayakeendif 3186a4271fSThilina Rathnayake 3286a4271fSThilina RathnayakeCEED_DIR ?= $(abspath ../..) 3386a4271fSThilina RathnayakeCEED_FLAGS ?= -I$(CEED_DIR)/include 3486a4271fSThilina RathnayakeCEED_LIBS ?= -Wl,-rpath,$(CEED_DIR)/lib -L$(CEED_DIR)/lib -lceed 3586a4271fSThilina Rathnayake 3686a4271fSThilina Rathnayake.PHONY: all bps clean 3786a4271fSThilina Rathnayake 3886a4271fSThilina Rathnayakeall: bps 3986a4271fSThilina Rathnayake 4086a4271fSThilina Rathnayakebps: bps/bps.usr 4186a4271fSThilina Rathnayake FC=$(FC) CC=$(CC) MPI=$(MPI) NEK5K_DIR=$(NEK5K_DIR) CEED_DIR=$(CEED_DIR) && ./nek-examples.sh -m 4286a4271fSThilina Rathnayake 4386a4271fSThilina Rathnayakeclean: 4486a4271fSThilina Rathnayake NEK5K_DIR=$(NEK5K_DIR) && ./nek-examples.sh -clean 45