mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Fixed minor issues with OpenCG surface coefficient properties in compatibility module
This commit is contained in:
parent
5f3f58f3ab
commit
81c00627f9
2 changed files with 2 additions and 2 deletions
|
|
@ -220,7 +220,7 @@ def get_opencg_surface(openmc_surface):
|
|||
opencg_surface = opencg.Plane(surface_id, name, boundary, A, B, C, D)
|
||||
|
||||
elif openmc_surface.type == 'x-plane':
|
||||
x0 = openmc_surface.y0
|
||||
x0 = openmc_surface.x0
|
||||
opencg_surface = opencg.XPlane(surface_id, name, boundary, x0)
|
||||
|
||||
elif openmc_surface.type == 'y-plane':
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ class XPlane(Plane):
|
|||
|
||||
@property
|
||||
def x0(self):
|
||||
return self.coeff['x0']
|
||||
return self.coeffs['x0']
|
||||
|
||||
@x0.setter
|
||||
def x0(self, x0):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue