Update funcs.py

This modification will eliminate the warning:
/home/valerio/.local/lib/python3.8/site-packages/openmc/surface.py:1510: FutureWarning: "ZCylinder(…) accepts an argument named ‘r’, not ‘R’. Future versions of OpenMC will not accept the capitalized version.
warn(_WARNING_UPPER.format(type(self).name, ‘r’, ‘R’)
This commit is contained in:
valeriogiusti 2021-12-17 17:19:02 +01:00 committed by GitHub
parent 7f5e9e73d8
commit 249c3618d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,7 +186,7 @@ def rectangular_prism(width, height, axis='z', origin=(0., 0.),
raise ValueError('Periodic boundary conditions not permitted when '
'rounded corners are used.')
args = {'R': corner_radius, 'boundary_type': boundary_type}
args = {'r': corner_radius, 'boundary_type': boundary_type}
args[x1 + '0'] = origin[0] - width/2 + corner_radius
args[x2 + '0'] = origin[1] - height/2 + corner_radius