mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
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:
parent
7f5e9e73d8
commit
249c3618d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue