From 14b5f3c1d91fee9162f675bfe968716e8dfaadd0 Mon Sep 17 00:00:00 2001 From: Andrew Porter Date: Tue, 5 Jun 2018 08:40:56 +0100 Subject: [PATCH] #12 tweaks to acc transformation script for python3 --- ocean/nemo/nemolite2d/psykal/nemolite2d_acc_transform.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ocean/nemo/nemolite2d/psykal/nemolite2d_acc_transform.py b/ocean/nemo/nemolite2d/psykal/nemolite2d_acc_transform.py index 677ae8fa..3f526520 100644 --- a/ocean/nemo/nemolite2d/psykal/nemolite2d_acc_transform.py +++ b/ocean/nemo/nemolite2d/psykal/nemolite2d_acc_transform.py @@ -1,3 +1,4 @@ +from __future__ import print_function '''Python script intended to be passed to PSyclone's generate() funcation via the -s option. Performs OpenACC transformations. ''' @@ -39,8 +40,8 @@ def trans(psy): api=API, invoke_name="invoke") PSY = PSyFactory(API).create(INVOKEINFO) - # print PSY.invokes.names + # print(PSY.invokes.names) NEW_PSY = trans(PSY) - print NEW_PSY.gen + print(NEW_PSY.gen)