aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rwxr-xr-xpython/makeBoundary16
1 files changed, 8 insertions, 8 deletions
diff --git a/python/makeBoundary b/python/makeBoundary
index a0d3773..3684faf 100755
--- a/python/makeBoundary
+++ b/python/makeBoundary
@@ -183,20 +183,20 @@ print('dX =', dX)
# blocks, with nrows lines per block.
if args.location == 'top':
xin = xtp[nrows-1:len(xtp):nrows]
- yin = ytp[nrows-1:len(xtp):nrows]
- zin = ztp[nrows-1:len(xtp):nrows]
+ yin = 2*ytp[nrows-1:len(xtp):nrows] - ytp[nrows-2:len(xtp):nrows]
+ zin = 2*ztp[nrows-1:len(xtp):nrows] - ztp[nrows-2:len(xtp):nrows]
elif args.location == 'bottom':
xin = xtp[0:len(xtp):nrows]
- yin = ytp[0:len(xtp):nrows]
- zin = ztp[0:len(xtp):nrows]
+ yin = 2*ytp[0:len(xtp):nrows] - ytp[1:len(xtp):nrows]
+ zin = 2*ztp[0:len(xtp):nrows] - ztp[1:len(xtp):nrows]
elif args.location == 'left':
- xin = xtp[:nrows]
+ xin = 2*xtp[:nrows] - xtp[nrows:2*nrows]
yin = ytp[:nrows]
- zin = ztp[:nrows]
+ zin = 2*ztp[:nrows] - ztp[nrows:2*nrows]
elif args.location == 'right':
- xin = xtp[nrows*(ncols-1):]
+ xin = 2*xtp[nrows*(ncols-1):] - xtp[nrows*(ncols-2):nrows*(ncols-1)]
yin = ytp[nrows*(ncols-1):]
- zin = ztp[nrows*(ncols-1):]
+ zin = 2*ztp[nrows*(ncols-1):] - ztp[nrows*(ncols-2):nrows*(ncols-1)]
# print(xin)
: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
The style of the FullSWOF-utils manual follows that of the GNU Emacs
manual[0].  The following style sheet files (*.css) have been copied
from gnu.org:

i) manual.css[1], Revision 1.5,

ii) style.css[2], Revision 1.48,

iii) reset.css[3], Revision 1.18.

[0] https://www.gnu.org/software/emacs/manual/html_node/emacs/index.html
[1] http://web.cvs.savannah.gnu.org/viewvc/gnulib/gnulib/manual.css
[2] http://web.cvs.savannah.gnu.org/viewvc/www/www/style.css
[3] http://web.cvs.savannah.gnu.org/viewvc/www/www/reset.css