From 4d6e40b492d06a41d77009478731289cb0fc75f8 Mon Sep 17 00:00:00 2001 From: POLCHER Jan <jan.polcher@lmd.jussieu.fr> Date: Sun, 7 Jul 2019 15:52:25 +0200 Subject: [PATCH] Adapt the usage of range to Python3. --- Partition.py | 2 +- SampleScripts/BuildHTUs.pbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Partition.py b/Partition.py index 37adb4b..20afb3b 100644 --- a/Partition.py +++ b/Partition.py @@ -347,7 +347,7 @@ class partition : else : ERROR("Unforessen order of the variable to be sent to halo of land points") sys.exit() - chks = range(0, chkdim, chksz) + chks = list(range(0, chkdim, chksz)) chks.append(chkdim) # for j in range(len(chks)-1) : diff --git a/SampleScripts/BuildHTUs.pbs b/SampleScripts/BuildHTUs.pbs index 1f2c909..1975be3 100644 --- a/SampleScripts/BuildHTUs.pbs +++ b/SampleScripts/BuildHTUs.pbs @@ -4,7 +4,7 @@ # #PBS -j oe #PBS -l nodes=1:ppn=42 -#PBS -l walltime=48:00:00 +#PBS -l walltime=128:00:00 #PBS -l mem=160gb #PBS -l vmem=160gb # -- GitLab