From 120ffca5f12576b7d90b29d82868fa4353a7e438 Mon Sep 17 00:00:00 2001 From: Arjit Seth Date: Thu, 11 Jul 2019 00:16:19 +0800 Subject: [PATCH 1/2] minor fix to mgcycle variable Running the overset mesh tutorial pointed out this error, which I'm guessing is a typo. The edit fixes it on my system. --- bin/cgns_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cgns_utils.py b/bin/cgns_utils.py index ce8cf73..c60adc9 100755 --- a/bin/cgns_utils.py +++ b/bin/cgns_utils.py @@ -2485,7 +2485,7 @@ def simpleCart(xMin, xMax, dh, hExtra, nExtra, sym, mgcycle, outFile): sym = [sym] if isinstance(mgcycle, int): - mgcycle = [mgcycle] + mgcycle = [mgcycle]*3 # Now determine how many nodes we need on the inside N = numpy.zeros(3, 'intc') From 7c282135e55f461cb1d0dddfe6d4e46ff2ad6bf9 Mon Sep 17 00:00:00 2001 From: Arjit Seth Date: Fri, 12 Jul 2019 18:03:20 +0800 Subject: [PATCH 2/2] Update cgns_utils.py --- bin/cgns_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/cgns_utils.py b/bin/cgns_utils.py index c60adc9..5d5420b 100755 --- a/bin/cgns_utils.py +++ b/bin/cgns_utils.py @@ -2486,6 +2486,8 @@ def simpleCart(xMin, xMax, dh, hExtra, nExtra, sym, mgcycle, outFile): if isinstance(mgcycle, int): mgcycle = [mgcycle]*3 + else: + assert(len(mgcycle) == 3) # Now determine how many nodes we need on the inside N = numpy.zeros(3, 'intc')