From b0f2c6434b1559f134cc37f7d46a2b7d6692b074 Mon Sep 17 00:00:00 2001 From: Andrew Porter Date: Thu, 30 Jan 2025 21:03:42 +0000 Subject: [PATCH] #2845 fix lfric eg2 --- examples/lfric/eg2/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/lfric/eg2/Makefile b/examples/lfric/eg2/Makefile index b1bd15adbe..364972f0aa 100644 --- a/examples/lfric/eg2/Makefile +++ b/examples/lfric/eg2/Makefile @@ -40,6 +40,9 @@ include ../../common.mk transform: vanilla inline loopfuse +# Location of the stripped-down LFRic infrastructure source +LFRIC_INC_DIR = ../../../src/psyclone/tests/test_files/dynamo0p3/infrastructure + # The '-d ../code' argument specifies that PSyclone should search the # '../code' directory when looking for user-supplied kernels. @@ -47,13 +50,13 @@ transform: vanilla inline loopfuse # the transformation script 'my_script.py.' vanilla: - ${PSYCLONE} -api lfric -nodm -d ../code -s ./print_psyir_trans.py ./multi_invoke_mod.x90 + ${PSYCLONE} -api lfric -nodm -d ../code -I${LFRIC_INC_DIR} -s ./print_psyir_trans.py ./multi_invoke_mod.x90 inline: - ${PSYCLONE} -api lfric -nodm -d ../code -s ./module_inline_trans.py ./multi_invoke_mod.x90 + ${PSYCLONE} -api lfric -nodm -d ../code -I${LFRIC_INC_DIR} -s ./module_inline_trans.py ./multi_invoke_mod.x90 loopfuse: - ${PSYCLONE} -api lfric -nodm -d ../code -s ./loop_fuse_trans.py ./multi_invoke_mod.x90 + ${PSYCLONE} -api lfric -nodm -d ../code -I${LFRIC_INC_DIR} -s ./loop_fuse_trans.py ./multi_invoke_mod.x90 compile: transform @echo "No compilation supported for lfric/eg2"