Skip to content

Commit e324b8f

Browse files
fix: mat295 iso (#725)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 2f1cada commit e324b8f

File tree

6 files changed

+151
-57
lines changed

6 files changed

+151
-57
lines changed

codegen/manifest.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,10 @@
961961
"index": 6,
962962
"func": "self.atype and abs(self.atype) == 1"
963963
},
964+
{
965+
"index": 7,
966+
"func": "self.atype and abs(self.atype) == 1"
967+
},
964968
{
965969
"index": 8,
966970
"func": "self.atype and abs(self.atype) == 1 and self.ftype == 1"
@@ -1018,7 +1022,7 @@
10181022
{
10191023
"indices": [7, 8, 9],
10201024
"overall-name": "anisotropic_settings",
1021-
"active-finc": "self.atype and abs(self.atype)==1",
1025+
"active-func": "self.atype and abs(self.atype) == 1",
10221026
"length-func": "self.nf or 0"
10231027
}
10241028
],

doc/changelog/725.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: mat295 iso

src/ansys/dyna/core/keywords/keyword_classes/auto/mat_295.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ def __init__(self, **kwargs):
320320
10,
321321
),
322322
],
323+
lambda: self.atype and abs(self.atype) == 1,
323324
),
324325
Card(
325326
[
@@ -387,7 +388,7 @@ def __init__(self, **kwargs):
387388
),
388389
],
389390
lambda: self.nf or 0,
390-
None,
391+
lambda: self.atype and abs(self.atype) == 1,
391392
"anisotropic_settings",
392393
**kwargs,
393394
),

src/ansys/dyna/core/lib/duplicate_card_group.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ def write(
136136
buf: typing.Optional[typing.TextIO] = None,
137137
comment: typing.Optional[bool] = True,
138138
) -> str:
139-
self._initialize()
140-
self._propagate()
139+
if self._is_active():
140+
self._initialize()
141+
self._propagate()
141142

142143
if format == None:
143144
format = self.format

0 commit comments

Comments
 (0)