Commit 2e50f7ac authored by Ron Rahaman's avatar Ron Rahaman

Updated makenek to work with MOON's template_example

parent 68df98ba
......@@ -414,8 +414,8 @@ if [ "$USR_LIB" != "" ]; then
fi
# tweak makefile template
echo "generating makefile ..."
rm -rf makefile 2>/dev/null
echo "generating makefile.nek ..."
rm -rf makefile.nek 2>/dev/null
sed -e "s:^F77[ ]*=.*:F77\:=$F77:" \
-e "s:^CC[ ]*=.*:CC\:=$CC:" \
......@@ -479,7 +479,7 @@ if [ "$IFVISIT" == "true" -o "$IFVISIT" == "yes" ]; then
fi
if [ "$USR" != "" ]; then
echo "###########################################################" >> makefile
echo "###########################################################" >> makefile.nek
echo "include makefile_usr.inc" >> .makefile
fi
......@@ -487,7 +487,7 @@ if [ -f .makefile ]; then
sed -e "1i\\
### makefile automatically created by makenek `date +"%m/%d/%Y %T"` ###" \
-e "s:^CASEDIR[ ]*=.*:CASEDIR\:=${CASEDIR}:" \
-e "s:^CASENAME[ ]*=.*:CASENAME\:=${CASENAME}:" .makefile > makefile
-e "s:^CASENAME[ ]*=.*:CASENAME\:=${CASENAME}:" .makefile > makefile.nek
else
echo "ERROR: Nek Makefile could not be created!"
exit 1
......
This diff is collapsed.
###############################################################################
################### MOOSE Application Standard Makefile #######################
###############################################################################
#
# Optional Environment variables
# MOOSE_DIR - Root directory of the MOOSE project
# FRAMEWORK_DIR - Location of the MOOSE framework
#
###############################################################################
EXAMPLE_DIR ?= $(shell dirname `pwd`)
MOOSE_DIR ?= $(shell dirname $(EXAMPLE_DIR))/src/moose
FRAMEWORK_DIR ?= $(MOOSE_DIR)/framework
###############################################################################
TEST := test_ignore
# framework
include $(FRAMEWORK_DIR)/build.mk
include $(FRAMEWORK_DIR)/moose.mk
APPLICATION_NAME := ex01
# dep apps
APPLICATION_DIR := $(shell pwd)/../../
APPLICATION_NAME := ex01
BUILD_EXEC := yes
DEP_APPS := $(shell $(FRAMEWORK_DIR)/scripts/find_dep_apps.py $(APPLICATION_NAME))
include nek.mk
ADDITIONAL_LIBS := $(nek_LIB) $(nek_OBJ)
include app.mk
# Include dependency files for this example
ex_srcfiles := $(shell find $(APPLICATION_DIR) -name "*.C")
ex_deps := $(patsubst %.C, %.$(obj-suffix).d, $(ex_srcfiles))
-include $(ex_deps)
###############################################################################
# Additional special case targets should be added here
test: all
$(call TEST_exodiff,ex01.i,ex01_out.e)
......@@ -34,6 +34,7 @@ NEK_CASE_DIR := $(CURDIR)
NEK_CASENAME := $(shell basename $(NEK_CASE_DIR))
NEK_OBJ := obj/$(NEK_CASENAME).o
NEK_LIB := $(NEK_SOURCE_DIR)/Nek5000.a
include $(NEK_SOURCE_DIR)/nek.mk
# moon
APPLICATION_DIR := $(MOON_DIR)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment