mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Fix handling of mesh type
This commit is contained in:
parent
b167d70c87
commit
b0ea5b8ae0
5 changed files with 15 additions and 15 deletions
|
|
@ -156,7 +156,7 @@ class Mesh(object):
|
|||
check_type('type for mesh ID="{0}"'.format(self._id),
|
||||
meshtype, basestring)
|
||||
check_value('type for mesh ID="{0}"'.format(self._id),
|
||||
meshtype, ['regular', 'hexagonal'])
|
||||
meshtype, ['regular'])
|
||||
self._type = meshtype
|
||||
|
||||
@dimension.setter
|
||||
|
|
|
|||
|
|
@ -312,6 +312,10 @@ module constants
|
|||
FILTER_ENERGYOUT = 8, &
|
||||
FILTER_DISTRIBCELL = 9
|
||||
|
||||
! Mesh types
|
||||
integer, parameter :: &
|
||||
MESH_REGULAR = 1
|
||||
|
||||
! Tally surface current directions
|
||||
integer, parameter :: &
|
||||
IN_RIGHT = 1, &
|
||||
|
|
|
|||
|
|
@ -2188,9 +2188,11 @@ contains
|
|||
call get_node_value(node_mesh, "type", temp_str)
|
||||
select case (to_lower(temp_str))
|
||||
case ('rect', 'rectangle', 'rectangular')
|
||||
m % type = LATTICE_RECT
|
||||
case ('hex', 'hexagon', 'hexagonal')
|
||||
m % type = LATTICE_HEX
|
||||
call warning("Mesh type '" // trim(temp_str) // "' is deprecated. &
|
||||
&Please use 'regular' instead.")
|
||||
m % type = MESH_REGULAR
|
||||
case ('regular')
|
||||
m % type = MESH_REGULAR
|
||||
case default
|
||||
call fatal_error("Invalid mesh type: " // trim(temp_str))
|
||||
end select
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
element tallies {
|
||||
element mesh {
|
||||
(element id { xsd:int } | attribute id { xsd:int }) &
|
||||
(element type { ( "rectangular" | "hexagonal" ) } |
|
||||
attribute type { ( "rectangular" | "hexagonal" ) }) &
|
||||
(element type { ( "regular" ) } |
|
||||
attribute type { ( "regular" ) }) &
|
||||
(element dimension { list { xsd:positiveInteger+ } } |
|
||||
attribute dimension { list { xsd:positiveInteger+ } }) &
|
||||
(element lower_left { list { xsd:double+ } } |
|
||||
|
|
@ -32,7 +32,7 @@ element tallies {
|
|||
element nuclides {
|
||||
list { xsd:string { maxLength = "12" }+ }
|
||||
}? &
|
||||
element scores {
|
||||
element scores {
|
||||
list { xsd:string { maxLength = "20" }+ }
|
||||
} &
|
||||
element trigger {
|
||||
|
|
|
|||
|
|
@ -14,16 +14,10 @@
|
|||
</choice>
|
||||
<choice>
|
||||
<element name="type">
|
||||
<choice>
|
||||
<value>rectangular</value>
|
||||
<value>hexagonal</value>
|
||||
</choice>
|
||||
<value>regular</value>
|
||||
</element>
|
||||
<attribute name="type">
|
||||
<choice>
|
||||
<value>rectangular</value>
|
||||
<value>hexagonal</value>
|
||||
</choice>
|
||||
<value>regular</value>
|
||||
</attribute>
|
||||
</choice>
|
||||
<choice>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue